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 fde9e729..b60070d0 100644 --- a/compiled_proto/connections/implementation/proto/offline_wire_formats.pb.cc +++ b/compiled_proto/connections/implementation/proto/offline_wire_formats.pb.cc @@ -252,6 +252,19 @@ struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentialsDefault }; }; 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){} +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_() @@ -275,6 +288,7 @@ constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo::BandwidthUpgradeNego , wifi_direct_credentials_(nullptr) , web_rtc_credentials_(nullptr) , upgrade_path_request_(nullptr) + , awdl_credentials_(nullptr) , medium_(0) , supports_disabling_encryption_(false) @@ -7563,6 +7577,271 @@ std::string 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; + } +}; + +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); + } + // @@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()); + } + // @@protoc_insertion_point(copy_constructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials) +} + +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 +} + +BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials() { + // @@protoc_insertion_point(destructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete(); +} + +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()); +} + +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); +} + +void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::Clear() { +// @@protoc_insertion_point(message_clear_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials) + 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(); + } + if (cached_has_bits & 0x00000002u) { + service_type_.ClearNonDefaultToEmpty(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +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; + 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 { + // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string service_name = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->WriteStringMaybeAliased( + 1, this->_internal_service_name(), target); + } + + // optional string service_type = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->WriteStringMaybeAliased( + 2, this->_internal_service_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); + } + // @@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; + + 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 string service_name = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::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 (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); + 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::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 & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + _internal_set_service_name(from._internal_service_name()); + } + if (cached_has_bits & 0x00000002u) { + _internal_set_service_type(from._internal_service_type()); + } + } + _internal_metadata_.MergeFrom(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) + 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(); + _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 + ); +} + +std::string BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::GetTypeName() const { + return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials"; +} + + // =================================================================== class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::_Internal { @@ -7821,7 +8100,7 @@ class BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_medium(HasBits* has_bits) { - (*has_bits)[0] |= 128u; + (*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) { @@ -7847,11 +8126,15 @@ class BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_Internal { 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] |= 256u; + (*has_bits)[0] |= 512u; } static void set_has_supports_client_introduction_ack(HasBits* has_bits) { - (*has_bits)[0] |= 512u; + (*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) { @@ -7883,6 +8166,10 @@ const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradeP 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_; @@ -7935,6 +8222,11 @@ BandwidthUpgradeNegotiationFrame_UpgradePathInfo::BandwidthUpgradeNegotiationFra } 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_)); @@ -7964,6 +8256,7 @@ inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::SharedDtor() { 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_; } void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::ArenaDtor(void* object) { @@ -7983,7 +8276,7 @@ void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::Clear() { (void) cached_has_bits; cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000007fu) { + if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { GOOGLE_DCHECK(wifi_hotspot_credentials_ != nullptr); wifi_hotspot_credentials_->Clear(); @@ -8012,12 +8305,15 @@ void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::Clear() { GOOGLE_DCHECK(upgrade_path_request_ != nullptr); upgrade_path_request_->Clear(); } + if (cached_has_bits & 0x00000080u) { + GOOGLE_DCHECK(awdl_credentials_ != nullptr); + awdl_credentials_->Clear(); + } } - medium_ = 0; - if (cached_has_bits & 0x00000300u) { - ::memset(&supports_disabling_encryption_, 0, static_cast( + if (cached_has_bits & 0x00000700u) { + ::memset(&medium_, 0, static_cast( reinterpret_cast(&supports_client_introduction_ack_) - - reinterpret_cast(&supports_disabling_encryption_)) + sizeof(supports_client_introduction_ack_)); + reinterpret_cast(&medium_)) + sizeof(supports_client_introduction_ack_)); } _has_bits_.Clear(); _internal_metadata_.Clear(); @@ -8117,6 +8413,14 @@ const char* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_InternalParse(con } 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 @@ -8149,7 +8453,7 @@ uint8_t* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_InternalSerialize( cached_has_bits = _has_bits_[0]; // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.Medium medium = 1; - if (cached_has_bits & 0x00000080u) { + if (cached_has_bits & 0x00000100u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( 1, this->_internal_medium(), target); @@ -8196,7 +8500,7 @@ uint8_t* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_InternalSerialize( } // optional bool supports_disabling_encryption = 7; - if (cached_has_bits & 0x00000100u) { + if (cached_has_bits & 0x00000200u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(7, this->_internal_supports_disabling_encryption(), target); } @@ -8210,7 +8514,7 @@ uint8_t* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_InternalSerialize( } // optional bool supports_client_introduction_ack = 9; - if (cached_has_bits & 0x00000200u) { + if (cached_has_bits & 0x00000400u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(9, this->_internal_supports_client_introduction_ack(), target); } @@ -8223,6 +8527,14 @@ uint8_t* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_InternalSerialize( 10, _Internal::upgrade_path_request(this), 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 (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); @@ -8290,21 +8602,28 @@ size_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo::ByteSizeLong() const { *upgrade_path_request_); } - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.Medium medium = 1; + // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials awdl_credentials = 11; if (cached_has_bits & 0x00000080u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *awdl_credentials_); + } + + } + if (cached_has_bits & 0x00000700u) { + // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.Medium medium = 1; + if (cached_has_bits & 0x00000100u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_medium()); } - } - if (cached_has_bits & 0x00000300u) { // optional bool supports_disabling_encryption = 7; - if (cached_has_bits & 0x00000100u) { + if (cached_has_bits & 0x00000200u) { total_size += 1 + 1; } // optional bool supports_client_introduction_ack = 9; - if (cached_has_bits & 0x00000200u) { + if (cached_has_bits & 0x00000400u) { total_size += 1 + 1; } @@ -8353,15 +8672,17 @@ void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::MergeFrom(const Bandwidth _internal_mutable_upgrade_path_request()->::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest::MergeFrom(from._internal_upgrade_path_request()); } if (cached_has_bits & 0x00000080u) { + _internal_mutable_awdl_credentials()->::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::MergeFrom(from._internal_awdl_credentials()); + } + } + if (cached_has_bits & 0x00000700u) { + if (cached_has_bits & 0x00000100u) { medium_ = from.medium_; } - _has_bits_[0] |= cached_has_bits; - } - if (cached_has_bits & 0x00000300u) { - if (cached_has_bits & 0x00000100u) { + if (cached_has_bits & 0x00000200u) { supports_disabling_encryption_ = from.supports_disabling_encryption_; } - if (cached_has_bits & 0x00000200u) { + if (cached_has_bits & 0x00000400u) { supports_client_introduction_ack_ = from.supports_client_introduction_ack_; } _has_bits_[0] |= cached_has_bits; @@ -14831,6 +15152,9 @@ template<> PROTOBUF_NOINLINE ::location::nearby::connections::BandwidthUpgradeNe 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); } 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 9ba3037b..16fd7cd8 100644 --- a/compiled_proto/connections/implementation/proto/offline_wire_formats.pb.h +++ b/compiled_proto/connections/implementation/proto/offline_wire_formats.pb.h @@ -45,7 +45,7 @@ struct TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fforma 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[40] + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[41] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; @@ -84,6 +84,9 @@ extern BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannelDefaultTypeIntern class BandwidthUpgradeNegotiationFrame_UpgradePathInfo; struct BandwidthUpgradeNegotiationFrame_UpgradePathInfoDefaultTypeInternal; extern BandwidthUpgradeNegotiationFrame_UpgradePathInfoDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_default_instance_; +class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials; +struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentialsDefaultTypeInternal; +extern BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentialsDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials_default_instance_; class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials; struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentialsDefaultTypeInternal; extern BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentialsDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials_default_instance_; @@ -188,6 +191,7 @@ template<> ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_Cli 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*); @@ -4106,6 +4110,173 @@ class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials final : }; // ------------------------------------------------------------------- +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 = + 14; + + 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, + }; + // 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: + + // @@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_; + 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) */ { public: @@ -4152,7 +4323,7 @@ class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest final &_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 14; + 15; friend void swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest& a, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest& b) { a.Swap(&b); @@ -4319,7 +4490,7 @@ class BandwidthUpgradeNegotiationFrame_UpgradePathInfo final : &_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_default_instance_); } static constexpr int kIndexInFileMessages = - 15; + 16; friend void swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo& a, BandwidthUpgradeNegotiationFrame_UpgradePathInfo& b) { a.Swap(&b); @@ -4389,6 +4560,7 @@ class BandwidthUpgradeNegotiationFrame_UpgradePathInfo final : 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; @@ -4449,6 +4621,7 @@ class BandwidthUpgradeNegotiationFrame_UpgradePathInfo final : kWifiDirectCredentialsFieldNumber = 6, kWebRtcCredentialsFieldNumber = 8, kUpgradePathRequestFieldNumber = 10, + kAwdlCredentialsFieldNumber = 11, kMediumFieldNumber = 1, kSupportsDisablingEncryptionFieldNumber = 7, kSupportsClientIntroductionAckFieldNumber = 9, @@ -4579,6 +4752,24 @@ class BandwidthUpgradeNegotiationFrame_UpgradePathInfo final : ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest* upgrade_path_request); ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest* unsafe_arena_release_upgrade_path_request(); + // 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(); + 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); + 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(); + // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.Medium medium = 1; bool has_medium() const; private: @@ -4634,6 +4825,7 @@ class BandwidthUpgradeNegotiationFrame_UpgradePathInfo final : ::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_; @@ -4687,7 +4879,7 @@ class BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel final : &_BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel_default_instance_); } static constexpr int kIndexInFileMessages = - 16; + 17; friend void swap(BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& a, BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& b) { a.Swap(&b); @@ -4829,7 +5021,7 @@ class BandwidthUpgradeNegotiationFrame_ClientIntroduction final : &_BandwidthUpgradeNegotiationFrame_ClientIntroduction_default_instance_); } static constexpr int kIndexInFileMessages = - 17; + 18; friend void swap(BandwidthUpgradeNegotiationFrame_ClientIntroduction& a, BandwidthUpgradeNegotiationFrame_ClientIntroduction& b) { a.Swap(&b); @@ -4991,7 +5183,7 @@ class BandwidthUpgradeNegotiationFrame_ClientIntroductionAck final : &_BandwidthUpgradeNegotiationFrame_ClientIntroductionAck_default_instance_); } static constexpr int kIndexInFileMessages = - 18; + 19; friend void swap(BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& a, BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& b) { a.Swap(&b); @@ -5115,7 +5307,7 @@ class BandwidthUpgradeNegotiationFrame final : &_BandwidthUpgradeNegotiationFrame_default_instance_); } static constexpr int kIndexInFileMessages = - 19; + 20; friend void swap(BandwidthUpgradeNegotiationFrame& a, BandwidthUpgradeNegotiationFrame& b) { a.Swap(&b); @@ -5380,7 +5572,7 @@ class BandwidthUpgradeRetryFrame final : &_BandwidthUpgradeRetryFrame_default_instance_); } static constexpr int kIndexInFileMessages = - 20; + 21; friend void swap(BandwidthUpgradeRetryFrame& a, BandwidthUpgradeRetryFrame& b) { a.Swap(&b); @@ -5589,7 +5781,7 @@ class KeepAliveFrame final : &_KeepAliveFrame_default_instance_); } static constexpr int kIndexInFileMessages = - 21; + 22; friend void swap(KeepAliveFrame& a, KeepAliveFrame& b) { a.Swap(&b); @@ -5746,7 +5938,7 @@ class DisconnectionFrame final : &_DisconnectionFrame_default_instance_); } static constexpr int kIndexInFileMessages = - 22; + 23; friend void swap(DisconnectionFrame& a, DisconnectionFrame& b) { a.Swap(&b); @@ -5903,7 +6095,7 @@ class PairedKeyEncryptionFrame final : &_PairedKeyEncryptionFrame_default_instance_); } static constexpr int kIndexInFileMessages = - 23; + 24; friend void swap(PairedKeyEncryptionFrame& a, PairedKeyEncryptionFrame& b) { a.Swap(&b); @@ -6050,7 +6242,7 @@ class AuthenticationMessageFrame final : &_AuthenticationMessageFrame_default_instance_); } static constexpr int kIndexInFileMessages = - 24; + 25; friend void swap(AuthenticationMessageFrame& a, AuthenticationMessageFrame& b) { a.Swap(&b); @@ -6197,7 +6389,7 @@ class AuthenticationResultFrame final : &_AuthenticationResultFrame_default_instance_); } static constexpr int kIndexInFileMessages = - 25; + 26; friend void swap(AuthenticationResultFrame& a, AuthenticationResultFrame& b) { a.Swap(&b); @@ -6339,7 +6531,7 @@ class AutoResumeFrame final : &_AutoResumeFrame_default_instance_); } static constexpr int kIndexInFileMessages = - 26; + 27; friend void swap(AutoResumeFrame& a, AutoResumeFrame& b) { a.Swap(&b); @@ -6554,7 +6746,7 @@ class AutoReconnectFrame final : &_AutoReconnectFrame_default_instance_); } static constexpr int kIndexInFileMessages = - 27; + 28; friend void swap(AutoReconnectFrame& a, AutoReconnectFrame& b) { a.Swap(&b); @@ -6764,7 +6956,7 @@ class MediumMetadata final : &_MediumMetadata_default_instance_); } static constexpr int kIndexInFileMessages = - 28; + 29; friend void swap(MediumMetadata& a, MediumMetadata& b) { a.Swap(&b); @@ -7111,7 +7303,7 @@ class AvailableChannels final : &_AvailableChannels_default_instance_); } static constexpr int kIndexInFileMessages = - 29; + 30; friend void swap(AvailableChannels& a, AvailableChannels& b) { a.Swap(&b); @@ -7262,7 +7454,7 @@ class WifiDirectCliUsableChannels final : &_WifiDirectCliUsableChannels_default_instance_); } static constexpr int kIndexInFileMessages = - 30; + 31; friend void swap(WifiDirectCliUsableChannels& a, WifiDirectCliUsableChannels& b) { a.Swap(&b); @@ -7413,7 +7605,7 @@ class WifiLanUsableChannels final : &_WifiLanUsableChannels_default_instance_); } static constexpr int kIndexInFileMessages = - 31; + 32; friend void swap(WifiLanUsableChannels& a, WifiLanUsableChannels& b) { a.Swap(&b); @@ -7564,7 +7756,7 @@ class WifiAwareUsableChannels final : &_WifiAwareUsableChannels_default_instance_); } static constexpr int kIndexInFileMessages = - 32; + 33; friend void swap(WifiAwareUsableChannels& a, WifiAwareUsableChannels& b) { a.Swap(&b); @@ -7715,7 +7907,7 @@ class WifiHotspotStaUsableChannels final : &_WifiHotspotStaUsableChannels_default_instance_); } static constexpr int kIndexInFileMessages = - 33; + 34; friend void swap(WifiHotspotStaUsableChannels& a, WifiHotspotStaUsableChannels& b) { a.Swap(&b); @@ -7866,7 +8058,7 @@ class MediumRole final : &_MediumRole_default_instance_); } static constexpr int kIndexInFileMessages = - 34; + 35; friend void swap(MediumRole& a, MediumRole& b) { a.Swap(&b); @@ -8113,7 +8305,7 @@ class LocationHint final : &_LocationHint_default_instance_); } static constexpr int kIndexInFileMessages = - 35; + 36; friend void swap(LocationHint& a, LocationHint& b) { a.Swap(&b); @@ -8275,7 +8467,7 @@ class LocationStandard final : &_LocationStandard_default_instance_); } static constexpr int kIndexInFileMessages = - 36; + 37; friend void swap(LocationStandard& a, LocationStandard& b) { a.Swap(&b); @@ -8427,7 +8619,7 @@ class OsInfo final : &_OsInfo_default_instance_); } static constexpr int kIndexInFileMessages = - 37; + 38; friend void swap(OsInfo& a, OsInfo& b) { a.Swap(&b); @@ -8603,7 +8795,7 @@ class ConnectionsDevice final : &_ConnectionsDevice_default_instance_); } static constexpr int kIndexInFileMessages = - 38; + 39; friend void swap(ConnectionsDevice& a, ConnectionsDevice& b) { a.Swap(&b); @@ -8805,7 +8997,7 @@ class PresenceDevice final : &_PresenceDevice_default_instance_); } static constexpr int kIndexInFileMessages = - 39; + 40; friend void swap(PresenceDevice& a, PresenceDevice& b) { a.Swap(&b); @@ -13660,6 +13852,148 @@ 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; + 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; +} +inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::service_name() const { + // @@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()); + // @@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(); + // @@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 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 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* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::release_service_name() { + // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials.service_name) + if (!_internal_has_service_name()) { + 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()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; +} +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::set_allocated_service_name(std::string* service_name) { + if (service_name != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _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()); + } +#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; + 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; +} +inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::service_type() const { + // @@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()); + // @@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(); + // @@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 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 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* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::release_service_type() { + // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials.service_type) + if (!_internal_has_service_type()) { + 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()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; +} +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::set_allocated_service_type(std::string* service_type) { + if (service_type != nullptr) { + _has_bits_[0] |= 0x00000002u; + } else { + _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()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials.service_type) +} + +// ------------------------------------------------------------------- + // BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest // repeated .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.Medium mediums = 1 [packed = true]; @@ -13803,7 +14137,7 @@ inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest: // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.Medium medium = 1; inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_has_medium() const { - bool value = (_has_bits_[0] & 0x00000080u) != 0; + bool value = (_has_bits_[0] & 0x00000100u) != 0; return value; } inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::has_medium() const { @@ -13811,7 +14145,7 @@ inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::has_medium() const } inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::clear_medium() { medium_ = 0; - _has_bits_[0] &= ~0x00000080u; + _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_); @@ -13822,7 +14156,7 @@ inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_Upgrade } 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] |= 0x00000080u; + _has_bits_[0] |= 0x00000100u; medium_ = value; } inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::set_medium(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium value) { @@ -14370,9 +14704,99 @@ inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::set_allocated_web_ // @@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); + 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; +} +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_); +} +inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials& BandwidthUpgradeNegotiationFrame_UpgradePathInfo::awdl_credentials() const { + // @@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_); + } + awdl_credentials_ = awdl_credentials; + if (awdl_credentials) { + _has_bits_[0] |= 0x00000080u; + } else { + _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); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::unsafe_arena_release_awdl_credentials() { + // @@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; + 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; + } + return awdl_credentials_; +} +inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::mutable_awdl_credentials() { + ::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(); + if (message_arena == nullptr) { + delete 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 (message_arena != submessage_arena) { + awdl_credentials = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, awdl_credentials, submessage_arena); + } + _has_bits_[0] |= 0x00000080u; + } else { + _has_bits_[0] &= ~0x00000080u; + } + awdl_credentials_ = awdl_credentials; + // @@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] & 0x00000100u) != 0; + bool value = (_has_bits_[0] & 0x00000200u) != 0; return value; } inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::has_supports_disabling_encryption() const { @@ -14380,7 +14804,7 @@ inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::has_supports_disab } inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::clear_supports_disabling_encryption() { supports_disabling_encryption_ = false; - _has_bits_[0] &= ~0x00000100u; + _has_bits_[0] &= ~0x00000200u; } inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_supports_disabling_encryption() const { return supports_disabling_encryption_; @@ -14390,7 +14814,7 @@ inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::supports_disabling return _internal_supports_disabling_encryption(); } inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_set_supports_disabling_encryption(bool value) { - _has_bits_[0] |= 0x00000100u; + _has_bits_[0] |= 0x00000200u; supports_disabling_encryption_ = value; } inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::set_supports_disabling_encryption(bool value) { @@ -14400,7 +14824,7 @@ inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::set_supports_disab // optional bool supports_client_introduction_ack = 9; inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_has_supports_client_introduction_ack() const { - bool value = (_has_bits_[0] & 0x00000200u) != 0; + bool value = (_has_bits_[0] & 0x00000400u) != 0; return value; } inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::has_supports_client_introduction_ack() const { @@ -14408,7 +14832,7 @@ inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::has_supports_clien } inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::clear_supports_client_introduction_ack() { supports_client_introduction_ack_ = false; - _has_bits_[0] &= ~0x00000200u; + _has_bits_[0] &= ~0x00000400u; } inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_supports_client_introduction_ack() const { return supports_client_introduction_ack_; @@ -14418,7 +14842,7 @@ inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::supports_client_in return _internal_supports_client_introduction_ack(); } inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_set_supports_client_introduction_ack(bool value) { - _has_bits_[0] |= 0x00000200u; + _has_bits_[0] |= 0x00000400u; supports_client_introduction_ack_ = value; } inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::set_supports_client_introduction_ack(bool value) { @@ -17951,6 +18375,8 @@ PresenceDevice::mutable_identity_type() { // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/compiled_proto/internal/proto/analytics/connections_log.pb.cc b/compiled_proto/internal/proto/analytics/connections_log.pb.cc index db4cdfe8..2ebdd90e 100644 --- a/compiled_proto/internal/proto/analytics/connections_log.pb.cc +++ b/compiled_proto/internal/proto/analytics/connections_log.pb.cc @@ -99,6 +99,8 @@ constexpr ConnectionsLog_DiscoveryPhase::ConnectionsLog_DiscoveryPhase( , duration_millis_(int64_t{0}) , client_flow_id_(int64_t{0}) , stop_reason_(0) + + , device_type_(0) {} struct ConnectionsLog_DiscoveryPhaseDefaultTypeInternal { constexpr ConnectionsLog_DiscoveryPhaseDefaultTypeInternal() @@ -168,6 +170,8 @@ constexpr ConnectionsLog_AdvertisingPhase::ConnectionsLog_AdvertisingPhase( , duration_millis_(int64_t{0}) , client_flow_id_(int64_t{0}) , stop_reason_(0) + + , device_type_(0) {} struct ConnectionsLog_AdvertisingPhaseDefaultTypeInternal { constexpr ConnectionsLog_AdvertisingPhaseDefaultTypeInternal() @@ -212,6 +216,8 @@ constexpr ConnectionsLog_ConnectionAttempt::ConnectionsLog_ConnectionAttempt( , client_flow_id_(int64_t{0}) , connection_mode_(0) + + , device_type_(0) {} struct ConnectionsLog_ConnectionAttemptDefaultTypeInternal { constexpr ConnectionsLog_ConnectionAttemptDefaultTypeInternal() @@ -222,12 +228,44 @@ struct ConnectionsLog_ConnectionAttemptDefaultTypeInternal { }; }; 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) @@ -237,6 +275,8 @@ constexpr ConnectionsLog_EstablishedConnection::ConnectionsLog_EstablishedConnec , type_(0) , safe_disconnection_result_(0) + + , device_type_(0) {} struct ConnectionsLog_EstablishedConnectionDefaultTypeInternal { constexpr ConnectionsLog_EstablishedConnectionDefaultTypeInternal() @@ -284,6 +324,8 @@ constexpr ConnectionsLog_BandwidthUpgradeAttempt::ConnectionsLog_BandwidthUpgrad , client_flow_id_(int64_t{0}) , error_stage_(0) + + , device_type_(0) {} struct ConnectionsLog_BandwidthUpgradeAttemptDefaultTypeInternal { constexpr ConnectionsLog_BandwidthUpgradeAttemptDefaultTypeInternal() @@ -408,6 +450,217 @@ 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; + } +} + +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 ::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 int ConnectionsLog_DeviceInfo_Platform_entries_by_number[] = { + 3, // 0 -> UNKNOWN + 0, // 1 -> ANDROID + 2, // 2 -> IOS + 1, // 3 -> CROS + 4, // 4 -> WINDOWS +}; + +const std::string& ConnectionsLog_DeviceInfo_Platform_Name( + ConnectionsLog_DeviceInfo_Platform value) { + static const bool 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(); +} +bool ConnectionsLog_DeviceInfo_Platform_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionsLog_DeviceInfo_Platform* value) { + int int_value; + bool success = ::PROTOBUF_NAMESPACE_ID::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; + } +} + +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 ::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 int ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_entries_by_number[] = { + 17, // 0 -> UNKNOWN_DISCONNECTION_REASON + 3, // 1 -> DCT_ERROR_MDNS_DISCOVERY_TIMEOUT + 4, // 2 -> DCT_ERROR_MDNS_REGISTER_SERVICE + 8, // 3 -> DCT_ERROR_SUBSEQUENT_TLS_SPAKE + 5, // 4 -> DCT_ERROR_REQUEST_FAILED + 6, // 5 -> DCT_ERROR_RESPONSE_FAILED + 1, // 6 -> DCT_ERROR_CONTROL_MESSAGE_EXCHANGE + 0, // 7 -> DCT_ERROR_CAPABILITY_MISMATCH + 2, // 8 -> DCT_ERROR_HIGH_SPEED_MEDIUM_UNAVAILABLE + 13, // 9 -> DCT_ERROR_WIFI_DISABLED + 14, // 10 -> DCT_ERROR_WIFI_DISCONNECTED + 12, // 11 -> DCT_ERROR_WIFI_CREDENTIAL_TRANSFER + 15, // 12 -> DCT_ERROR_WIFI_INTERNET_CONNECTION + 10, // 13 -> DCT_ERROR_UPGRADE_HIGH_SPEED_MEDIUM_FAILED + 11, // 14 -> DCT_ERROR_USER_CANCELLED + 7, // 15 -> DCT_ERROR_SERVICE_CANCELLED + 9, // 16 -> DCT_ERROR_UNVERIFIED_INTEGRITY + 16, // 17 -> SESSION_SUCCESS +}; + +const std::string& ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_Name( + ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason value) { + static const bool 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(); +} +bool ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason* value) { + int int_value; + bool success = ::PROTOBUF_NAMESPACE_ID::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: @@ -1889,6 +2142,9 @@ class ConnectionsLog_DiscoveryPhase::_Internal { 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; + } }; const ::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata& @@ -1924,16 +2180,16 @@ ConnectionsLog_DiscoveryPhase::ConnectionsLog_DiscoveryPhase(const ConnectionsLo discovery_metadata_ = nullptr; } ::memcpy(&duration_millis_, &from.duration_millis_, - static_cast(reinterpret_cast(&stop_reason_) - - reinterpret_cast(&duration_millis_)) + sizeof(stop_reason_)); + static_cast(reinterpret_cast(&device_type_) - + reinterpret_cast(&duration_millis_)) + sizeof(device_type_)); // @@protoc_insertion_point(copy_constructor:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase) } inline void ConnectionsLog_DiscoveryPhase::SharedCtor() { ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&discovery_metadata_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&stop_reason_) - - reinterpret_cast(&discovery_metadata_)) + sizeof(stop_reason_)); + 0, static_cast(reinterpret_cast(&device_type_) - + reinterpret_cast(&discovery_metadata_)) + sizeof(device_type_)); } ConnectionsLog_DiscoveryPhase::~ConnectionsLog_DiscoveryPhase() { @@ -1974,10 +2230,10 @@ void ConnectionsLog_DiscoveryPhase::Clear() { GOOGLE_DCHECK(discovery_metadata_ != nullptr); discovery_metadata_->Clear(); } - if (cached_has_bits & 0x0000000eu) { + if (cached_has_bits & 0x0000001eu) { ::memset(&duration_millis_, 0, static_cast( - reinterpret_cast(&stop_reason_) - - reinterpret_cast(&duration_millis_)) + sizeof(stop_reason_)); + reinterpret_cast(&device_type_) - + reinterpret_cast(&duration_millis_)) + sizeof(device_type_)); } _has_bits_.Clear(); _internal_metadata_.Clear(); @@ -2102,6 +2358,19 @@ const char* ConnectionsLog_DiscoveryPhase::_InternalParse(const char* ptr, ::PRO } 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; default: goto handle_unusual; } // switch @@ -2199,6 +2468,13 @@ uint8_t* ConnectionsLog_DiscoveryPhase::_InternalSerialize( 9, this->_internal_stop_reason(), target); } + // optional .location.nearby.proto.connections.DeviceType device_type = 10; + if (cached_has_bits & 0x00000010u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 10, 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); @@ -2254,7 +2530,7 @@ size_t ConnectionsLog_DiscoveryPhase::ByteSizeLong() const { } cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { + if (cached_has_bits & 0x0000001fu) { // optional .location.nearby.analytics.proto.ConnectionsLog.DiscoveryMetadata discovery_metadata = 7; if (cached_has_bits & 0x00000001u) { total_size += 1 + @@ -2278,6 +2554,12 @@ size_t ConnectionsLog_DiscoveryPhase::ByteSizeLong() const { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_stop_reason()); } + // optional .location.nearby.proto.connections.DeviceType device_type = 10; + if (cached_has_bits & 0x00000010u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::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(); @@ -2305,7 +2587,7 @@ void ConnectionsLog_DiscoveryPhase::MergeFrom(const ConnectionsLog_DiscoveryPhas 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 & 0x0000000fu) { + if (cached_has_bits & 0x0000001fu) { if (cached_has_bits & 0x00000001u) { _internal_mutable_discovery_metadata()->::location::nearby::analytics::proto::ConnectionsLog_DiscoveryMetadata::MergeFrom(from._internal_discovery_metadata()); } @@ -2318,6 +2600,9 @@ void ConnectionsLog_DiscoveryPhase::MergeFrom(const ConnectionsLog_DiscoveryPhas if (cached_has_bits & 0x00000008u) { stop_reason_ = from.stop_reason_; } + if (cached_has_bits & 0x00000010u) { + device_type_ = from.device_type_; + } _has_bits_[0] |= cached_has_bits; } _internal_metadata_.MergeFrom(from._internal_metadata_); @@ -2344,8 +2629,8 @@ void ConnectionsLog_DiscoveryPhase::InternalSwap(ConnectionsLog_DiscoveryPhase* uwb_ranging_.InternalSwap(&other->uwb_ranging_); adv_dis_result_.InternalSwap(&other->adv_dis_result_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveryPhase, stop_reason_) - + sizeof(ConnectionsLog_DiscoveryPhase::stop_reason_) + PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveryPhase, device_type_) + + sizeof(ConnectionsLog_DiscoveryPhase::device_type_) - PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveryPhase, discovery_metadata_)>( reinterpret_cast(&discovery_metadata_), reinterpret_cast(&other->discovery_metadata_)); @@ -3359,6 +3644,9 @@ class ConnectionsLog_AdvertisingPhase::_Internal { 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; + } }; const ::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata& @@ -3390,16 +3678,16 @@ ConnectionsLog_AdvertisingPhase::ConnectionsLog_AdvertisingPhase(const Connectio advertising_metadata_ = nullptr; } ::memcpy(&duration_millis_, &from.duration_millis_, - static_cast(reinterpret_cast(&stop_reason_) - - reinterpret_cast(&duration_millis_)) + sizeof(stop_reason_)); + static_cast(reinterpret_cast(&device_type_) - + reinterpret_cast(&duration_millis_)) + sizeof(device_type_)); // @@protoc_insertion_point(copy_constructor:location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase) } inline void ConnectionsLog_AdvertisingPhase::SharedCtor() { ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&advertising_metadata_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&stop_reason_) - - reinterpret_cast(&advertising_metadata_)) + sizeof(stop_reason_)); + 0, static_cast(reinterpret_cast(&device_type_) - + reinterpret_cast(&advertising_metadata_)) + sizeof(device_type_)); } ConnectionsLog_AdvertisingPhase::~ConnectionsLog_AdvertisingPhase() { @@ -3438,10 +3726,10 @@ void ConnectionsLog_AdvertisingPhase::Clear() { GOOGLE_DCHECK(advertising_metadata_ != nullptr); advertising_metadata_->Clear(); } - if (cached_has_bits & 0x0000000eu) { + if (cached_has_bits & 0x0000001eu) { ::memset(&duration_millis_, 0, static_cast( - reinterpret_cast(&stop_reason_) - - reinterpret_cast(&duration_millis_)) + sizeof(stop_reason_)); + reinterpret_cast(&device_type_) - + reinterpret_cast(&duration_millis_)) + sizeof(device_type_)); } _has_bits_.Clear(); _internal_metadata_.Clear(); @@ -3540,6 +3828,19 @@ const char* ConnectionsLog_AdvertisingPhase::_InternalParse(const char* ptr, ::P } 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; default: goto handle_unusual; } // switch @@ -3621,6 +3922,13 @@ uint8_t* ConnectionsLog_AdvertisingPhase::_InternalSerialize( 7, this->_internal_stop_reason(), target); } + // optional .location.nearby.proto.connections.DeviceType device_type = 8; + if (cached_has_bits & 0x00000010u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 8, 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); @@ -3662,7 +3970,7 @@ size_t ConnectionsLog_AdvertisingPhase::ByteSizeLong() const { } cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { + if (cached_has_bits & 0x0000001fu) { // optional .location.nearby.analytics.proto.ConnectionsLog.AdvertisingMetadata advertising_metadata = 5; if (cached_has_bits & 0x00000001u) { total_size += 1 + @@ -3686,6 +3994,12 @@ size_t ConnectionsLog_AdvertisingPhase::ByteSizeLong() const { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_stop_reason()); } + // optional .location.nearby.proto.connections.DeviceType device_type = 8; + if (cached_has_bits & 0x00000010u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::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(); @@ -3711,7 +4025,7 @@ void ConnectionsLog_AdvertisingPhase::MergeFrom(const ConnectionsLog_Advertising 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 & 0x0000000fu) { + if (cached_has_bits & 0x0000001fu) { if (cached_has_bits & 0x00000001u) { _internal_mutable_advertising_metadata()->::location::nearby::analytics::proto::ConnectionsLog_AdvertisingMetadata::MergeFrom(from._internal_advertising_metadata()); } @@ -3724,6 +4038,9 @@ void ConnectionsLog_AdvertisingPhase::MergeFrom(const ConnectionsLog_Advertising if (cached_has_bits & 0x00000008u) { stop_reason_ = from.stop_reason_; } + if (cached_has_bits & 0x00000010u) { + device_type_ = from.device_type_; + } _has_bits_[0] |= cached_has_bits; } _internal_metadata_.MergeFrom(from._internal_metadata_); @@ -3748,8 +4065,8 @@ void ConnectionsLog_AdvertisingPhase::InternalSwap(ConnectionsLog_AdvertisingPha 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, stop_reason_) - + sizeof(ConnectionsLog_AdvertisingPhase::stop_reason_) + PROTOBUF_FIELD_OFFSET(ConnectionsLog_AdvertisingPhase, device_type_) + + sizeof(ConnectionsLog_AdvertisingPhase::device_type_) - PROTOBUF_FIELD_OFFSET(ConnectionsLog_AdvertisingPhase, advertising_metadata_)>( reinterpret_cast(&advertising_metadata_), reinterpret_cast(&other->advertising_metadata_)); @@ -4121,6 +4438,9 @@ class ConnectionsLog_ConnectionAttempt::_Internal { 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; + } }; const ::location::nearby::analytics::proto::ConnectionsLog_ConnectionAttemptMetadata& @@ -4163,8 +4483,8 @@ ConnectionsLog_ConnectionAttempt::ConnectionsLog_ConnectionAttempt(const Connect operation_result_ = nullptr; } ::memcpy(&duration_millis_, &from.duration_millis_, - static_cast(reinterpret_cast(&connection_mode_) - - reinterpret_cast(&duration_millis_)) + sizeof(connection_mode_)); + static_cast(reinterpret_cast(&device_type_) - + reinterpret_cast(&duration_millis_)) + sizeof(device_type_)); // @@protoc_insertion_point(copy_constructor:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt) } @@ -4175,8 +4495,8 @@ connection_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyS #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(&connection_mode_) - - reinterpret_cast(&connection_attempt_metadata_)) + sizeof(connection_mode_)); + 0, static_cast(reinterpret_cast(&device_type_) - + reinterpret_cast(&connection_attempt_metadata_)) + sizeof(device_type_)); } ConnectionsLog_ConnectionAttempt::~ConnectionsLog_ConnectionAttempt() { @@ -4228,10 +4548,10 @@ void ConnectionsLog_ConnectionAttempt::Clear() { reinterpret_cast(&attempt_result_) - reinterpret_cast(&duration_millis_)) + sizeof(attempt_result_)); } - if (cached_has_bits & 0x00000300u) { + if (cached_has_bits & 0x00000700u) { ::memset(&client_flow_id_, 0, static_cast( - reinterpret_cast(&connection_mode_) - - reinterpret_cast(&client_flow_id_)) + sizeof(connection_mode_)); + reinterpret_cast(&device_type_) - + reinterpret_cast(&client_flow_id_)) + sizeof(device_type_)); } _has_bits_.Clear(); _internal_metadata_.Clear(); @@ -4352,6 +4672,19 @@ const char* ConnectionsLog_ConnectionAttempt::_InternalParse(const char* ptr, :: } 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; default: goto handle_unusual; } // switch @@ -4452,6 +4785,13 @@ uint8_t* ConnectionsLog_ConnectionAttempt::_InternalSerialize( 10, this->_internal_connection_mode(), target); } + // optional .location.nearby.proto.connections.DeviceType device_type = 11; + if (cached_has_bits & 0x00000400u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 11, 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); @@ -4521,7 +4861,7 @@ size_t ConnectionsLog_ConnectionAttempt::ByteSizeLong() const { } } - if (cached_has_bits & 0x00000300u) { + if (cached_has_bits & 0x00000700u) { // optional int64 client_flow_id = 6; if (cached_has_bits & 0x00000100u) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_client_flow_id()); @@ -4533,6 +4873,12 @@ size_t ConnectionsLog_ConnectionAttempt::ByteSizeLong() const { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_connection_mode()); } + // optional .location.nearby.proto.connections.DeviceType device_type = 11; + if (cached_has_bits & 0x00000400u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::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(); @@ -4582,13 +4928,16 @@ void ConnectionsLog_ConnectionAttempt::MergeFrom(const ConnectionsLog_Connection } _has_bits_[0] |= cached_has_bits; } - if (cached_has_bits & 0x00000300u) { + if (cached_has_bits & 0x00000700u) { if (cached_has_bits & 0x00000100u) { client_flow_id_ = from.client_flow_id_; } if (cached_has_bits & 0x00000200u) { connection_mode_ = from.connection_mode_; } + if (cached_has_bits & 0x00000400u) { + device_type_ = from.device_type_; + } _has_bits_[0] |= cached_has_bits; } _internal_metadata_.MergeFrom(from._internal_metadata_); @@ -4617,8 +4966,8 @@ void ConnectionsLog_ConnectionAttempt::InternalSwap(ConnectionsLog_ConnectionAtt &other->connection_token_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttempt, connection_mode_) - + sizeof(ConnectionsLog_ConnectionAttempt::connection_mode_) + PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttempt, device_type_) + + sizeof(ConnectionsLog_ConnectionAttempt::device_type_) - PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttempt, connection_attempt_metadata_)>( reinterpret_cast(&connection_attempt_metadata_), reinterpret_cast(&other->connection_attempt_metadata_)); @@ -4629,42 +4978,652 @@ std::string ConnectionsLog_ConnectionAttempt::GetTypeName() const { } +// =================================================================== + +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; + } +}; + +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); + } + // @@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_; + // @@protoc_insertion_point(copy_constructor:location.nearby.analytics.proto.ConnectionsLog.DeviceInfo) +} + +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; +} + +ConnectionsLog_DeviceInfo::~ConnectionsLog_DeviceInfo() { + // @@protoc_insertion_point(destructor:location.nearby.analytics.proto.ConnectionsLog.DeviceInfo) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete(); +} + +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()); +} + +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); +} + +void ConnectionsLog_DeviceInfo::Clear() { +// @@protoc_insertion_point(message_clear_start:location.nearby.analytics.proto.ConnectionsLog.DeviceInfo) + 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(); + } + if (cached_has_bits & 0x00000002u) { + country_code_.ClearNonDefaultToEmpty(); + } + if (cached_has_bits & 0x00000004u) { + manufacturer_.ClearNonDefaultToEmpty(); + } + } + device_platform_ = 0; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +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 { + // @@protoc_insertion_point(serialize_to_array_start:location.nearby.analytics.proto.ConnectionsLog.DeviceInfo) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string device_model = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->WriteStringMaybeAliased( + 1, this->_internal_device_model(), target); + } + + // optional .location.nearby.analytics.proto.ConnectionsLog.DeviceInfo.Platform device_platform = 2; + if (cached_has_bits & 0x00000008u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::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); + } + + // optional string manufacturer = 4; + if (cached_has_bits & 0x00000004u) { + target = stream->WriteStringMaybeAliased( + 4, this->_internal_manufacturer(), 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); + } + // @@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; + + 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) { + // optional string device_model = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::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()); + } + + // optional string manufacturer = 4; + if (cached_has_bits & 0x00000004u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_manufacturer()); + } + + // optional .location.nearby.analytics.proto.ConnectionsLog.DeviceInfo.Platform device_platform = 2; + if (cached_has_bits & 0x00000008u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::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(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_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; + } + _internal_metadata_.MergeFrom(from._internal_metadata_); +} + +void ConnectionsLog_DeviceInfo::CopyFrom(const ConnectionsLog_DeviceInfo& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.analytics.proto.ConnectionsLog.DeviceInfo) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +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(); + _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_); +} + +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; + } +}; + +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); + } + // @@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) +} + +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_)); +} + +ConnectionsLog_DisconnectionReasonDetail::~ConnectionsLog_DisconnectionReasonDetail() { + // @@protoc_insertion_point(destructor:location.nearby.analytics.proto.ConnectionsLog.DisconnectionReasonDetail) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete(); +} + +inline void ConnectionsLog_DisconnectionReasonDetail::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +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); +} + +void ConnectionsLog_DisconnectionReasonDetail::Clear() { +// @@protoc_insertion_point(message_clear_start:location.nearby.analytics.proto.ConnectionsLog.DisconnectionReasonDetail) + 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_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +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 { + // @@protoc_insertion_point(serialize_to_array_start:location.nearby.analytics.proto.ConnectionsLog.DisconnectionReasonDetail) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bool is_local_disconnection = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::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) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::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); + } + // @@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; + + 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; + } + + // optional .location.nearby.analytics.proto.ConnectionsLog.DisconnectionReasonDetail.DisconnectionReason disconnection_reason = 2; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::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(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_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; + } + _internal_metadata_.MergeFrom(from._internal_metadata_); +} + +void ConnectionsLog_DisconnectionReasonDetail::CopyFrom(const ConnectionsLog_DisconnectionReasonDetail& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.analytics.proto.ConnectionsLog.DisconnectionReasonDetail) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ConnectionsLog_DisconnectionReasonDetail::IsInitialized() const { + return true; +} + +void ConnectionsLog_DisconnectionReasonDetail::InternalSwap(ConnectionsLog_DisconnectionReasonDetail* 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_)); +} + +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] |= 4u; - } - static void set_has_medium(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_disconnection_reason(HasBits* has_bits) { (*has_bits)[0] |= 16u; } - static void set_has_client_flow_id(HasBits* has_bits) { + 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] |= 64u; + (*has_bits)[0] |= 256u; } static void set_has_safe_disconnection_result(HasBits* has_bits) { - (*has_bits)[0] |= 128u; + (*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; + } }; 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), @@ -4695,9 +5654,19 @@ ConnectionsLog_EstablishedConnection::ConnectionsLog_EstablishedConnection(const } 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(&safe_disconnection_result_) - - reinterpret_cast(&duration_millis_)) + sizeof(safe_disconnection_result_)); + static_cast(reinterpret_cast(&device_type_) - + reinterpret_cast(&duration_millis_)) + sizeof(device_type_)); // @@protoc_insertion_point(copy_constructor:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection) } @@ -4708,8 +5677,8 @@ connection_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyS #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&operation_result_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&safe_disconnection_result_) - - reinterpret_cast(&operation_result_)) + sizeof(safe_disconnection_result_)); + 0, static_cast(reinterpret_cast(&device_type_) - + reinterpret_cast(&operation_result_)) + sizeof(device_type_)); } ConnectionsLog_EstablishedConnection::~ConnectionsLog_EstablishedConnection() { @@ -4723,6 +5692,8 @@ 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_; } void ConnectionsLog_EstablishedConnection::ArenaDtor(void* object) { @@ -4744,7 +5715,7 @@ void ConnectionsLog_EstablishedConnection::Clear() { sent_payload_.Clear(); received_payload_.Clear(); cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x0000000fu) { if (cached_has_bits & 0x00000001u) { connection_token_.ClearNonDefaultToEmpty(); } @@ -4752,11 +5723,24 @@ void ConnectionsLog_EstablishedConnection::Clear() { GOOGLE_DCHECK(operation_result_ != nullptr); operation_result_->Clear(); } + if (cached_has_bits & 0x00000004u) { + GOOGLE_DCHECK(remote_device_info_ != nullptr); + remote_device_info_->Clear(); + } + if (cached_has_bits & 0x00000008u) { + GOOGLE_DCHECK(disconnection_reason_detail_ != nullptr); + disconnection_reason_detail_->Clear(); + } } - if (cached_has_bits & 0x000000fcu) { + if (cached_has_bits & 0x000000f0u) { ::memset(&duration_millis_, 0, static_cast( - reinterpret_cast(&safe_disconnection_result_) - - reinterpret_cast(&duration_millis_)) + sizeof(safe_disconnection_result_)); + reinterpret_cast(&client_flow_id_) - + reinterpret_cast(&duration_millis_)) + sizeof(client_flow_id_)); + } + if (cached_has_bits & 0x00000700u) { + ::memset(&type_, 0, static_cast( + reinterpret_cast(&device_type_) - + reinterpret_cast(&type_)) + sizeof(device_type_)); } _has_bits_.Clear(); _internal_metadata_.Clear(); @@ -4882,6 +5866,35 @@ const char* ConnectionsLog_EstablishedConnection::_InternalParse(const char* 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; default: goto handle_unusual; } // switch @@ -4914,13 +5927,13 @@ uint8_t* ConnectionsLog_EstablishedConnection::_InternalSerialize( cached_has_bits = _has_bits_[0]; // optional int64 duration_millis = 1; - if (cached_has_bits & 0x00000004u) { + if (cached_has_bits & 0x00000010u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_duration_millis(), target); } // optional .location.nearby.proto.connections.Medium medium = 2; - if (cached_has_bits & 0x00000008u) { + if (cached_has_bits & 0x00000020u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( 2, this->_internal_medium(), target); @@ -4943,14 +5956,14 @@ uint8_t* ConnectionsLog_EstablishedConnection::_InternalSerialize( } // optional .location.nearby.proto.connections.DisconnectionReason disconnection_reason = 5; - if (cached_has_bits & 0x00000010u) { + if (cached_has_bits & 0x00000040u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( 5, this->_internal_disconnection_reason(), target); } // optional int64 client_flow_id = 6; - if (cached_has_bits & 0x00000020u) { + if (cached_has_bits & 0x00000080u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(6, this->_internal_client_flow_id(), target); } @@ -4962,14 +5975,14 @@ uint8_t* ConnectionsLog_EstablishedConnection::_InternalSerialize( } // optional .location.nearby.proto.connections.ConnectionAttemptType type = 8; - if (cached_has_bits & 0x00000040u) { + if (cached_has_bits & 0x00000100u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( 8, this->_internal_type(), target); } // optional .location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.SafeDisconnectionResult safe_disconnection_result = 9; - if (cached_has_bits & 0x00000080u) { + if (cached_has_bits & 0x00000200u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( 9, this->_internal_safe_disconnection_result(), target); @@ -4983,6 +5996,29 @@ uint8_t* ConnectionsLog_EstablishedConnection::_InternalSerialize( 10, _Internal::operation_result(this), 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); + } + + // 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); + } + + // optional .location.nearby.proto.connections.DeviceType device_type = 13; + if (cached_has_bits & 0x00000400u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 13, 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); @@ -5029,40 +6065,62 @@ size_t ConnectionsLog_EstablishedConnection::ByteSizeLong() const { *operation_result_); } - // optional int64 duration_millis = 1; + // optional .location.nearby.analytics.proto.ConnectionsLog.DeviceInfo remote_device_info = 11; if (cached_has_bits & 0x00000004u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *remote_device_info_); + } + + // optional .location.nearby.analytics.proto.ConnectionsLog.DisconnectionReasonDetail disconnection_reason_detail = 12; + if (cached_has_bits & 0x00000008u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *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()); } // optional .location.nearby.proto.connections.Medium medium = 2; - if (cached_has_bits & 0x00000008u) { + if (cached_has_bits & 0x00000020u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_medium()); } // optional .location.nearby.proto.connections.DisconnectionReason disconnection_reason = 5; - if (cached_has_bits & 0x00000010u) { + if (cached_has_bits & 0x00000040u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_disconnection_reason()); } // optional int64 client_flow_id = 6; - if (cached_has_bits & 0x00000020u) { + if (cached_has_bits & 0x00000080u) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_client_flow_id()); } + } + if (cached_has_bits & 0x00000700u) { // optional .location.nearby.proto.connections.ConnectionAttemptType type = 8; - if (cached_has_bits & 0x00000040u) { + if (cached_has_bits & 0x00000100u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type()); } // optional .location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.SafeDisconnectionResult safe_disconnection_result = 9; - if (cached_has_bits & 0x00000080u) { + if (cached_has_bits & 0x00000200u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_safe_disconnection_result()); } + // optional .location.nearby.proto.connections.DeviceType device_type = 13; + if (cached_has_bits & 0x00000400u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::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(); @@ -5095,23 +6153,35 @@ void ConnectionsLog_EstablishedConnection::MergeFrom(const ConnectionsLog_Establ _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_; + _internal_mutable_remote_device_info()->::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo::MergeFrom(from._internal_remote_device_info()); } if (cached_has_bits & 0x00000008u) { - medium_ = from.medium_; + _internal_mutable_disconnection_reason_detail()->::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail::MergeFrom(from._internal_disconnection_reason_detail()); } if (cached_has_bits & 0x00000010u) { - disconnection_reason_ = from.disconnection_reason_; + duration_millis_ = from.duration_millis_; } if (cached_has_bits & 0x00000020u) { - client_flow_id_ = from.client_flow_id_; + medium_ = from.medium_; } if (cached_has_bits & 0x00000040u) { - type_ = from.type_; + disconnection_reason_ = from.disconnection_reason_; } if (cached_has_bits & 0x00000080u) { + client_flow_id_ = from.client_flow_id_; + } + _has_bits_[0] |= cached_has_bits; + } + if (cached_has_bits & 0x00000700u) { + if (cached_has_bits & 0x00000100u) { + type_ = from.type_; + } + if (cached_has_bits & 0x00000200u) { safe_disconnection_result_ = from.safe_disconnection_result_; } + if (cached_has_bits & 0x00000400u) { + device_type_ = from.device_type_; + } _has_bits_[0] |= cached_has_bits; } _internal_metadata_.MergeFrom(from._internal_metadata_); @@ -5142,8 +6212,8 @@ void ConnectionsLog_EstablishedConnection::InternalSwap(ConnectionsLog_Establish &other->connection_token_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ConnectionsLog_EstablishedConnection, safe_disconnection_result_) - + sizeof(ConnectionsLog_EstablishedConnection::safe_disconnection_result_) + PROTOBUF_FIELD_OFFSET(ConnectionsLog_EstablishedConnection, device_type_) + + sizeof(ConnectionsLog_EstablishedConnection::device_type_) - PROTOBUF_FIELD_OFFSET(ConnectionsLog_EstablishedConnection, operation_result_)>( reinterpret_cast(&operation_result_), reinterpret_cast(&other->operation_result_)); @@ -5634,6 +6704,9 @@ class ConnectionsLog_BandwidthUpgradeAttempt::_Internal { 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; + } }; const ::location::nearby::analytics::proto::ConnectionsLog_OperationResult& @@ -5667,8 +6740,8 @@ ConnectionsLog_BandwidthUpgradeAttempt::ConnectionsLog_BandwidthUpgradeAttempt(c operation_result_ = nullptr; } ::memcpy(&duration_millis_, &from.duration_millis_, - static_cast(reinterpret_cast(&error_stage_) - - reinterpret_cast(&duration_millis_)) + sizeof(error_stage_)); + static_cast(reinterpret_cast(&device_type_) - + reinterpret_cast(&duration_millis_)) + sizeof(device_type_)); // @@protoc_insertion_point(copy_constructor:location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt) } @@ -5679,8 +6752,8 @@ connection_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyS #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&operation_result_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&error_stage_) - - reinterpret_cast(&operation_result_)) + sizeof(error_stage_)); + 0, static_cast(reinterpret_cast(&device_type_) - + reinterpret_cast(&operation_result_)) + sizeof(device_type_)); } ConnectionsLog_BandwidthUpgradeAttempt::~ConnectionsLog_BandwidthUpgradeAttempt() { @@ -5727,7 +6800,11 @@ void ConnectionsLog_BandwidthUpgradeAttempt::Clear() { reinterpret_cast(&client_flow_id_) - reinterpret_cast(&duration_millis_)) + sizeof(client_flow_id_)); } - error_stage_ = 0; + if (cached_has_bits & 0x00000300u) { + ::memset(&error_stage_, 0, static_cast( + reinterpret_cast(&device_type_) - + reinterpret_cast(&error_stage_)) + sizeof(device_type_)); + } _has_bits_.Clear(); _internal_metadata_.Clear(); } @@ -5839,6 +6916,19 @@ const char* ConnectionsLog_BandwidthUpgradeAttempt::_InternalParse(const char* p } 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; default: goto handle_unusual; } // switch @@ -5931,6 +7021,13 @@ uint8_t* ConnectionsLog_BandwidthUpgradeAttempt::_InternalSerialize( 9, _Internal::operation_result(this), target, stream); } + // optional .location.nearby.proto.connections.DeviceType device_type = 10; + if (cached_has_bits & 0x00000200u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 10, 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); @@ -5998,12 +7095,20 @@ size_t ConnectionsLog_BandwidthUpgradeAttempt::ByteSizeLong() const { } } - // optional .location.nearby.proto.connections.BandwidthUpgradeErrorStage error_stage = 6; - if (cached_has_bits & 0x00000100u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_error_stage()); - } + if (cached_has_bits & 0x00000300u) { + // optional .location.nearby.proto.connections.BandwidthUpgradeErrorStage error_stage = 6; + if (cached_has_bits & 0x00000100u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_error_stage()); + } + // optional .location.nearby.proto.connections.DeviceType device_type = 10; + if (cached_has_bits & 0x00000200u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::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(); } @@ -6052,8 +7157,14 @@ void ConnectionsLog_BandwidthUpgradeAttempt::MergeFrom(const ConnectionsLog_Band } _has_bits_[0] |= cached_has_bits; } - if (cached_has_bits & 0x00000100u) { - _internal_set_error_stage(from._internal_error_stage()); + if (cached_has_bits & 0x00000300u) { + if (cached_has_bits & 0x00000100u) { + error_stage_ = from.error_stage_; + } + if (cached_has_bits & 0x00000200u) { + device_type_ = from.device_type_; + } + _has_bits_[0] |= cached_has_bits; } _internal_metadata_.MergeFrom(from._internal_metadata_); } @@ -6081,8 +7192,8 @@ void ConnectionsLog_BandwidthUpgradeAttempt::InternalSwap(ConnectionsLog_Bandwid &other->connection_token_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ConnectionsLog_BandwidthUpgradeAttempt, error_stage_) - + sizeof(ConnectionsLog_BandwidthUpgradeAttempt::error_stage_) + PROTOBUF_FIELD_OFFSET(ConnectionsLog_BandwidthUpgradeAttempt, device_type_) + + sizeof(ConnectionsLog_BandwidthUpgradeAttempt::device_type_) - PROTOBUF_FIELD_OFFSET(ConnectionsLog_BandwidthUpgradeAttempt, operation_result_)>( reinterpret_cast(&operation_result_), reinterpret_cast(&other->operation_result_)); @@ -8902,6 +10013,12 @@ template<> PROTOBUF_NOINLINE ::location::nearby::analytics::proto::ConnectionsLo 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); } diff --git a/compiled_proto/internal/proto/analytics/connections_log.pb.h b/compiled_proto/internal/proto/analytics/connections_log.pb.h index 1370b031..d9a4f7a7 100644 --- a/compiled_proto/internal/proto/analytics/connections_log.pb.h +++ b/compiled_proto/internal/proto/analytics/connections_log.pb.h @@ -47,7 +47,7 @@ struct TableStruct_internal_2fproto_2fanalytics_2fconnections_5flog_2eproto { 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[19] + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[21] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; @@ -81,6 +81,12 @@ extern ConnectionsLog_ConnectionAttemptMetadataDefaultTypeInternal _ConnectionsL class ConnectionsLog_ConnectionRequest; struct ConnectionsLog_ConnectionRequestDefaultTypeInternal; extern ConnectionsLog_ConnectionRequestDefaultTypeInternal _ConnectionsLog_ConnectionRequest_default_instance_; +class ConnectionsLog_DeviceInfo; +struct ConnectionsLog_DeviceInfoDefaultTypeInternal; +extern ConnectionsLog_DeviceInfoDefaultTypeInternal _ConnectionsLog_DeviceInfo_default_instance_; +class ConnectionsLog_DisconnectionReasonDetail; +struct ConnectionsLog_DisconnectionReasonDetailDefaultTypeInternal; +extern ConnectionsLog_DisconnectionReasonDetailDefaultTypeInternal _ConnectionsLog_DisconnectionReasonDetail_default_instance_; class ConnectionsLog_DiscoveredEndpoint; struct ConnectionsLog_DiscoveredEndpointDefaultTypeInternal; extern ConnectionsLog_DiscoveredEndpointDefaultTypeInternal _ConnectionsLog_DiscoveredEndpoint_default_instance_; @@ -127,6 +133,8 @@ template<> ::location::nearby::analytics::proto::ConnectionsLog_ClientSession* A 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_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*); @@ -144,6 +152,63 @@ 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 +}; +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) { + 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)); +} +bool ConnectionsLog_DeviceInfo_Platform_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionsLog_DeviceInfo_Platform* value); +enum ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason : int { + ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_UNKNOWN_DISCONNECTION_REASON = 0, + ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DCT_ERROR_MDNS_DISCOVERY_TIMEOUT = 1, + ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DCT_ERROR_MDNS_REGISTER_SERVICE = 2, + ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DCT_ERROR_SUBSEQUENT_TLS_SPAKE = 3, + ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DCT_ERROR_REQUEST_FAILED = 4, + ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DCT_ERROR_RESPONSE_FAILED = 5, + ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DCT_ERROR_CONTROL_MESSAGE_EXCHANGE = 6, + ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DCT_ERROR_CAPABILITY_MISMATCH = 7, + ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DCT_ERROR_HIGH_SPEED_MEDIUM_UNAVAILABLE = 8, + ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DCT_ERROR_WIFI_DISABLED = 9, + ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DCT_ERROR_WIFI_DISCONNECTED = 10, + ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DCT_ERROR_WIFI_CREDENTIAL_TRANSFER = 11, + ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DCT_ERROR_WIFI_INTERNET_CONNECTION = 12, + ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_DCT_ERROR_UPGRADE_HIGH_SPEED_MEDIUM_FAILED = 13, + 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 +}; +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) { + 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)); +} +bool ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionsLog_DisconnectionReasonDetail_DisconnectionReason* value); enum ConnectionsLog_EstablishedConnection_SafeDisconnectionResult : int { ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_UNKNOWN_SAFE_DISCONNECTION_RESULT = 0, ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_SAFE_DISCONNECTION = 1, @@ -1140,6 +1205,7 @@ class ConnectionsLog_DiscoveryPhase final : kDurationMillisFieldNumber = 1, kClientFlowIdFieldNumber = 6, kStopReasonFieldNumber = 9, + kDeviceTypeFieldNumber = 10, }; // repeated .location.nearby.proto.connections.Medium medium = 2; int medium_size() const; @@ -1287,6 +1353,19 @@ class ConnectionsLog_DiscoveryPhase final : 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: + // @@protoc_insertion_point(class_scope:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase) private: class _Internal; @@ -1305,6 +1384,7 @@ class ConnectionsLog_DiscoveryPhase final : int64_t duration_millis_; int64_t client_flow_id_; int stop_reason_; + int device_type_; friend struct ::TableStruct_internal_2fproto_2fanalytics_2fconnections_5flog_2eproto; }; // ------------------------------------------------------------------- @@ -2055,6 +2135,7 @@ class ConnectionsLog_AdvertisingPhase final : kDurationMillisFieldNumber = 1, kClientFlowIdFieldNumber = 4, kStopReasonFieldNumber = 7, + kDeviceTypeFieldNumber = 8, }; // repeated .location.nearby.proto.connections.Medium medium = 2; int medium_size() const; @@ -2166,6 +2247,19 @@ class ConnectionsLog_AdvertisingPhase final : 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: + // @@protoc_insertion_point(class_scope:location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase) private: class _Internal; @@ -2182,6 +2276,7 @@ class ConnectionsLog_AdvertisingPhase final : int64_t duration_millis_; int64_t client_flow_id_; int stop_reason_; + int device_type_; friend struct ::TableStruct_internal_2fproto_2fanalytics_2fconnections_5flog_2eproto; }; // ------------------------------------------------------------------- @@ -2511,6 +2606,7 @@ class ConnectionsLog_ConnectionAttempt final : kAttemptResultFieldNumber = 5, kClientFlowIdFieldNumber = 6, kConnectionModeFieldNumber = 10, + kDeviceTypeFieldNumber = 11, }; // optional string connection_token = 7; bool has_connection_token() const; @@ -2657,6 +2753,19 @@ class ConnectionsLog_ConnectionAttempt final : 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: + // @@protoc_insertion_point(class_scope:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt) private: class _Internal; @@ -2676,6 +2785,456 @@ class ConnectionsLog_ConnectionAttempt final : int attempt_result_; int64_t client_flow_id_; int connection_mode_; + int device_type_; + 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; }; // ------------------------------------------------------------------- @@ -2726,7 +3285,7 @@ class ConnectionsLog_EstablishedConnection final : &_ConnectionsLog_EstablishedConnection_default_instance_); } static constexpr int kIndexInFileMessages = - 11; + 13; friend void swap(ConnectionsLog_EstablishedConnection& a, ConnectionsLog_EstablishedConnection& b) { a.Swap(&b); @@ -2825,12 +3384,15 @@ class ConnectionsLog_EstablishedConnection final : kReceivedPayloadFieldNumber = 4, kConnectionTokenFieldNumber = 7, kOperationResultFieldNumber = 10, + kRemoteDeviceInfoFieldNumber = 11, + kDisconnectionReasonDetailFieldNumber = 12, kDurationMillisFieldNumber = 1, kMediumFieldNumber = 2, kDisconnectionReasonFieldNumber = 5, kClientFlowIdFieldNumber = 6, kTypeFieldNumber = 8, kSafeDisconnectionResultFieldNumber = 9, + kDeviceTypeFieldNumber = 13, }; // repeated .location.nearby.analytics.proto.ConnectionsLog.Payload sent_payload = 3; int sent_payload_size() const; @@ -2904,6 +3466,42 @@ class ConnectionsLog_EstablishedConnection final : ::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: @@ -2982,6 +3580,19 @@ class ConnectionsLog_EstablishedConnection final : 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: + // @@protoc_insertion_point(class_scope:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection) private: class _Internal; @@ -2995,12 +3606,15 @@ class ConnectionsLog_EstablishedConnection final : ::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_; friend struct ::TableStruct_internal_2fproto_2fanalytics_2fconnections_5flog_2eproto; }; // ------------------------------------------------------------------- @@ -3051,7 +3665,7 @@ class ConnectionsLog_Payload final : &_ConnectionsLog_Payload_default_instance_); } static constexpr int kIndexInFileMessages = - 12; + 14; friend void swap(ConnectionsLog_Payload& a, ConnectionsLog_Payload& b) { a.Swap(&b); @@ -3318,7 +3932,7 @@ class ConnectionsLog_BandwidthUpgradeAttempt final : &_ConnectionsLog_BandwidthUpgradeAttempt_default_instance_); } static constexpr int kIndexInFileMessages = - 13; + 15; friend void swap(ConnectionsLog_BandwidthUpgradeAttempt& a, ConnectionsLog_BandwidthUpgradeAttempt& b) { a.Swap(&b); @@ -3394,6 +4008,7 @@ class ConnectionsLog_BandwidthUpgradeAttempt final : kUpgradeResultFieldNumber = 5, kClientFlowIdFieldNumber = 7, kErrorStageFieldNumber = 6, + kDeviceTypeFieldNumber = 10, }; // optional string connection_token = 8; bool has_connection_token() const; @@ -3522,6 +4137,19 @@ class ConnectionsLog_BandwidthUpgradeAttempt final : 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: + // @@protoc_insertion_point(class_scope:location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt) private: class _Internal; @@ -3540,6 +4168,7 @@ class ConnectionsLog_BandwidthUpgradeAttempt final : int upgrade_result_; int64_t client_flow_id_; int error_stage_; + int device_type_; friend struct ::TableStruct_internal_2fproto_2fanalytics_2fconnections_5flog_2eproto; }; // ------------------------------------------------------------------- @@ -3608,7 +4237,7 @@ class ConnectionsLog_ErrorCode final : &_ConnectionsLog_ErrorCode_default_instance_); } static constexpr int kIndexInFileMessages = - 14; + 16; friend void swap(ConnectionsLog_ErrorCode& a, ConnectionsLog_ErrorCode& b) { a.Swap(&b); @@ -4085,7 +4714,7 @@ class ConnectionsLog_AdvertisingMetadata final : &_ConnectionsLog_AdvertisingMetadata_default_instance_); } static constexpr int kIndexInFileMessages = - 15; + 17; friend void swap(ConnectionsLog_AdvertisingMetadata& a, ConnectionsLog_AdvertisingMetadata& b) { a.Swap(&b); @@ -4332,7 +4961,7 @@ class ConnectionsLog_DiscoveryMetadata final : &_ConnectionsLog_DiscoveryMetadata_default_instance_); } static constexpr int kIndexInFileMessages = - 16; + 18; friend void swap(ConnectionsLog_DiscoveryMetadata& a, ConnectionsLog_DiscoveryMetadata& b) { a.Swap(&b); @@ -4519,7 +5148,7 @@ class ConnectionsLog_ConnectionAttemptMetadata final : &_ConnectionsLog_ConnectionAttemptMetadata_default_instance_); } static constexpr int kIndexInFileMessages = - 17; + 19; friend void swap(ConnectionsLog_ConnectionAttemptMetadata& a, ConnectionsLog_ConnectionAttemptMetadata& b) { a.Swap(&b); @@ -4881,7 +5510,7 @@ class ConnectionsLog final : &_ConnectionsLog_default_instance_); } static constexpr int kIndexInFileMessages = - 18; + 20; friend void swap(ConnectionsLog& a, ConnectionsLog& b) { a.Swap(&b); @@ -4956,6 +5585,8 @@ class ConnectionsLog final : 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_Payload Payload; typedef ConnectionsLog_BandwidthUpgradeAttempt BandwidthUpgradeAttempt; @@ -6234,6 +6865,35 @@ inline void ConnectionsLog_DiscoveryPhase::set_stop_reason(::location::nearby::p // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase.stop_reason) } +// 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; + 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_); +} +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); + // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.DiscoveryPhase.device_type) +} + // ------------------------------------------------------------------- // ConnectionsLog_DiscoveredEndpoint @@ -7011,6 +7671,35 @@ inline void ConnectionsLog_AdvertisingPhase::set_stop_reason(::location::nearby: // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase.stop_reason) } +// 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; + 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_); +} +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); + // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.AdvertisingPhase.device_type) +} + // ------------------------------------------------------------------- // ConnectionsLog_ConnectionRequest @@ -7611,13 +8300,343 @@ inline void ConnectionsLog_ConnectionAttempt::set_connection_mode(::location::ne // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt.connection_mode) } +// 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; + 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_); +} +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); + // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttempt.device_type) +} + +// ------------------------------------------------------------------- + +// ConnectionsLog_DeviceInfo + +// optional string device_model = 1; +inline bool ConnectionsLog_DeviceInfo::_internal_has_device_model() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + 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; +} +inline const std::string& ConnectionsLog_DeviceInfo::device_model() const { + // @@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()); + // @@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(); + // @@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 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 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* ConnectionsLog_DeviceInfo::release_device_model() { + // @@protoc_insertion_point(field_release:location.nearby.analytics.proto.ConnectionsLog.DeviceInfo.device_model) + if (!_internal_has_device_model()) { + 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()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; +} +inline void ConnectionsLog_DeviceInfo::set_allocated_device_model(std::string* device_model) { + if (device_model != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _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()); + } +#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; + 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_); +} +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); + // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.DeviceInfo.device_platform) +} + +// optional string country_code = 3; +inline bool ConnectionsLog_DeviceInfo::_internal_has_country_code() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + 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; +} +inline const std::string& ConnectionsLog_DeviceInfo::country_code() const { + // @@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()); + // @@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(); + // @@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 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 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* ConnectionsLog_DeviceInfo::release_country_code() { + // @@protoc_insertion_point(field_release:location.nearby.analytics.proto.ConnectionsLog.DeviceInfo.country_code) + if (!_internal_has_country_code()) { + 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()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; +} +inline void ConnectionsLog_DeviceInfo::set_allocated_country_code(std::string* country_code) { + if (country_code != nullptr) { + _has_bits_[0] |= 0x00000002u; + } else { + _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()); + } +#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; + 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; +} +inline const std::string& ConnectionsLog_DeviceInfo::manufacturer() const { + // @@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()); + // @@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(); + // @@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 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 std::string* ConnectionsLog_DeviceInfo::_internal_mutable_manufacturer() { + _has_bits_[0] |= 0x00000004u; + return manufacturer_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* ConnectionsLog_DeviceInfo::release_manufacturer() { + // @@protoc_insertion_point(field_release:location.nearby.analytics.proto.ConnectionsLog.DeviceInfo.manufacturer) + if (!_internal_has_manufacturer()) { + 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()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; +} +inline void ConnectionsLog_DeviceInfo::set_allocated_manufacturer(std::string* manufacturer) { + if (manufacturer != nullptr) { + _has_bits_[0] |= 0x00000004u; + } else { + _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()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:location.nearby.analytics.proto.ConnectionsLog.DeviceInfo.manufacturer) +} + +// ------------------------------------------------------------------- + +// 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; + 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_; +} +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); + // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.DisconnectionReasonDetail.is_local_disconnection) +} + +// 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; + 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_); +} +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); + // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.DisconnectionReasonDetail.disconnection_reason) +} + // ------------------------------------------------------------------- // ConnectionsLog_EstablishedConnection // optional int64 duration_millis = 1; inline bool ConnectionsLog_EstablishedConnection::_internal_has_duration_millis() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; + bool value = (_has_bits_[0] & 0x00000010u) != 0; return value; } inline bool ConnectionsLog_EstablishedConnection::has_duration_millis() const { @@ -7625,7 +8644,7 @@ inline bool ConnectionsLog_EstablishedConnection::has_duration_millis() const { } inline void ConnectionsLog_EstablishedConnection::clear_duration_millis() { duration_millis_ = int64_t{0}; - _has_bits_[0] &= ~0x00000004u; + _has_bits_[0] &= ~0x00000010u; } inline int64_t ConnectionsLog_EstablishedConnection::_internal_duration_millis() const { return duration_millis_; @@ -7635,7 +8654,7 @@ inline int64_t ConnectionsLog_EstablishedConnection::duration_millis() const { return _internal_duration_millis(); } inline void ConnectionsLog_EstablishedConnection::_internal_set_duration_millis(int64_t value) { - _has_bits_[0] |= 0x00000004u; + _has_bits_[0] |= 0x00000010u; duration_millis_ = value; } inline void ConnectionsLog_EstablishedConnection::set_duration_millis(int64_t value) { @@ -7645,7 +8664,7 @@ inline void ConnectionsLog_EstablishedConnection::set_duration_millis(int64_t va // optional .location.nearby.proto.connections.Medium medium = 2; inline bool ConnectionsLog_EstablishedConnection::_internal_has_medium() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; + bool value = (_has_bits_[0] & 0x00000020u) != 0; return value; } inline bool ConnectionsLog_EstablishedConnection::has_medium() const { @@ -7653,7 +8672,7 @@ inline bool ConnectionsLog_EstablishedConnection::has_medium() const { } inline void ConnectionsLog_EstablishedConnection::clear_medium() { medium_ = 0; - _has_bits_[0] &= ~0x00000008u; + _has_bits_[0] &= ~0x00000020u; } inline ::location::nearby::proto::connections::Medium ConnectionsLog_EstablishedConnection::_internal_medium() const { return static_cast< ::location::nearby::proto::connections::Medium >(medium_); @@ -7664,7 +8683,7 @@ inline ::location::nearby::proto::connections::Medium ConnectionsLog_Established } inline void ConnectionsLog_EstablishedConnection::_internal_set_medium(::location::nearby::proto::connections::Medium value) { assert(::location::nearby::proto::connections::Medium_IsValid(value)); - _has_bits_[0] |= 0x00000008u; + _has_bits_[0] |= 0x00000020u; medium_ = value; } inline void ConnectionsLog_EstablishedConnection::set_medium(::location::nearby::proto::connections::Medium value) { @@ -7754,7 +8773,7 @@ ConnectionsLog_EstablishedConnection::received_payload() const { // optional .location.nearby.proto.connections.DisconnectionReason disconnection_reason = 5; inline bool ConnectionsLog_EstablishedConnection::_internal_has_disconnection_reason() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; + bool value = (_has_bits_[0] & 0x00000040u) != 0; return value; } inline bool ConnectionsLog_EstablishedConnection::has_disconnection_reason() const { @@ -7762,7 +8781,7 @@ inline bool ConnectionsLog_EstablishedConnection::has_disconnection_reason() con } inline void ConnectionsLog_EstablishedConnection::clear_disconnection_reason() { disconnection_reason_ = 0; - _has_bits_[0] &= ~0x00000010u; + _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_); @@ -7773,7 +8792,7 @@ inline ::location::nearby::proto::connections::DisconnectionReason ConnectionsLo } 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] |= 0x00000010u; + _has_bits_[0] |= 0x00000040u; disconnection_reason_ = value; } inline void ConnectionsLog_EstablishedConnection::set_disconnection_reason(::location::nearby::proto::connections::DisconnectionReason value) { @@ -7783,7 +8802,7 @@ inline void ConnectionsLog_EstablishedConnection::set_disconnection_reason(::loc // optional int64 client_flow_id = 6; inline bool ConnectionsLog_EstablishedConnection::_internal_has_client_flow_id() const { - bool value = (_has_bits_[0] & 0x00000020u) != 0; + bool value = (_has_bits_[0] & 0x00000080u) != 0; return value; } inline bool ConnectionsLog_EstablishedConnection::has_client_flow_id() const { @@ -7791,7 +8810,7 @@ inline bool ConnectionsLog_EstablishedConnection::has_client_flow_id() const { } inline void ConnectionsLog_EstablishedConnection::clear_client_flow_id() { client_flow_id_ = int64_t{0}; - _has_bits_[0] &= ~0x00000020u; + _has_bits_[0] &= ~0x00000080u; } inline int64_t ConnectionsLog_EstablishedConnection::_internal_client_flow_id() const { return client_flow_id_; @@ -7801,7 +8820,7 @@ inline int64_t ConnectionsLog_EstablishedConnection::client_flow_id() const { return _internal_client_flow_id(); } inline void ConnectionsLog_EstablishedConnection::_internal_set_client_flow_id(int64_t value) { - _has_bits_[0] |= 0x00000020u; + _has_bits_[0] |= 0x00000080u; client_flow_id_ = value; } inline void ConnectionsLog_EstablishedConnection::set_client_flow_id(int64_t value) { @@ -7880,7 +8899,7 @@ inline void ConnectionsLog_EstablishedConnection::set_allocated_connection_token // optional .location.nearby.proto.connections.ConnectionAttemptType type = 8; inline bool ConnectionsLog_EstablishedConnection::_internal_has_type() const { - bool value = (_has_bits_[0] & 0x00000040u) != 0; + bool value = (_has_bits_[0] & 0x00000100u) != 0; return value; } inline bool ConnectionsLog_EstablishedConnection::has_type() const { @@ -7888,7 +8907,7 @@ inline bool ConnectionsLog_EstablishedConnection::has_type() const { } inline void ConnectionsLog_EstablishedConnection::clear_type() { type_ = 0; - _has_bits_[0] &= ~0x00000040u; + _has_bits_[0] &= ~0x00000100u; } inline ::location::nearby::proto::connections::ConnectionAttemptType ConnectionsLog_EstablishedConnection::_internal_type() const { return static_cast< ::location::nearby::proto::connections::ConnectionAttemptType >(type_); @@ -7899,7 +8918,7 @@ inline ::location::nearby::proto::connections::ConnectionAttemptType Connections } inline void ConnectionsLog_EstablishedConnection::_internal_set_type(::location::nearby::proto::connections::ConnectionAttemptType value) { assert(::location::nearby::proto::connections::ConnectionAttemptType_IsValid(value)); - _has_bits_[0] |= 0x00000040u; + _has_bits_[0] |= 0x00000100u; type_ = value; } inline void ConnectionsLog_EstablishedConnection::set_type(::location::nearby::proto::connections::ConnectionAttemptType value) { @@ -7909,7 +8928,7 @@ inline void ConnectionsLog_EstablishedConnection::set_type(::location::nearby::p // 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] & 0x00000080u) != 0; + bool value = (_has_bits_[0] & 0x00000200u) != 0; return value; } inline bool ConnectionsLog_EstablishedConnection::has_safe_disconnection_result() const { @@ -7917,7 +8936,7 @@ inline bool ConnectionsLog_EstablishedConnection::has_safe_disconnection_result( } inline void ConnectionsLog_EstablishedConnection::clear_safe_disconnection_result() { safe_disconnection_result_ = 0; - _has_bits_[0] &= ~0x00000080u; + _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_); @@ -7928,7 +8947,7 @@ inline ::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnectio } 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] |= 0x00000080u; + _has_bits_[0] |= 0x00000200u; safe_disconnection_result_ = value; } inline void ConnectionsLog_EstablishedConnection::set_safe_disconnection_result(::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection_SafeDisconnectionResult value) { @@ -8026,6 +9045,215 @@ inline void ConnectionsLog_EstablishedConnection::set_allocated_operation_result // @@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); + 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; +} +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_); +} +inline const ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo& ConnectionsLog_EstablishedConnection::remote_device_info() const { + // @@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_); + } + remote_device_info_ = remote_device_info; + if (remote_device_info) { + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + // @@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); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo* ConnectionsLog_EstablishedConnection::unsafe_arena_release_remote_device_info() { + // @@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; + 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; + } + return remote_device_info_; +} +inline ::location::nearby::analytics::proto::ConnectionsLog_DeviceInfo* ConnectionsLog_EstablishedConnection::mutable_remote_device_info() { + ::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(); + if (message_arena == nullptr) { + delete 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 (message_arena != submessage_arena) { + remote_device_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, remote_device_info, submessage_arena); + } + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + remote_device_info_ = remote_device_info; + // @@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); + 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; +} +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_); +} +inline const ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail& ConnectionsLog_EstablishedConnection::disconnection_reason_detail() const { + // @@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_); + } + disconnection_reason_detail_ = disconnection_reason_detail; + if (disconnection_reason_detail) { + _has_bits_[0] |= 0x00000008u; + } else { + _has_bits_[0] &= ~0x00000008u; + } + // @@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); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail* ConnectionsLog_EstablishedConnection::unsafe_arena_release_disconnection_reason_detail() { + // @@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; + 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; + } + return disconnection_reason_detail_; +} +inline ::location::nearby::analytics::proto::ConnectionsLog_DisconnectionReasonDetail* ConnectionsLog_EstablishedConnection::mutable_disconnection_reason_detail() { + ::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(); + if (message_arena == nullptr) { + delete 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 (message_arena != submessage_arena) { + disconnection_reason_detail = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, disconnection_reason_detail, submessage_arena); + } + _has_bits_[0] |= 0x00000008u; + } else { + _has_bits_[0] &= ~0x00000008u; + } + disconnection_reason_detail_ = disconnection_reason_detail; + // @@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; + 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_); +} +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); + // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.device_type) +} + // ------------------------------------------------------------------- // ConnectionsLog_Payload @@ -8710,6 +9938,35 @@ inline void ConnectionsLog_BandwidthUpgradeAttempt::set_allocated_operation_resu // @@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; + 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_); +} +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); + // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.BandwidthUpgradeAttempt.device_type) +} + // ------------------------------------------------------------------- // ConnectionsLog_ErrorCode @@ -10824,6 +12081,10 @@ inline void ConnectionsLog::set_allocated_files_migration_phase(std::string* fil // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) @@ -10834,6 +12095,8 @@ inline void ConnectionsLog::set_allocated_files_migration_phase(std::string* fil 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 {}; PROTOBUF_NAMESPACE_CLOSE diff --git a/compiled_proto/proto/connections_enums.pb.cc b/compiled_proto/proto/connections_enums.pb.cc index b304671d..b7e383da 100644 --- a/compiled_proto/proto/connections_enums.pb.cc +++ b/compiled_proto/proto/connections_enums.pb.cc @@ -1572,18 +1572,20 @@ bool OperationResultCategory_IsValid(int value) { case 7: case 8: case 9: + case 10: return true; default: return false; } } -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed OperationResultCategory_strings[10] = {}; +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" @@ -1596,26 +1598,28 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry OperationResultCategor { {OperationResultCategory_names + 0, 28}, 2 }, { {OperationResultCategory_names + 28, 21}, 5 }, { {OperationResultCategory_names + 49, 27}, 7 }, - { {OperationResultCategory_names + 76, 27}, 4 }, - { {OperationResultCategory_names + 103, 17}, 9 }, - { {OperationResultCategory_names + 120, 27}, 3 }, - { {OperationResultCategory_names + 147, 22}, 8 }, - { {OperationResultCategory_names + 169, 21}, 6 }, - { {OperationResultCategory_names + 190, 16}, 1 }, - { {OperationResultCategory_names + 206, 16}, 0 }, + { {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[] = { - 9, // 0 -> CATEGORY_UNKNOWN - 8, // 1 -> CATEGORY_SUCCESS + 10, // 0 -> CATEGORY_UNKNOWN + 9, // 1 -> CATEGORY_SUCCESS 0, // 2 -> CATEGORY_CLIENT_CANCELLATION - 5, // 3 -> CATEGORY_MEDIUM_UNAVAILABLE - 3, // 4 -> CATEGORY_DEVICE_STATE_ERROR + 6, // 3 -> CATEGORY_MEDIUM_UNAVAILABLE + 4, // 4 -> CATEGORY_DEVICE_STATE_ERROR 1, // 5 -> CATEGORY_CLIENT_ERROR - 7, // 6 -> CATEGORY_NEARBY_ERROR + 8, // 6 -> CATEGORY_NEARBY_ERROR 2, // 7 -> CATEGORY_CONNECTIVITY_ERROR - 6, // 8 -> CATEGORY_MISCELLANEOUS - 4, // 9 -> CATEGORY_IO_ERROR + 7, // 8 -> CATEGORY_MISCELLANEOUS + 5, // 9 -> CATEGORY_IO_ERROR + 3, // 10 -> CATEGORY_DCT_ERROR }; const std::string& OperationResultCategory_Name( @@ -1624,12 +1628,12 @@ const std::string& OperationResultCategory_Name( ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( OperationResultCategory_entries, OperationResultCategory_entries_by_number, - 10, OperationResultCategory_strings); + 11, OperationResultCategory_strings); (void) dummy; int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( OperationResultCategory_entries, OperationResultCategory_entries_by_number, - 10, value); + 11, value); return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : OperationResultCategory_strings[idx].get(); } @@ -1637,7 +1641,7 @@ bool OperationResultCategory_Parse( ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, OperationResultCategory* value) { int int_value; bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( - OperationResultCategory_entries, 10, name, &int_value); + OperationResultCategory_entries, 11, name, &int_value); if (success) { *value = static_cast(int_value); } @@ -2003,13 +2007,38 @@ bool OperationResultCode_IsValid(int value) { case 4607: case 4608: case 4609: + 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; } } -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed OperationResultCode_strings[358] = {}; +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed OperationResultCode_strings[383] = {}; static const char OperationResultCode_names[] = "CLIENT_ALREADY_CONNECTED_TO_ENDPOINT" @@ -2174,6 +2203,31 @@ static const char OperationResultCode_names[] = "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" @@ -2534,207 +2588,232 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry OperationResultCode_en { {OperationResultCode_names + 7261, 44}, 3582 }, { {OperationResultCode_names + 7305, 47}, 3588 }, { {OperationResultCode_names + 7352, 45}, 3594 }, - { {OperationResultCode_names + 7397, 14}, 1 }, - { {OperationResultCode_names + 7411, 14}, 0 }, - { {OperationResultCode_names + 7425, 46}, 1000 }, - { {OperationResultCode_names + 7471, 39}, 1001 }, - { {OperationResultCode_names + 7510, 30}, 1002 }, - { {OperationResultCode_names + 7540, 36}, 1003 }, - { {OperationResultCode_names + 7576, 35}, 1004 }, - { {OperationResultCode_names + 7611, 27}, 3005 }, - { {OperationResultCode_names + 7638, 33}, 3006 }, - { {OperationResultCode_names + 7671, 26}, 3007 }, - { {OperationResultCode_names + 7697, 27}, 3009 }, - { {OperationResultCode_names + 7724, 27}, 3013 }, - { {OperationResultCode_names + 7751, 27}, 3014 }, - { {OperationResultCode_names + 7778, 31}, 3008 }, - { {OperationResultCode_names + 7809, 34}, 3012 }, - { {OperationResultCode_names + 7843, 35}, 3010 }, - { {OperationResultCode_names + 7878, 36}, 3011 }, - { {OperationResultCode_names + 7914, 21}, 3000 }, - { {OperationResultCode_names + 7935, 21}, 3001 }, - { {OperationResultCode_names + 7956, 21}, 3002 }, - { {OperationResultCode_names + 7977, 24}, 3003 }, - { {OperationResultCode_names + 8001, 29}, 3004 }, - { {OperationResultCode_names + 8030, 51}, 1534 }, - { {OperationResultCode_names + 8081, 60}, 1535 }, - { {OperationResultCode_names + 8141, 47}, 1515 }, - { {OperationResultCode_names + 8188, 36}, 1505 }, - { {OperationResultCode_names + 8224, 42}, 1507 }, - { {OperationResultCode_names + 8266, 40}, 1546 }, - { {OperationResultCode_names + 8306, 46}, 1516 }, - { {OperationResultCode_names + 8352, 45}, 1501 }, - { {OperationResultCode_names + 8397, 45}, 1541 }, - { {OperationResultCode_names + 8442, 38}, 1506 }, - { {OperationResultCode_names + 8480, 30}, 1544 }, - { {OperationResultCode_names + 8510, 47}, 1517 }, - { {OperationResultCode_names + 8557, 36}, 1513 }, - { {OperationResultCode_names + 8593, 54}, 1532 }, - { {OperationResultCode_names + 8647, 49}, 1503 }, - { {OperationResultCode_names + 8696, 52}, 1504 }, - { {OperationResultCode_names + 8748, 37}, 1543 }, - { {OperationResultCode_names + 8785, 47}, 1518 }, - { {OperationResultCode_names + 8832, 36}, 1512 }, - { {OperationResultCode_names + 8868, 36}, 1542 }, - { {OperationResultCode_names + 8904, 30}, 1545 }, - { {OperationResultCode_names + 8934, 60}, 1536 }, - { {OperationResultCode_names + 8994, 43}, 1533 }, - { {OperationResultCode_names + 9037, 38}, 1502 }, - { {OperationResultCode_names + 9075, 39}, 1539 }, - { {OperationResultCode_names + 9114, 37}, 1540 }, - { {OperationResultCode_names + 9151, 41}, 1537 }, - { {OperationResultCode_names + 9192, 55}, 1526 }, - { {OperationResultCode_names + 9247, 54}, 1530 }, - { {OperationResultCode_names + 9301, 57}, 1527 }, - { {OperationResultCode_names + 9358, 55}, 1529 }, - { {OperationResultCode_names + 9413, 55}, 1531 }, - { {OperationResultCode_names + 9468, 59}, 1528 }, - { {OperationResultCode_names + 9527, 47}, 1519 }, - { {OperationResultCode_names + 9574, 36}, 1514 }, - { {OperationResultCode_names + 9610, 51}, 1520 }, - { {OperationResultCode_names + 9661, 40}, 1508 }, - { {OperationResultCode_names + 9701, 38}, 1538 }, - { {OperationResultCode_names + 9739, 54}, 1521 }, - { {OperationResultCode_names + 9793, 43}, 1509 }, - { {OperationResultCode_names + 9836, 52}, 1500 }, - { {OperationResultCode_names + 9888, 55}, 1523 }, - { {OperationResultCode_names + 9943, 44}, 1511 }, - { {OperationResultCode_names + 9987, 57}, 1525 }, - { {OperationResultCode_names + 10044, 56}, 1522 }, - { {OperationResultCode_names + 10100, 45}, 1510 }, - { {OperationResultCode_names + 10145, 58}, 1524 }, - { {OperationResultCode_names + 10203, 38}, 2503 }, - { {OperationResultCode_names + 10241, 51}, 2514 }, - { {OperationResultCode_names + 10292, 41}, 2500 }, - { {OperationResultCode_names + 10333, 59}, 2510 }, - { {OperationResultCode_names + 10392, 37}, 2505 }, - { {OperationResultCode_names + 10429, 40}, 2504 }, - { {OperationResultCode_names + 10469, 33}, 2501 }, - { {OperationResultCode_names + 10502, 48}, 2513 }, - { {OperationResultCode_names + 10550, 52}, 2511 }, - { {OperationResultCode_names + 10602, 38}, 2515 }, - { {OperationResultCode_names + 10640, 55}, 2512 }, - { {OperationResultCode_names + 10695, 45}, 2506 }, - { {OperationResultCode_names + 10740, 46}, 2507 }, - { {OperationResultCode_names + 10786, 56}, 2502 }, - { {OperationResultCode_names + 10842, 47}, 2509 }, - { {OperationResultCode_names + 10889, 43}, 2508 }, - { {OperationResultCode_names + 10932, 31}, 2516 }, - { {OperationResultCode_names + 10963, 29}, 4568 }, - { {OperationResultCode_names + 10992, 60}, 4609 }, - { {OperationResultCode_names + 11052, 45}, 4500 }, - { {OperationResultCode_names + 11097, 37}, 4571 }, - { {OperationResultCode_names + 11134, 44}, 4504 }, - { {OperationResultCode_names + 11178, 42}, 4572 }, - { {OperationResultCode_names + 11220, 49}, 4515 }, - { {OperationResultCode_names + 11269, 29}, 4518 }, - { {OperationResultCode_names + 11298, 30}, 4579 }, - { {OperationResultCode_names + 11328, 38}, 4536 }, - { {OperationResultCode_names + 11366, 43}, 4570 }, - { {OperationResultCode_names + 11409, 36}, 4578 }, - { {OperationResultCode_names + 11445, 48}, 4501 }, - { {OperationResultCode_names + 11493, 44}, 4585 }, - { {OperationResultCode_names + 11537, 35}, 4592 }, - { {OperationResultCode_names + 11572, 43}, 4506 }, - { {OperationResultCode_names + 11615, 35}, 4530 }, - { {OperationResultCode_names + 11650, 23}, 4520 }, - { {OperationResultCode_names + 11673, 37}, 4538 }, - { {OperationResultCode_names + 11710, 41}, 4563 }, - { {OperationResultCode_names + 11751, 37}, 4602 }, - { {OperationResultCode_names + 11788, 38}, 4606 }, - { {OperationResultCode_names + 11826, 37}, 4591 }, - { {OperationResultCode_names + 11863, 25}, 4567 }, - { {OperationResultCode_names + 11888, 27}, 4605 }, - { {OperationResultCode_names + 11915, 32}, 4503 }, - { {OperationResultCode_names + 11947, 35}, 4514 }, - { {OperationResultCode_names + 11982, 48}, 4588 }, - { {OperationResultCode_names + 12030, 45}, 4552 }, - { {OperationResultCode_names + 12075, 40}, 4532 }, - { {OperationResultCode_names + 12115, 40}, 4535 }, - { {OperationResultCode_names + 12155, 48}, 4547 }, - { {OperationResultCode_names + 12203, 60}, 4556 }, - { {OperationResultCode_names + 12263, 56}, 4558 }, - { {OperationResultCode_names + 12319, 60}, 4557 }, - { {OperationResultCode_names + 12379, 56}, 4553 }, - { {OperationResultCode_names + 12435, 52}, 4555 }, - { {OperationResultCode_names + 12487, 56}, 4554 }, - { {OperationResultCode_names + 12543, 43}, 4559 }, - { {OperationResultCode_names + 12586, 43}, 4560 }, - { {OperationResultCode_names + 12629, 37}, 4561 }, - { {OperationResultCode_names + 12666, 41}, 4562 }, - { {OperationResultCode_names + 12707, 49}, 4586 }, - { {OperationResultCode_names + 12756, 46}, 4505 }, - { {OperationResultCode_names + 12802, 26}, 4519 }, - { {OperationResultCode_names + 12828, 40}, 4537 }, - { {OperationResultCode_names + 12868, 29}, 4566 }, - { {OperationResultCode_names + 12897, 44}, 4507 }, - { {OperationResultCode_names + 12941, 36}, 4531 }, - { {OperationResultCode_names + 12977, 24}, 4525 }, - { {OperationResultCode_names + 13001, 38}, 4539 }, - { {OperationResultCode_names + 13039, 41}, 4593 }, - { {OperationResultCode_names + 13080, 28}, 4594 }, - { {OperationResultCode_names + 13108, 42}, 4564 }, - { {OperationResultCode_names + 13150, 30}, 4569 }, - { {OperationResultCode_names + 13180, 31}, 4607 }, - { {OperationResultCode_names + 13211, 27}, 4587 }, - { {OperationResultCode_names + 13238, 37}, 4573 }, - { {OperationResultCode_names + 13275, 44}, 4508 }, - { {OperationResultCode_names + 13319, 30}, 4577 }, - { {OperationResultCode_names + 13349, 24}, 4522 }, - { {OperationResultCode_names + 13373, 35}, 4601 }, - { {OperationResultCode_names + 13408, 56}, 4608 }, - { {OperationResultCode_names + 13464, 29}, 4603 }, - { {OperationResultCode_names + 13493, 28}, 4604 }, - { {OperationResultCode_names + 13521, 35}, 4590 }, - { {OperationResultCode_names + 13556, 37}, 4576 }, - { {OperationResultCode_names + 13593, 44}, 4513 }, - { {OperationResultCode_names + 13637, 30}, 4582 }, - { {OperationResultCode_names + 13667, 24}, 4521 }, - { {OperationResultCode_names + 13691, 30}, 4583 }, - { {OperationResultCode_names + 13721, 35}, 4502 }, - { {OperationResultCode_names + 13756, 48}, 4512 }, - { {OperationResultCode_names + 13804, 34}, 4584 }, - { {OperationResultCode_names + 13838, 38}, 4589 }, - { {OperationResultCode_names + 13876, 28}, 4524 }, - { {OperationResultCode_names + 13904, 42}, 4540 }, - { {OperationResultCode_names + 13946, 37}, 4599 }, - { {OperationResultCode_names + 13983, 44}, 4575 }, - { {OperationResultCode_names + 14027, 51}, 4509 }, - { {OperationResultCode_names + 14078, 37}, 4581 }, - { {OperationResultCode_names + 14115, 31}, 4523 }, - { {OperationResultCode_names + 14146, 45}, 4541 }, - { {OperationResultCode_names + 14191, 42}, 4600 }, - { {OperationResultCode_names + 14233, 52}, 4511 }, - { {OperationResultCode_names + 14285, 39}, 4516 }, - { {OperationResultCode_names + 14324, 41}, 4533 }, - { {OperationResultCode_names + 14365, 32}, 4527 }, - { {OperationResultCode_names + 14397, 32}, 4529 }, - { {OperationResultCode_names + 14429, 28}, 4528 }, - { {OperationResultCode_names + 14457, 46}, 4546 }, - { {OperationResultCode_names + 14503, 48}, 4549 }, - { {OperationResultCode_names + 14551, 48}, 4551 }, - { {OperationResultCode_names + 14599, 51}, 4596 }, - { {OperationResultCode_names + 14650, 43}, 4595 }, - { {OperationResultCode_names + 14693, 54}, 4545 }, - { {OperationResultCode_names + 14747, 54}, 4542 }, - { {OperationResultCode_names + 14801, 53}, 4510 }, - { {OperationResultCode_names + 14854, 40}, 4517 }, - { {OperationResultCode_names + 14894, 52}, 4544 }, - { {OperationResultCode_names + 14946, 44}, 4534 }, - { {OperationResultCode_names + 14990, 33}, 4526 }, - { {OperationResultCode_names + 15023, 49}, 4548 }, - { {OperationResultCode_names + 15072, 49}, 4550 }, - { {OperationResultCode_names + 15121, 52}, 4598 }, - { {OperationResultCode_names + 15173, 44}, 4597 }, - { {OperationResultCode_names + 15217, 55}, 4543 }, - { {OperationResultCode_names + 15272, 42}, 4574 }, - { {OperationResultCode_names + 15314, 35}, 4580 }, - { {OperationResultCode_names + 15349, 32}, 4565 }, + { {OperationResultCode_names + 7397, 24}, 5001 }, + { {OperationResultCode_names + 7421, 22}, 5000 }, + { {OperationResultCode_names + 7443, 25}, 5002 }, + { {OperationResultCode_names + 7468, 29}, 5012 }, + { {OperationResultCode_names + 7497, 34}, 5011 }, + { {OperationResultCode_names + 7531, 37}, 5020 }, + { {OperationResultCode_names + 7568, 39}, 5013 }, + { {OperationResultCode_names + 7607, 28}, 5024 }, + { {OperationResultCode_names + 7635, 27}, 5007 }, + { {OperationResultCode_names + 7662, 27}, 5019 }, + { {OperationResultCode_names + 7689, 29}, 5004 }, + { {OperationResultCode_names + 7718, 29}, 5003 }, + { {OperationResultCode_names + 7747, 32}, 5005 }, + { {OperationResultCode_names + 7779, 31}, 5006 }, + { {OperationResultCode_names + 7810, 24}, 5009 }, + { {OperationResultCode_names + 7834, 25}, 5010 }, + { {OperationResultCode_names + 7859, 27}, 5022 }, + { {OperationResultCode_names + 7886, 30}, 5008 }, + { {OperationResultCode_names + 7916, 30}, 5023 }, + { {OperationResultCode_names + 7946, 42}, 5018 }, + { {OperationResultCode_names + 7988, 24}, 5021 }, + { {OperationResultCode_names + 8012, 34}, 5016 }, + { {OperationResultCode_names + 8046, 23}, 5014 }, + { {OperationResultCode_names + 8069, 27}, 5015 }, + { {OperationResultCode_names + 8096, 34}, 5017 }, + { {OperationResultCode_names + 8130, 14}, 1 }, + { {OperationResultCode_names + 8144, 14}, 0 }, + { {OperationResultCode_names + 8158, 46}, 1000 }, + { {OperationResultCode_names + 8204, 39}, 1001 }, + { {OperationResultCode_names + 8243, 30}, 1002 }, + { {OperationResultCode_names + 8273, 36}, 1003 }, + { {OperationResultCode_names + 8309, 35}, 1004 }, + { {OperationResultCode_names + 8344, 27}, 3005 }, + { {OperationResultCode_names + 8371, 33}, 3006 }, + { {OperationResultCode_names + 8404, 26}, 3007 }, + { {OperationResultCode_names + 8430, 27}, 3009 }, + { {OperationResultCode_names + 8457, 27}, 3013 }, + { {OperationResultCode_names + 8484, 27}, 3014 }, + { {OperationResultCode_names + 8511, 31}, 3008 }, + { {OperationResultCode_names + 8542, 34}, 3012 }, + { {OperationResultCode_names + 8576, 35}, 3010 }, + { {OperationResultCode_names + 8611, 36}, 3011 }, + { {OperationResultCode_names + 8647, 21}, 3000 }, + { {OperationResultCode_names + 8668, 21}, 3001 }, + { {OperationResultCode_names + 8689, 21}, 3002 }, + { {OperationResultCode_names + 8710, 24}, 3003 }, + { {OperationResultCode_names + 8734, 29}, 3004 }, + { {OperationResultCode_names + 8763, 51}, 1534 }, + { {OperationResultCode_names + 8814, 60}, 1535 }, + { {OperationResultCode_names + 8874, 47}, 1515 }, + { {OperationResultCode_names + 8921, 36}, 1505 }, + { {OperationResultCode_names + 8957, 42}, 1507 }, + { {OperationResultCode_names + 8999, 40}, 1546 }, + { {OperationResultCode_names + 9039, 46}, 1516 }, + { {OperationResultCode_names + 9085, 45}, 1501 }, + { {OperationResultCode_names + 9130, 45}, 1541 }, + { {OperationResultCode_names + 9175, 38}, 1506 }, + { {OperationResultCode_names + 9213, 30}, 1544 }, + { {OperationResultCode_names + 9243, 47}, 1517 }, + { {OperationResultCode_names + 9290, 36}, 1513 }, + { {OperationResultCode_names + 9326, 54}, 1532 }, + { {OperationResultCode_names + 9380, 49}, 1503 }, + { {OperationResultCode_names + 9429, 52}, 1504 }, + { {OperationResultCode_names + 9481, 37}, 1543 }, + { {OperationResultCode_names + 9518, 47}, 1518 }, + { {OperationResultCode_names + 9565, 36}, 1512 }, + { {OperationResultCode_names + 9601, 36}, 1542 }, + { {OperationResultCode_names + 9637, 30}, 1545 }, + { {OperationResultCode_names + 9667, 60}, 1536 }, + { {OperationResultCode_names + 9727, 43}, 1533 }, + { {OperationResultCode_names + 9770, 38}, 1502 }, + { {OperationResultCode_names + 9808, 39}, 1539 }, + { {OperationResultCode_names + 9847, 37}, 1540 }, + { {OperationResultCode_names + 9884, 41}, 1537 }, + { {OperationResultCode_names + 9925, 55}, 1526 }, + { {OperationResultCode_names + 9980, 54}, 1530 }, + { {OperationResultCode_names + 10034, 57}, 1527 }, + { {OperationResultCode_names + 10091, 55}, 1529 }, + { {OperationResultCode_names + 10146, 55}, 1531 }, + { {OperationResultCode_names + 10201, 59}, 1528 }, + { {OperationResultCode_names + 10260, 47}, 1519 }, + { {OperationResultCode_names + 10307, 36}, 1514 }, + { {OperationResultCode_names + 10343, 51}, 1520 }, + { {OperationResultCode_names + 10394, 40}, 1508 }, + { {OperationResultCode_names + 10434, 38}, 1538 }, + { {OperationResultCode_names + 10472, 54}, 1521 }, + { {OperationResultCode_names + 10526, 43}, 1509 }, + { {OperationResultCode_names + 10569, 52}, 1500 }, + { {OperationResultCode_names + 10621, 55}, 1523 }, + { {OperationResultCode_names + 10676, 44}, 1511 }, + { {OperationResultCode_names + 10720, 57}, 1525 }, + { {OperationResultCode_names + 10777, 56}, 1522 }, + { {OperationResultCode_names + 10833, 45}, 1510 }, + { {OperationResultCode_names + 10878, 58}, 1524 }, + { {OperationResultCode_names + 10936, 38}, 2503 }, + { {OperationResultCode_names + 10974, 51}, 2514 }, + { {OperationResultCode_names + 11025, 41}, 2500 }, + { {OperationResultCode_names + 11066, 59}, 2510 }, + { {OperationResultCode_names + 11125, 37}, 2505 }, + { {OperationResultCode_names + 11162, 40}, 2504 }, + { {OperationResultCode_names + 11202, 33}, 2501 }, + { {OperationResultCode_names + 11235, 48}, 2513 }, + { {OperationResultCode_names + 11283, 52}, 2511 }, + { {OperationResultCode_names + 11335, 38}, 2515 }, + { {OperationResultCode_names + 11373, 55}, 2512 }, + { {OperationResultCode_names + 11428, 45}, 2506 }, + { {OperationResultCode_names + 11473, 46}, 2507 }, + { {OperationResultCode_names + 11519, 56}, 2502 }, + { {OperationResultCode_names + 11575, 47}, 2509 }, + { {OperationResultCode_names + 11622, 43}, 2508 }, + { {OperationResultCode_names + 11665, 31}, 2516 }, + { {OperationResultCode_names + 11696, 29}, 4568 }, + { {OperationResultCode_names + 11725, 60}, 4609 }, + { {OperationResultCode_names + 11785, 45}, 4500 }, + { {OperationResultCode_names + 11830, 37}, 4571 }, + { {OperationResultCode_names + 11867, 44}, 4504 }, + { {OperationResultCode_names + 11911, 42}, 4572 }, + { {OperationResultCode_names + 11953, 49}, 4515 }, + { {OperationResultCode_names + 12002, 29}, 4518 }, + { {OperationResultCode_names + 12031, 30}, 4579 }, + { {OperationResultCode_names + 12061, 38}, 4536 }, + { {OperationResultCode_names + 12099, 43}, 4570 }, + { {OperationResultCode_names + 12142, 36}, 4578 }, + { {OperationResultCode_names + 12178, 48}, 4501 }, + { {OperationResultCode_names + 12226, 44}, 4585 }, + { {OperationResultCode_names + 12270, 35}, 4592 }, + { {OperationResultCode_names + 12305, 43}, 4506 }, + { {OperationResultCode_names + 12348, 35}, 4530 }, + { {OperationResultCode_names + 12383, 23}, 4520 }, + { {OperationResultCode_names + 12406, 37}, 4538 }, + { {OperationResultCode_names + 12443, 41}, 4563 }, + { {OperationResultCode_names + 12484, 37}, 4602 }, + { {OperationResultCode_names + 12521, 38}, 4606 }, + { {OperationResultCode_names + 12559, 37}, 4591 }, + { {OperationResultCode_names + 12596, 25}, 4567 }, + { {OperationResultCode_names + 12621, 27}, 4605 }, + { {OperationResultCode_names + 12648, 32}, 4503 }, + { {OperationResultCode_names + 12680, 35}, 4514 }, + { {OperationResultCode_names + 12715, 48}, 4588 }, + { {OperationResultCode_names + 12763, 45}, 4552 }, + { {OperationResultCode_names + 12808, 40}, 4532 }, + { {OperationResultCode_names + 12848, 40}, 4535 }, + { {OperationResultCode_names + 12888, 48}, 4547 }, + { {OperationResultCode_names + 12936, 60}, 4556 }, + { {OperationResultCode_names + 12996, 56}, 4558 }, + { {OperationResultCode_names + 13052, 60}, 4557 }, + { {OperationResultCode_names + 13112, 56}, 4553 }, + { {OperationResultCode_names + 13168, 52}, 4555 }, + { {OperationResultCode_names + 13220, 56}, 4554 }, + { {OperationResultCode_names + 13276, 43}, 4559 }, + { {OperationResultCode_names + 13319, 43}, 4560 }, + { {OperationResultCode_names + 13362, 37}, 4561 }, + { {OperationResultCode_names + 13399, 41}, 4562 }, + { {OperationResultCode_names + 13440, 49}, 4586 }, + { {OperationResultCode_names + 13489, 46}, 4505 }, + { {OperationResultCode_names + 13535, 26}, 4519 }, + { {OperationResultCode_names + 13561, 40}, 4537 }, + { {OperationResultCode_names + 13601, 29}, 4566 }, + { {OperationResultCode_names + 13630, 44}, 4507 }, + { {OperationResultCode_names + 13674, 36}, 4531 }, + { {OperationResultCode_names + 13710, 24}, 4525 }, + { {OperationResultCode_names + 13734, 38}, 4539 }, + { {OperationResultCode_names + 13772, 41}, 4593 }, + { {OperationResultCode_names + 13813, 28}, 4594 }, + { {OperationResultCode_names + 13841, 42}, 4564 }, + { {OperationResultCode_names + 13883, 30}, 4569 }, + { {OperationResultCode_names + 13913, 31}, 4607 }, + { {OperationResultCode_names + 13944, 27}, 4587 }, + { {OperationResultCode_names + 13971, 37}, 4573 }, + { {OperationResultCode_names + 14008, 44}, 4508 }, + { {OperationResultCode_names + 14052, 30}, 4577 }, + { {OperationResultCode_names + 14082, 24}, 4522 }, + { {OperationResultCode_names + 14106, 35}, 4601 }, + { {OperationResultCode_names + 14141, 56}, 4608 }, + { {OperationResultCode_names + 14197, 29}, 4603 }, + { {OperationResultCode_names + 14226, 28}, 4604 }, + { {OperationResultCode_names + 14254, 35}, 4590 }, + { {OperationResultCode_names + 14289, 37}, 4576 }, + { {OperationResultCode_names + 14326, 44}, 4513 }, + { {OperationResultCode_names + 14370, 30}, 4582 }, + { {OperationResultCode_names + 14400, 24}, 4521 }, + { {OperationResultCode_names + 14424, 30}, 4583 }, + { {OperationResultCode_names + 14454, 35}, 4502 }, + { {OperationResultCode_names + 14489, 48}, 4512 }, + { {OperationResultCode_names + 14537, 34}, 4584 }, + { {OperationResultCode_names + 14571, 38}, 4589 }, + { {OperationResultCode_names + 14609, 28}, 4524 }, + { {OperationResultCode_names + 14637, 42}, 4540 }, + { {OperationResultCode_names + 14679, 37}, 4599 }, + { {OperationResultCode_names + 14716, 44}, 4575 }, + { {OperationResultCode_names + 14760, 51}, 4509 }, + { {OperationResultCode_names + 14811, 37}, 4581 }, + { {OperationResultCode_names + 14848, 31}, 4523 }, + { {OperationResultCode_names + 14879, 45}, 4541 }, + { {OperationResultCode_names + 14924, 42}, 4600 }, + { {OperationResultCode_names + 14966, 52}, 4511 }, + { {OperationResultCode_names + 15018, 39}, 4516 }, + { {OperationResultCode_names + 15057, 41}, 4533 }, + { {OperationResultCode_names + 15098, 32}, 4527 }, + { {OperationResultCode_names + 15130, 32}, 4529 }, + { {OperationResultCode_names + 15162, 28}, 4528 }, + { {OperationResultCode_names + 15190, 46}, 4546 }, + { {OperationResultCode_names + 15236, 48}, 4549 }, + { {OperationResultCode_names + 15284, 48}, 4551 }, + { {OperationResultCode_names + 15332, 51}, 4596 }, + { {OperationResultCode_names + 15383, 43}, 4595 }, + { {OperationResultCode_names + 15426, 54}, 4545 }, + { {OperationResultCode_names + 15480, 54}, 4542 }, + { {OperationResultCode_names + 15534, 53}, 4510 }, + { {OperationResultCode_names + 15587, 40}, 4517 }, + { {OperationResultCode_names + 15627, 52}, 4544 }, + { {OperationResultCode_names + 15679, 44}, 4534 }, + { {OperationResultCode_names + 15723, 33}, 4526 }, + { {OperationResultCode_names + 15756, 49}, 4548 }, + { {OperationResultCode_names + 15805, 49}, 4550 }, + { {OperationResultCode_names + 15854, 52}, 4598 }, + { {OperationResultCode_names + 15906, 44}, 4597 }, + { {OperationResultCode_names + 15950, 55}, 4543 }, + { {OperationResultCode_names + 16005, 42}, 4574 }, + { {OperationResultCode_names + 16047, 35}, 4580 }, + { {OperationResultCode_names + 16082, 32}, 4565 }, }; static const int OperationResultCode_entries_by_number[] = { - 163, // 0 -> DETAIL_UNKNOWN - 162, // 1 -> DETAIL_SUCCESS + 188, // 0 -> DETAIL_UNKNOWN + 187, // 1 -> DETAIL_SUCCESS 24, // 500 -> CLIENT_CANCELLATION_REMOTE_IN_CANCELED_STATE 20, // 501 -> CLIENT_CANCELLATION_LOCAL_CANCEL_PAYLOAD 22, // 502 -> CLIENT_CANCELLATION_REMOTE_CANCEL_PAYLOAD @@ -2759,58 +2838,58 @@ static const int OperationResultCode_entries_by_number[] = { 30, // 521 -> CLIENT_CANCELLATION_WIFI_LAN_SERVER_SOCKET_CREATION 21, // 522 -> CLIENT_CANCELLATION_LOCAL_DISCONNECT 23, // 523 -> CLIENT_CANCELLATION_REMOTE_DISCONNECT - 164, // 1000 -> DEVICE_STATE_ERROR_UNFINISHED_UPGRADE_ATTEMPTS - 165, // 1001 -> DEVICE_STATE_ERROR_USER_HOTSPOT_ENABLED - 166, // 1002 -> DEVICE_STATE_LOCATION_DISABLED - 167, // 1003 -> DEVICE_STATE_RADIO_DISABLING_FAILURE - 168, // 1004 -> DEVICE_STATE_RADIO_ENABLING_FAILURE - 224, // 1500 -> MEDIUM_UNAVAILABLE_WIFI_AWARE_RESOURCE_NOT_AVAILABLE - 191, // 1501 -> MEDIUM_UNAVAILABLE_DIRECT_HOTSPOT_NOT_SUPPORT - 207, // 1502 -> MEDIUM_UNAVAILABLE_SOFT_AP_NOT_SUPPORT - 198, // 1503 -> MEDIUM_UNAVAILABLE_LOCAL_ONLY_HOTSPOT_NOT_SUPPORT - 199, // 1504 -> MEDIUM_UNAVAILABLE_LOCAL_ONLY_HOTSPOT_NOT_SUPPORT_5G - 187, // 1505 -> MEDIUM_UNAVAILABLE_BLE_NOT_AVAILABLE - 193, // 1506 -> MEDIUM_UNAVAILABLE_L2CAP_NOT_AVAILABLE - 188, // 1507 -> MEDIUM_UNAVAILABLE_BLUETOOTH_NOT_AVAILABLE - 220, // 1508 -> MEDIUM_UNAVAILABLE_WEB_RTC_NOT_AVAILABLE - 223, // 1509 -> MEDIUM_UNAVAILABLE_WIFI_AWARE_NOT_AVAILABLE - 229, // 1510 -> MEDIUM_UNAVAILABLE_WIFI_HOTSPOT_NOT_AVAILABLE - 226, // 1511 -> MEDIUM_UNAVAILABLE_WIFI_DIRECT_NOT_AVAILABLE - 202, // 1512 -> MEDIUM_UNAVAILABLE_NFC_NOT_AVAILABLE - 196, // 1513 -> MEDIUM_UNAVAILABLE_LAN_NOT_AVAILABLE - 218, // 1514 -> MEDIUM_UNAVAILABLE_USB_NOT_AVAILABLE - 186, // 1515 -> MEDIUM_UNAVAILABLE_BLE_NC_LOGICAL_NOT_AVAILABLE - 190, // 1516 -> MEDIUM_UNAVAILABLE_BT_NC_LOGICAL_NOT_AVAILABLE - 195, // 1517 -> MEDIUM_UNAVAILABLE_LAN_NC_LOGICAL_NOT_AVAILABLE - 201, // 1518 -> MEDIUM_UNAVAILABLE_NFC_NC_LOGICAL_NOT_AVAILABLE - 217, // 1519 -> MEDIUM_UNAVAILABLE_USB_NC_LOGICAL_NOT_AVAILABLE - 219, // 1520 -> MEDIUM_UNAVAILABLE_WEB_RTC_NC_LOGICAL_NOT_AVAILABLE - 222, // 1521 -> MEDIUM_UNAVAILABLE_WIFI_AWARE_NC_LOGICAL_NOT_AVAILABLE - 228, // 1522 -> MEDIUM_UNAVAILABLE_WIFI_HOTSPOT_NC_LOGICAL_NOT_AVAILABLE - 225, // 1523 -> MEDIUM_UNAVAILABLE_WIFI_DIRECT_NC_LOGICAL_NOT_AVAILABLE - 230, // 1524 -> MEDIUM_UNAVAILABLE_WIFI_HOTSPOT_P2P_RESOURCE_NOT_AVAILABLE - 227, // 1525 -> MEDIUM_UNAVAILABLE_WIFI_DIRECT_P2P_RESOURCE_NOT_AVAILABLE - 211, // 1526 -> MEDIUM_UNAVAILABLE_UPGRADE_SKIP_BLE_LOW_QUALITY_MEDIUMS - 213, // 1527 -> MEDIUM_UNAVAILABLE_UPGRADE_SKIP_L2CAP_LOW_QUALITY_MEDIUMS - 216, // 1528 -> MEDIUM_UNAVAILABLE_UPGRADE_SKIP_WEB_RTC_LOW_QUALITY_MEDIUMS - 214, // 1529 -> MEDIUM_UNAVAILABLE_UPGRADE_SKIP_LAN_LOW_QUALITY_MEDIUMS - 212, // 1530 -> MEDIUM_UNAVAILABLE_UPGRADE_SKIP_BT_LOW_QUALITY_MEDIUMS - 215, // 1531 -> MEDIUM_UNAVAILABLE_UPGRADE_SKIP_USB_LOW_QUALITY_MEDIUMS - 197, // 1532 -> MEDIUM_UNAVAILABLE_LOCAL_ONLY_HOTSPOT_DISRUPTIVE_FALSE - 206, // 1533 -> MEDIUM_UNAVAILABLE_SOFT_AP_DISRUPTIVE_FALSE - 184, // 1534 -> MEDIUM_UNAVAILABLE_ALREADY_HAVE_A_WIFI_DIRECT_GROUP - 185, // 1535 -> MEDIUM_UNAVAILABLE_ALREADY_HOSTING_HOTSPOT_FOR_OTHER_CLIENTS - 205, // 1536 -> MEDIUM_UNAVAILABLE_REJECT_L2CAP_ON_GATT_MULTIPLEX_CONNECTION - 210, // 1537 -> MEDIUM_UNAVAILABLE_UPGRADE_ON_SAME_MEDIUM - 221, // 1538 -> MEDIUM_UNAVAILABLE_WEB_RTC_NO_INTERNET - 208, // 1539 -> MEDIUM_UNAVAILABLE_STA_DISRUPTIVE_FALSE - 209, // 1540 -> MEDIUM_UNAVAILABLE_STA_USER_NOT_ALLOW - 192, // 1541 -> MEDIUM_UNAVAILABLE_DUPLICATE_FAST_ADVERTISING - 203, // 1542 -> MEDIUM_UNAVAILABLE_NSD_NOT_AVAILABLE - 200, // 1543 -> MEDIUM_UNAVAILABLE_MDNS_NOT_AVAILABLE - 194, // 1544 -> MEDIUM_UNAVAILABLE_LAN_BLOCKED - 204, // 1545 -> MEDIUM_UNAVAILABLE_POOR_SIGNAL - 189, // 1546 -> MEDIUM_UNAVAILABLE_BT_MULTIPLEX_DISABLED + 189, // 1000 -> DEVICE_STATE_ERROR_UNFINISHED_UPGRADE_ATTEMPTS + 190, // 1001 -> DEVICE_STATE_ERROR_USER_HOTSPOT_ENABLED + 191, // 1002 -> DEVICE_STATE_LOCATION_DISABLED + 192, // 1003 -> DEVICE_STATE_RADIO_DISABLING_FAILURE + 193, // 1004 -> DEVICE_STATE_RADIO_ENABLING_FAILURE + 249, // 1500 -> MEDIUM_UNAVAILABLE_WIFI_AWARE_RESOURCE_NOT_AVAILABLE + 216, // 1501 -> MEDIUM_UNAVAILABLE_DIRECT_HOTSPOT_NOT_SUPPORT + 232, // 1502 -> MEDIUM_UNAVAILABLE_SOFT_AP_NOT_SUPPORT + 223, // 1503 -> MEDIUM_UNAVAILABLE_LOCAL_ONLY_HOTSPOT_NOT_SUPPORT + 224, // 1504 -> MEDIUM_UNAVAILABLE_LOCAL_ONLY_HOTSPOT_NOT_SUPPORT_5G + 212, // 1505 -> MEDIUM_UNAVAILABLE_BLE_NOT_AVAILABLE + 218, // 1506 -> MEDIUM_UNAVAILABLE_L2CAP_NOT_AVAILABLE + 213, // 1507 -> MEDIUM_UNAVAILABLE_BLUETOOTH_NOT_AVAILABLE + 245, // 1508 -> MEDIUM_UNAVAILABLE_WEB_RTC_NOT_AVAILABLE + 248, // 1509 -> MEDIUM_UNAVAILABLE_WIFI_AWARE_NOT_AVAILABLE + 254, // 1510 -> MEDIUM_UNAVAILABLE_WIFI_HOTSPOT_NOT_AVAILABLE + 251, // 1511 -> MEDIUM_UNAVAILABLE_WIFI_DIRECT_NOT_AVAILABLE + 227, // 1512 -> MEDIUM_UNAVAILABLE_NFC_NOT_AVAILABLE + 221, // 1513 -> MEDIUM_UNAVAILABLE_LAN_NOT_AVAILABLE + 243, // 1514 -> MEDIUM_UNAVAILABLE_USB_NOT_AVAILABLE + 211, // 1515 -> MEDIUM_UNAVAILABLE_BLE_NC_LOGICAL_NOT_AVAILABLE + 215, // 1516 -> MEDIUM_UNAVAILABLE_BT_NC_LOGICAL_NOT_AVAILABLE + 220, // 1517 -> MEDIUM_UNAVAILABLE_LAN_NC_LOGICAL_NOT_AVAILABLE + 226, // 1518 -> MEDIUM_UNAVAILABLE_NFC_NC_LOGICAL_NOT_AVAILABLE + 242, // 1519 -> MEDIUM_UNAVAILABLE_USB_NC_LOGICAL_NOT_AVAILABLE + 244, // 1520 -> MEDIUM_UNAVAILABLE_WEB_RTC_NC_LOGICAL_NOT_AVAILABLE + 247, // 1521 -> MEDIUM_UNAVAILABLE_WIFI_AWARE_NC_LOGICAL_NOT_AVAILABLE + 253, // 1522 -> MEDIUM_UNAVAILABLE_WIFI_HOTSPOT_NC_LOGICAL_NOT_AVAILABLE + 250, // 1523 -> MEDIUM_UNAVAILABLE_WIFI_DIRECT_NC_LOGICAL_NOT_AVAILABLE + 255, // 1524 -> MEDIUM_UNAVAILABLE_WIFI_HOTSPOT_P2P_RESOURCE_NOT_AVAILABLE + 252, // 1525 -> MEDIUM_UNAVAILABLE_WIFI_DIRECT_P2P_RESOURCE_NOT_AVAILABLE + 236, // 1526 -> MEDIUM_UNAVAILABLE_UPGRADE_SKIP_BLE_LOW_QUALITY_MEDIUMS + 238, // 1527 -> MEDIUM_UNAVAILABLE_UPGRADE_SKIP_L2CAP_LOW_QUALITY_MEDIUMS + 241, // 1528 -> MEDIUM_UNAVAILABLE_UPGRADE_SKIP_WEB_RTC_LOW_QUALITY_MEDIUMS + 239, // 1529 -> MEDIUM_UNAVAILABLE_UPGRADE_SKIP_LAN_LOW_QUALITY_MEDIUMS + 237, // 1530 -> MEDIUM_UNAVAILABLE_UPGRADE_SKIP_BT_LOW_QUALITY_MEDIUMS + 240, // 1531 -> MEDIUM_UNAVAILABLE_UPGRADE_SKIP_USB_LOW_QUALITY_MEDIUMS + 222, // 1532 -> MEDIUM_UNAVAILABLE_LOCAL_ONLY_HOTSPOT_DISRUPTIVE_FALSE + 231, // 1533 -> MEDIUM_UNAVAILABLE_SOFT_AP_DISRUPTIVE_FALSE + 209, // 1534 -> MEDIUM_UNAVAILABLE_ALREADY_HAVE_A_WIFI_DIRECT_GROUP + 210, // 1535 -> MEDIUM_UNAVAILABLE_ALREADY_HOSTING_HOTSPOT_FOR_OTHER_CLIENTS + 230, // 1536 -> MEDIUM_UNAVAILABLE_REJECT_L2CAP_ON_GATT_MULTIPLEX_CONNECTION + 235, // 1537 -> MEDIUM_UNAVAILABLE_UPGRADE_ON_SAME_MEDIUM + 246, // 1538 -> MEDIUM_UNAVAILABLE_WEB_RTC_NO_INTERNET + 233, // 1539 -> MEDIUM_UNAVAILABLE_STA_DISRUPTIVE_FALSE + 234, // 1540 -> MEDIUM_UNAVAILABLE_STA_USER_NOT_ALLOW + 217, // 1541 -> MEDIUM_UNAVAILABLE_DUPLICATE_FAST_ADVERTISING + 228, // 1542 -> MEDIUM_UNAVAILABLE_NSD_NOT_AVAILABLE + 225, // 1543 -> MEDIUM_UNAVAILABLE_MDNS_NOT_AVAILABLE + 219, // 1544 -> MEDIUM_UNAVAILABLE_LAN_BLOCKED + 229, // 1545 -> MEDIUM_UNAVAILABLE_POOR_SIGNAL + 214, // 1546 -> MEDIUM_UNAVAILABLE_BT_MULTIPLEX_DISABLED 55, // 2000 -> CLIENT_WIFI_DIRECT_ALREADY_HOSTING_DIRECT_GROUP_FOR_THIS_CLIENT 56, // 2001 -> CLIENT_WIFI_HOTSPOT_ALREADY_HOSTING_HOTSPOT_FOR_THIS_CLIENT 32, // 2002 -> CLIENT_DUPLICATE_ACCEPTING_BLE_CONNECTION_REQUEST @@ -2847,38 +2926,38 @@ static const int OperationResultCode_entries_by_number[] = { 59, // 2033 -> CLIENT_WRONG_CONNECTING_PERMISSIONS 0, // 2034 -> CLIENT_ALREADY_CONNECTED_TO_ENDPOINT 31, // 2035 -> CLIENT_CONNECT_TO_UNKNOWN_ENDPOINT - 233, // 2500 -> MISCELLEANEOUS_BLUETOOTH_MAC_ADDRESS_NULL - 237, // 2501 -> MISCELLEANEOUS_MOVE_TO_NEW_MEDIUM - 244, // 2502 -> MISCELLEANEOUS_WIFI_HOTSPOT_SOFT_AP_BLOCKED_BY_PROVISION - 231, // 2503 -> MISCELLEANEOUS_BLE_SYSTEM_SERVICE_NULL - 236, // 2504 -> MISCELLEANEOUS_L2CAP_SYSTEM_SERVICE_NULL - 235, // 2505 -> MISCELLEANEOUS_BT_SYSTEM_SERVICE_NULL - 242, // 2506 -> MISCELLEANEOUS_WIFI_AWARE_SYSTEM_SERVICE_NULL - 243, // 2507 -> MISCELLEANEOUS_WIFI_DIRECT_SYSTEM_SERVICE_NULL - 246, // 2508 -> MISCELLEANEOUS_WIFI_LAN_SYSTEM_SERVICE_NULL - 245, // 2509 -> MISCELLEANEOUS_WIFI_HOTSPOT_SYSTEM_SERVICE_NULL - 234, // 2510 -> MISCELLEANEOUS_BT_NOT_ACCEPTING_CONNECTION_FOR_WORK_PROFILE - 239, // 2511 -> MISCELLEANEOUS_WEB_RTC_GET_DROIDGUARD_RESULT_FAILURE - 241, // 2512 -> MISCELLEANEOUS_WEB_RTC_TACHYON_SIGNALING_MESSENGER_NULL - 238, // 2513 -> MISCELLEANEOUS_WEB_RTC_FAILED_TO_RECEIVE_MESSAGE - 232, // 2514 -> MISCELLEANEOUS_BLUETOOTH_CHANGE_DEVICE_NAME_FAILURE - 240, // 2515 -> MISCELLEANEOUS_WEB_RTC_ICE_SERVER_NULL - 247, // 2516 -> MISCELLEANEOUS_WORK_SOURCE_NULL - 179, // 3000 -> IO_FILE_OPENING_ERROR - 180, // 3001 -> IO_FILE_READING_ERROR - 181, // 3002 -> IO_FILE_WRITING_ERROR - 182, // 3003 -> IO_FOLDER_CREATION_ERROR - 183, // 3004 -> IO_STREAM_CREATE_PIPE_FAILURE - 169, // 3005 -> IO_ENDPOINT_IO_ERROR_ON_BLE - 170, // 3006 -> IO_ENDPOINT_IO_ERROR_ON_BLE_L2CAP - 171, // 3007 -> IO_ENDPOINT_IO_ERROR_ON_BT - 175, // 3008 -> IO_ENDPOINT_IO_ERROR_ON_WEB_RTC - 172, // 3009 -> IO_ENDPOINT_IO_ERROR_ON_LAN - 177, // 3010 -> IO_ENDPOINT_IO_ERROR_ON_WIFI_DIRECT - 178, // 3011 -> IO_ENDPOINT_IO_ERROR_ON_WIFI_HOTSPOT - 176, // 3012 -> IO_ENDPOINT_IO_ERROR_ON_WIFI_AWARE - 173, // 3013 -> IO_ENDPOINT_IO_ERROR_ON_NFC - 174, // 3014 -> IO_ENDPOINT_IO_ERROR_ON_USB + 258, // 2500 -> MISCELLEANEOUS_BLUETOOTH_MAC_ADDRESS_NULL + 262, // 2501 -> MISCELLEANEOUS_MOVE_TO_NEW_MEDIUM + 269, // 2502 -> MISCELLEANEOUS_WIFI_HOTSPOT_SOFT_AP_BLOCKED_BY_PROVISION + 256, // 2503 -> MISCELLEANEOUS_BLE_SYSTEM_SERVICE_NULL + 261, // 2504 -> MISCELLEANEOUS_L2CAP_SYSTEM_SERVICE_NULL + 260, // 2505 -> MISCELLEANEOUS_BT_SYSTEM_SERVICE_NULL + 267, // 2506 -> MISCELLEANEOUS_WIFI_AWARE_SYSTEM_SERVICE_NULL + 268, // 2507 -> MISCELLEANEOUS_WIFI_DIRECT_SYSTEM_SERVICE_NULL + 271, // 2508 -> MISCELLEANEOUS_WIFI_LAN_SYSTEM_SERVICE_NULL + 270, // 2509 -> MISCELLEANEOUS_WIFI_HOTSPOT_SYSTEM_SERVICE_NULL + 259, // 2510 -> MISCELLEANEOUS_BT_NOT_ACCEPTING_CONNECTION_FOR_WORK_PROFILE + 264, // 2511 -> MISCELLEANEOUS_WEB_RTC_GET_DROIDGUARD_RESULT_FAILURE + 266, // 2512 -> MISCELLEANEOUS_WEB_RTC_TACHYON_SIGNALING_MESSENGER_NULL + 263, // 2513 -> MISCELLEANEOUS_WEB_RTC_FAILED_TO_RECEIVE_MESSAGE + 257, // 2514 -> MISCELLEANEOUS_BLUETOOTH_CHANGE_DEVICE_NAME_FAILURE + 265, // 2515 -> MISCELLEANEOUS_WEB_RTC_ICE_SERVER_NULL + 272, // 2516 -> MISCELLEANEOUS_WORK_SOURCE_NULL + 204, // 3000 -> IO_FILE_OPENING_ERROR + 205, // 3001 -> IO_FILE_READING_ERROR + 206, // 3002 -> IO_FILE_WRITING_ERROR + 207, // 3003 -> IO_FOLDER_CREATION_ERROR + 208, // 3004 -> IO_STREAM_CREATE_PIPE_FAILURE + 194, // 3005 -> IO_ENDPOINT_IO_ERROR_ON_BLE + 195, // 3006 -> IO_ENDPOINT_IO_ERROR_ON_BLE_L2CAP + 196, // 3007 -> IO_ENDPOINT_IO_ERROR_ON_BT + 200, // 3008 -> IO_ENDPOINT_IO_ERROR_ON_WEB_RTC + 197, // 3009 -> IO_ENDPOINT_IO_ERROR_ON_LAN + 202, // 3010 -> IO_ENDPOINT_IO_ERROR_ON_WIFI_DIRECT + 203, // 3011 -> IO_ENDPOINT_IO_ERROR_ON_WIFI_HOTSPOT + 201, // 3012 -> IO_ENDPOINT_IO_ERROR_ON_WIFI_AWARE + 198, // 3013 -> IO_ENDPOINT_IO_ERROR_ON_NFC + 199, // 3014 -> IO_ENDPOINT_IO_ERROR_ON_USB 125, // 3500 -> CONNECTIVITY_WIFI_AWARE_ATTACH_FAILURE 69, // 3501 -> CONNECTIVITY_BLUETOOTH_DEVICE_OBTAIN_FAILURE 62, // 3502 -> CONNECTIVITY_BLE_CLIENT_SOCKET_CREATION_FAILURE @@ -2981,116 +3060,141 @@ static const int OperationResultCode_entries_by_number[] = { 60, // 3599 -> CONNECTIVITY_AUTO_RESUME_FAILURE 97, // 3600 -> CONNECTIVITY_INSTANT_CONNECTION_LISTENING_TIMEOUT 110, // 3601 -> CONNECTIVITY_MEDIUM_INVALID_CREDENTIAL - 250, // 4500 -> NEARBY_BLE_ADVERTISEMENT_MAPPING_TO_MAC_ERROR - 260, // 4501 -> NEARBY_BLUETOOTH_MAC_ADDRESS_INVALID_FOR_CONNECT - 319, // 4502 -> NEARBY_WEB_RTC_CONNECTION_FLOW_NULL - 273, // 4503 -> NEARBY_GENERIC_CONNECTION_CLOSED - 252, // 4504 -> NEARBY_BLE_ENDPOINT_CHANNEL_CREATION_FAILURE - 291, // 4505 -> NEARBY_L2CAP_ENDPOINT_CHANNEL_CREATION_FAILURE - 263, // 4506 -> NEARBY_BT_ENDPOINT_CHANNEL_CREATION_FAILURE - 295, // 4507 -> NEARBY_LAN_ENDPOINT_CHANNEL_CREATION_FAILURE - 306, // 4508 -> NEARBY_NFC_ENDPOINT_CHANNEL_CREATION_FAILURE - 327, // 4509 -> NEARBY_WIFI_AWARE_ENDPOINT_CHANNEL_CREATION_FAILURE - 345, // 4510 -> NEARBY_WIFI_HOTSPOT_ENDPOINT_CHANNEL_CREATION_FAILURE - 332, // 4511 -> NEARBY_WIFI_DIRECT_ENDPOINT_CHANNEL_CREATION_FAILURE - 320, // 4512 -> NEARBY_WEB_RTC_ENDPOINT_CHANNEL_CREATION_FAILURE - 315, // 4513 -> NEARBY_USB_ENDPOINT_CHANNEL_CREATION_FAILURE - 274, // 4514 -> NEARBY_GENERIC_ENDPOINT_UNENCRYPTED - 254, // 4515 -> NEARBY_BLE_GATT_ADVERTISEMENT_NULL_FOR_CONNECTION - 333, // 4516 -> NEARBY_WIFI_DIRECT_HOST_ON_SRD_CHANNELS - 346, // 4517 -> NEARBY_WIFI_HOTSPOT_HOST_ON_SRD_CHANNELS - 255, // 4518 -> NEARBY_BLE_GATT_NULL_CALLBACK - 292, // 4519 -> NEARBY_L2CAP_NULL_CALLBACK - 265, // 4520 -> NEARBY_BT_NULL_CALLBACK - 317, // 4521 -> NEARBY_USB_NULL_CALLBACK - 308, // 4522 -> NEARBY_NFC_NULL_CALLBACK - 329, // 4523 -> NEARBY_WIFI_AWARE_NULL_CALLBACK - 323, // 4524 -> NEARBY_WEB_RTC_NULL_CALLBACK - 297, // 4525 -> NEARBY_LAN_NULL_CALLBACK - 349, // 4526 -> NEARBY_WIFI_HOTSPOT_NULL_CALLBACK - 335, // 4527 -> NEARBY_WIFI_DIRECT_NULL_CALLBACK - 337, // 4528 -> NEARBY_WIFI_DIRECT_NULL_SSID - 336, // 4529 -> NEARBY_WIFI_DIRECT_NULL_PASSWORD - 264, // 4530 -> NEARBY_BT_MULTIPLEX_SOCKET_DISABLED - 296, // 4531 -> NEARBY_LAN_MULTIPLEX_SOCKET_DISABLED - 277, // 4532 -> NEARBY_GENERIC_NEW_ENDPOINT_CHANNEL_NULL - 334, // 4533 -> NEARBY_WIFI_DIRECT_NO_GROUP_FOR_LISTENING - 348, // 4534 -> NEARBY_WIFI_HOTSPOT_NO_HOTSPOT_FOR_LISTENING - 278, // 4535 -> NEARBY_GENERIC_OLD_ENDPOINT_CHANNEL_NULL - 257, // 4536 -> NEARBY_BLE_OPERATION_REGISTERED_FAILED - 293, // 4537 -> NEARBY_L2CAP_OPERATION_REGISTERED_FAILED - 266, // 4538 -> NEARBY_BT_OPERATION_REGISTERED_FAILED - 298, // 4539 -> NEARBY_LAN_OPERATION_REGISTERED_FAILED - 324, // 4540 -> NEARBY_WEB_RTC_OPERATION_REGISTERED_FAILED - 330, // 4541 -> NEARBY_WIFI_AWARE_OPERATION_REGISTERED_FAILED - 344, // 4542 -> NEARBY_WIFI_HOTSPOT_DIRECT_OPERATION_REGISTERED_FAILED - 354, // 4543 -> NEARBY_WIFI_HOTSPOT_SOFT_AP_OPERATION_REGISTERED_FAILED - 347, // 4544 -> NEARBY_WIFI_HOTSPOT_LOHS_OPERATION_REGISTERED_FAILED - 343, // 4545 -> NEARBY_WIFI_HOTSPOT_CLIENT_OPERATION_REGISTERED_FAILED - 338, // 4546 -> NEARBY_WIFI_DIRECT_OPERATION_REGISTERED_FAILED - 279, // 4547 -> NEARBY_GENERIC_OUTGOING_PAYLOAD_CREATION_FAILURE - 350, // 4548 -> NEARBY_WIFI_HOTSPOT_P2P_NON_DBS_WANT_2G_BUT_AP_5G - 339, // 4549 -> NEARBY_WIFI_DIRECT_P2P_NON_DBS_WANT_2G_BUT_AP_5G - 351, // 4550 -> NEARBY_WIFI_HOTSPOT_P2P_NON_DBS_WANT_5G_BUT_AP_2G - 340, // 4551 -> NEARBY_WIFI_DIRECT_P2P_NON_DBS_WANT_5G_BUT_AP_2G - 276, // 4552 -> NEARBY_GENERIC_INCOMING_PAYLOAD_NOT_DATA_TYPE - 283, // 4553 -> NEARBY_GENERIC_READ_CLIENT_INTRODUCTION_EVENT_TYPE_ERROR - 285, // 4554 -> NEARBY_GENERIC_READ_CLIENT_INTRODUCTION_FRAME_TYPE_ERROR - 284, // 4555 -> NEARBY_GENERIC_READ_CLIENT_INTRODUCTION_FORMAT_ERROR - 280, // 4556 -> NEARBY_GENERIC_READ_CLIENT_INTRODUCTION_ACK_EVENT_TYPE_ERROR - 282, // 4557 -> NEARBY_GENERIC_READ_CLIENT_INTRODUCTION_ACK_FRAME_TYPE_ERROR - 281, // 4558 -> NEARBY_GENERIC_READ_CLIENT_INTRODUCTION_ACK_FORMAT_ERROR - 286, // 4559 -> NEARBY_GENERIC_REMOTE_ENDPOINT_STATUS_ERROR - 287, // 4560 -> NEARBY_GENERIC_REMOTE_REPORT_PAYLOADS_ERROR - 288, // 4561 -> NEARBY_GENERIC_REMOTE_UPGRADE_FAILURE - 289, // 4562 -> NEARBY_GENERIC_SEND_PAYLOAD_EXECUTOR_NULL - 267, // 4563 -> NEARBY_BT_VIRTUAL_SOCKET_CREATION_FAILURE - 301, // 4564 -> NEARBY_LAN_VIRTUAL_SOCKET_CREATION_FAILURE - 357, // 4565 -> NEARBY_WIFI_LAN_IP_ADDRESS_ERROR - 294, // 4566 -> NEARBY_L2CAP_PSM_NOT_POSITIVE - 271, // 4567 -> NEARBY_ENCRYPTION_FAILURE - 248, // 4568 -> NEARBY_AUTHENTICATION_FAILURE - 302, // 4569 -> NEARBY_LAN_VIRTUAL_SOCKET_NULL - 258, // 4570 -> NEARBY_BLUETOOTH_ADVERTISE_TO_BYTES_FAILURE - 251, // 4571 -> NEARBY_BLE_ADVERTISE_TO_BYTES_FAILURE - 253, // 4572 -> NEARBY_BLE_FAST_ADVERTISE_TO_BYTES_FAILURE - 305, // 4573 -> NEARBY_NFC_ADVERTISE_TO_BYTES_FAILURE - 355, // 4574 -> NEARBY_WIFI_LAN_ADVERTISE_TO_BYTES_FAILURE - 326, // 4575 -> NEARBY_WIFI_AWARE_ADVERTISE_TO_BYTES_FAILURE - 314, // 4576 -> NEARBY_USB_ADVERTISE_TO_BYTES_FAILURE - 307, // 4577 -> NEARBY_NFC_INVALID_PCP_OPTIONS - 259, // 4578 -> NEARBY_BLUETOOTH_INVALID_PCP_OPTIONS - 256, // 4579 -> NEARBY_BLE_INVALID_PCP_OPTIONS - 356, // 4580 -> NEARBY_WIFI_LAN_INVALID_PCP_OPTIONS - 328, // 4581 -> NEARBY_WIFI_AWARE_INVALID_PCP_OPTIONS - 316, // 4582 -> NEARBY_USB_INVALID_PCP_OPTIONS - 318, // 4583 -> NEARBY_UWB_INVALID_PCP_OPTIONS - 321, // 4584 -> NEARBY_WEB_RTC_INVALID_PCP_OPTIONS - 261, // 4585 -> NEARBY_BLUETOOTH_NO_CLIENT_REGISTER_FOR_SCAN - 290, // 4586 -> NEARBY_INSTANT_CONNECTION_WRONG_CONNECTIVITY_INFO - 304, // 4587 -> NEARBY_NEED_METHOD_OVERRIDE - 275, // 4588 -> NEARBY_GENERIC_INCOMING_PAYLOAD_CREATION_FAILURE - 322, // 4589 -> NEARBY_WEB_RTC_NO_LISTENING_PEER_FOUND - 313, // 4590 -> NEARBY_UPGRADE_PATH_ON_WRONG_MEDIUM - 270, // 4591 -> NEARBY_CONNECT_TO_ALL_MEDIUMS_FAILURE - 262, // 4592 -> NEARBY_BLUETOOTH_RECONNECT_MAC_NULL - 299, // 4593 -> NEARBY_LAN_RECONNECT_CONNECTION_INFO_NULL - 300, // 4594 -> NEARBY_LAN_RECONNECT_IP_NULL - 342, // 4595 -> NEARBY_WIFI_DIRECT_RECONNECT_META_DATA_NULL - 341, // 4596 -> NEARBY_WIFI_DIRECT_RECONNECT_CONNECT_META_DATA_NULL - 353, // 4597 -> NEARBY_WIFI_HOTSPOT_RECONNECT_META_DATA_NULL - 352, // 4598 -> NEARBY_WIFI_HOTSPOT_RECONNECT_CONNECT_META_DATA_NULL - 325, // 4599 -> NEARBY_WEB_RTC_RECONNECT_PEER_ID_NULL - 331, // 4600 -> NEARBY_WIFI_AWARE_RECONNECT_META_DATA_NULL - 309, // 4601 -> NEARBY_NOT_ADVERTISING_OR_LISTENING - 268, // 4602 -> NEARBY_CAN_NOT_OBTAIN_DEVICE_PROVIDER - 311, // 4603 -> NEARBY_SETUP_STRATEGY_FAILURE - 312, // 4604 -> NEARBY_TX_ADVERTISEMENT_NULL - 272, // 4605 -> NEARBY_ENDPOINT_ID_MISMATCH - 269, // 4606 -> NEARBY_CONNECTIVITY_INFO_NULL_OR_WRONG - 303, // 4607 -> NEARBY_LOCAL_CLIENT_STATE_WRONG - 310, // 4608 -> NEARBY_REMOTE_EXCEPTION_WHEN_PROCESSING_RECEIVED_PAYLOAD - 249, // 4609 -> NEARBY_BAD_FILE_DESCRIPTION_WHEN_PROCESSING_RECEIVED_PAYLOAD + 275, // 4500 -> NEARBY_BLE_ADVERTISEMENT_MAPPING_TO_MAC_ERROR + 285, // 4501 -> NEARBY_BLUETOOTH_MAC_ADDRESS_INVALID_FOR_CONNECT + 344, // 4502 -> NEARBY_WEB_RTC_CONNECTION_FLOW_NULL + 298, // 4503 -> NEARBY_GENERIC_CONNECTION_CLOSED + 277, // 4504 -> NEARBY_BLE_ENDPOINT_CHANNEL_CREATION_FAILURE + 316, // 4505 -> NEARBY_L2CAP_ENDPOINT_CHANNEL_CREATION_FAILURE + 288, // 4506 -> NEARBY_BT_ENDPOINT_CHANNEL_CREATION_FAILURE + 320, // 4507 -> NEARBY_LAN_ENDPOINT_CHANNEL_CREATION_FAILURE + 331, // 4508 -> NEARBY_NFC_ENDPOINT_CHANNEL_CREATION_FAILURE + 352, // 4509 -> NEARBY_WIFI_AWARE_ENDPOINT_CHANNEL_CREATION_FAILURE + 370, // 4510 -> NEARBY_WIFI_HOTSPOT_ENDPOINT_CHANNEL_CREATION_FAILURE + 357, // 4511 -> NEARBY_WIFI_DIRECT_ENDPOINT_CHANNEL_CREATION_FAILURE + 345, // 4512 -> NEARBY_WEB_RTC_ENDPOINT_CHANNEL_CREATION_FAILURE + 340, // 4513 -> NEARBY_USB_ENDPOINT_CHANNEL_CREATION_FAILURE + 299, // 4514 -> NEARBY_GENERIC_ENDPOINT_UNENCRYPTED + 279, // 4515 -> NEARBY_BLE_GATT_ADVERTISEMENT_NULL_FOR_CONNECTION + 358, // 4516 -> NEARBY_WIFI_DIRECT_HOST_ON_SRD_CHANNELS + 371, // 4517 -> NEARBY_WIFI_HOTSPOT_HOST_ON_SRD_CHANNELS + 280, // 4518 -> NEARBY_BLE_GATT_NULL_CALLBACK + 317, // 4519 -> NEARBY_L2CAP_NULL_CALLBACK + 290, // 4520 -> NEARBY_BT_NULL_CALLBACK + 342, // 4521 -> NEARBY_USB_NULL_CALLBACK + 333, // 4522 -> NEARBY_NFC_NULL_CALLBACK + 354, // 4523 -> NEARBY_WIFI_AWARE_NULL_CALLBACK + 348, // 4524 -> NEARBY_WEB_RTC_NULL_CALLBACK + 322, // 4525 -> NEARBY_LAN_NULL_CALLBACK + 374, // 4526 -> NEARBY_WIFI_HOTSPOT_NULL_CALLBACK + 360, // 4527 -> NEARBY_WIFI_DIRECT_NULL_CALLBACK + 362, // 4528 -> NEARBY_WIFI_DIRECT_NULL_SSID + 361, // 4529 -> NEARBY_WIFI_DIRECT_NULL_PASSWORD + 289, // 4530 -> NEARBY_BT_MULTIPLEX_SOCKET_DISABLED + 321, // 4531 -> NEARBY_LAN_MULTIPLEX_SOCKET_DISABLED + 302, // 4532 -> NEARBY_GENERIC_NEW_ENDPOINT_CHANNEL_NULL + 359, // 4533 -> NEARBY_WIFI_DIRECT_NO_GROUP_FOR_LISTENING + 373, // 4534 -> NEARBY_WIFI_HOTSPOT_NO_HOTSPOT_FOR_LISTENING + 303, // 4535 -> NEARBY_GENERIC_OLD_ENDPOINT_CHANNEL_NULL + 282, // 4536 -> NEARBY_BLE_OPERATION_REGISTERED_FAILED + 318, // 4537 -> NEARBY_L2CAP_OPERATION_REGISTERED_FAILED + 291, // 4538 -> NEARBY_BT_OPERATION_REGISTERED_FAILED + 323, // 4539 -> NEARBY_LAN_OPERATION_REGISTERED_FAILED + 349, // 4540 -> NEARBY_WEB_RTC_OPERATION_REGISTERED_FAILED + 355, // 4541 -> NEARBY_WIFI_AWARE_OPERATION_REGISTERED_FAILED + 369, // 4542 -> NEARBY_WIFI_HOTSPOT_DIRECT_OPERATION_REGISTERED_FAILED + 379, // 4543 -> NEARBY_WIFI_HOTSPOT_SOFT_AP_OPERATION_REGISTERED_FAILED + 372, // 4544 -> NEARBY_WIFI_HOTSPOT_LOHS_OPERATION_REGISTERED_FAILED + 368, // 4545 -> NEARBY_WIFI_HOTSPOT_CLIENT_OPERATION_REGISTERED_FAILED + 363, // 4546 -> NEARBY_WIFI_DIRECT_OPERATION_REGISTERED_FAILED + 304, // 4547 -> NEARBY_GENERIC_OUTGOING_PAYLOAD_CREATION_FAILURE + 375, // 4548 -> NEARBY_WIFI_HOTSPOT_P2P_NON_DBS_WANT_2G_BUT_AP_5G + 364, // 4549 -> NEARBY_WIFI_DIRECT_P2P_NON_DBS_WANT_2G_BUT_AP_5G + 376, // 4550 -> NEARBY_WIFI_HOTSPOT_P2P_NON_DBS_WANT_5G_BUT_AP_2G + 365, // 4551 -> NEARBY_WIFI_DIRECT_P2P_NON_DBS_WANT_5G_BUT_AP_2G + 301, // 4552 -> NEARBY_GENERIC_INCOMING_PAYLOAD_NOT_DATA_TYPE + 308, // 4553 -> NEARBY_GENERIC_READ_CLIENT_INTRODUCTION_EVENT_TYPE_ERROR + 310, // 4554 -> NEARBY_GENERIC_READ_CLIENT_INTRODUCTION_FRAME_TYPE_ERROR + 309, // 4555 -> NEARBY_GENERIC_READ_CLIENT_INTRODUCTION_FORMAT_ERROR + 305, // 4556 -> NEARBY_GENERIC_READ_CLIENT_INTRODUCTION_ACK_EVENT_TYPE_ERROR + 307, // 4557 -> NEARBY_GENERIC_READ_CLIENT_INTRODUCTION_ACK_FRAME_TYPE_ERROR + 306, // 4558 -> NEARBY_GENERIC_READ_CLIENT_INTRODUCTION_ACK_FORMAT_ERROR + 311, // 4559 -> NEARBY_GENERIC_REMOTE_ENDPOINT_STATUS_ERROR + 312, // 4560 -> NEARBY_GENERIC_REMOTE_REPORT_PAYLOADS_ERROR + 313, // 4561 -> NEARBY_GENERIC_REMOTE_UPGRADE_FAILURE + 314, // 4562 -> NEARBY_GENERIC_SEND_PAYLOAD_EXECUTOR_NULL + 292, // 4563 -> NEARBY_BT_VIRTUAL_SOCKET_CREATION_FAILURE + 326, // 4564 -> NEARBY_LAN_VIRTUAL_SOCKET_CREATION_FAILURE + 382, // 4565 -> NEARBY_WIFI_LAN_IP_ADDRESS_ERROR + 319, // 4566 -> NEARBY_L2CAP_PSM_NOT_POSITIVE + 296, // 4567 -> NEARBY_ENCRYPTION_FAILURE + 273, // 4568 -> NEARBY_AUTHENTICATION_FAILURE + 327, // 4569 -> NEARBY_LAN_VIRTUAL_SOCKET_NULL + 283, // 4570 -> NEARBY_BLUETOOTH_ADVERTISE_TO_BYTES_FAILURE + 276, // 4571 -> NEARBY_BLE_ADVERTISE_TO_BYTES_FAILURE + 278, // 4572 -> NEARBY_BLE_FAST_ADVERTISE_TO_BYTES_FAILURE + 330, // 4573 -> NEARBY_NFC_ADVERTISE_TO_BYTES_FAILURE + 380, // 4574 -> NEARBY_WIFI_LAN_ADVERTISE_TO_BYTES_FAILURE + 351, // 4575 -> NEARBY_WIFI_AWARE_ADVERTISE_TO_BYTES_FAILURE + 339, // 4576 -> NEARBY_USB_ADVERTISE_TO_BYTES_FAILURE + 332, // 4577 -> NEARBY_NFC_INVALID_PCP_OPTIONS + 284, // 4578 -> NEARBY_BLUETOOTH_INVALID_PCP_OPTIONS + 281, // 4579 -> NEARBY_BLE_INVALID_PCP_OPTIONS + 381, // 4580 -> NEARBY_WIFI_LAN_INVALID_PCP_OPTIONS + 353, // 4581 -> NEARBY_WIFI_AWARE_INVALID_PCP_OPTIONS + 341, // 4582 -> NEARBY_USB_INVALID_PCP_OPTIONS + 343, // 4583 -> NEARBY_UWB_INVALID_PCP_OPTIONS + 346, // 4584 -> NEARBY_WEB_RTC_INVALID_PCP_OPTIONS + 286, // 4585 -> NEARBY_BLUETOOTH_NO_CLIENT_REGISTER_FOR_SCAN + 315, // 4586 -> NEARBY_INSTANT_CONNECTION_WRONG_CONNECTIVITY_INFO + 329, // 4587 -> NEARBY_NEED_METHOD_OVERRIDE + 300, // 4588 -> NEARBY_GENERIC_INCOMING_PAYLOAD_CREATION_FAILURE + 347, // 4589 -> NEARBY_WEB_RTC_NO_LISTENING_PEER_FOUND + 338, // 4590 -> NEARBY_UPGRADE_PATH_ON_WRONG_MEDIUM + 295, // 4591 -> NEARBY_CONNECT_TO_ALL_MEDIUMS_FAILURE + 287, // 4592 -> NEARBY_BLUETOOTH_RECONNECT_MAC_NULL + 324, // 4593 -> NEARBY_LAN_RECONNECT_CONNECTION_INFO_NULL + 325, // 4594 -> NEARBY_LAN_RECONNECT_IP_NULL + 367, // 4595 -> NEARBY_WIFI_DIRECT_RECONNECT_META_DATA_NULL + 366, // 4596 -> NEARBY_WIFI_DIRECT_RECONNECT_CONNECT_META_DATA_NULL + 378, // 4597 -> NEARBY_WIFI_HOTSPOT_RECONNECT_META_DATA_NULL + 377, // 4598 -> NEARBY_WIFI_HOTSPOT_RECONNECT_CONNECT_META_DATA_NULL + 350, // 4599 -> NEARBY_WEB_RTC_RECONNECT_PEER_ID_NULL + 356, // 4600 -> NEARBY_WIFI_AWARE_RECONNECT_META_DATA_NULL + 334, // 4601 -> NEARBY_NOT_ADVERTISING_OR_LISTENING + 293, // 4602 -> NEARBY_CAN_NOT_OBTAIN_DEVICE_PROVIDER + 336, // 4603 -> NEARBY_SETUP_STRATEGY_FAILURE + 337, // 4604 -> NEARBY_TX_ADVERTISEMENT_NULL + 297, // 4605 -> NEARBY_ENDPOINT_ID_MISMATCH + 294, // 4606 -> NEARBY_CONNECTIVITY_INFO_NULL_OR_WRONG + 328, // 4607 -> NEARBY_LOCAL_CLIENT_STATE_WRONG + 335, // 4608 -> NEARBY_REMOTE_EXCEPTION_WHEN_PROCESSING_RECEIVED_PAYLOAD + 274, // 4609 -> NEARBY_BAD_FILE_DESCRIPTION_WHEN_PROCESSING_RECEIVED_PAYLOAD + 163, // 5000 -> DCT_ERROR_BLE_DISABLED + 162, // 5001 -> DCT_ERROR_BLE_ADV_FAILED + 164, // 5002 -> DCT_ERROR_BLE_SCAN_FAILED + 173, // 5003 -> DCT_ERROR_L2CAP_SERVER_FAILED + 172, // 5004 -> DCT_ERROR_L2CAP_CLIENT_FAILED + 174, // 5005 -> DCT_ERROR_MDNS_DISCOVERY_TIMEOUT + 175, // 5006 -> DCT_ERROR_MDNS_REGISTER_SERVICE + 170, // 5007 -> DCT_ERROR_INITIAL_TLS_SPAKE + 179, // 5008 -> DCT_ERROR_SUBSEQUENT_TLS_SPAKE + 176, // 5009 -> DCT_ERROR_REQUEST_FAILED + 177, // 5010 -> DCT_ERROR_RESPONSE_FAILED + 166, // 5011 -> DCT_ERROR_CONTROL_MESSAGE_EXCHANGE + 165, // 5012 -> DCT_ERROR_CAPABILITY_MISMATCH + 168, // 5013 -> DCT_ERROR_HIGH_SPEED_MEDIUM_UNAVAILABLE + 184, // 5014 -> DCT_ERROR_WIFI_DISABLED + 185, // 5015 -> DCT_ERROR_WIFI_DISCONNECTED + 183, // 5016 -> DCT_ERROR_WIFI_CREDENTIAL_TRANSFER + 186, // 5017 -> DCT_ERROR_WIFI_INTERNET_CONNECTION + 181, // 5018 -> DCT_ERROR_UPGRADE_HIGH_SPEED_MEDIUM_FAILED + 171, // 5019 -> DCT_ERROR_KEEPALIVE_TIMEOUT + 167, // 5020 -> DCT_ERROR_ESTABLISHED_CONNECTION_LOST + 182, // 5021 -> DCT_ERROR_USER_CANCELLED + 178, // 5022 -> DCT_ERROR_SERVICE_CANCELLED + 180, // 5023 -> DCT_ERROR_UNVERIFIED_INTEGRITY + 169, // 5024 -> DCT_ERROR_HTTP_SERVER_CLOSED }; const std::string& OperationResultCode_Name( @@ -3099,12 +3203,12 @@ const std::string& OperationResultCode_Name( ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( OperationResultCode_entries, OperationResultCode_entries_by_number, - 358, OperationResultCode_strings); + 383, OperationResultCode_strings); (void) dummy; int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( OperationResultCode_entries, OperationResultCode_entries_by_number, - 358, value); + 383, value); return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : OperationResultCode_strings[idx].get(); } @@ -3112,7 +3216,7 @@ bool OperationResultCode_Parse( ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, OperationResultCode* value) { int int_value; bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( - OperationResultCode_entries, 358, name, &int_value); + OperationResultCode_entries, 383, name, &int_value); if (success) { *value = static_cast(int_value); } @@ -3228,6 +3332,65 @@ bool StopDiscoveringReason_Parse( } return success; } +bool DeviceType_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + return true; + default: + return false; + } +} + +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed DeviceType_strings[4] = {}; + +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 int DeviceType_entries_by_number[] = { + 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(); +} +bool DeviceType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, DeviceType* value) { + int int_value; + bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + DeviceType_entries, 4, name, &int_value); + if (success) { + *value = static_cast(int_value); + } + return success; +} // @@protoc_insertion_point(namespace_scope) } // namespace connections diff --git a/compiled_proto/proto/connections_enums.pb.h b/compiled_proto/proto/connections_enums.pb.h index c51e001a..6d9da4bb 100644 --- a/compiled_proto/proto/connections_enums.pb.h +++ b/compiled_proto/proto/connections_enums.pb.h @@ -576,11 +576,12 @@ enum OperationResultCategory : int { CATEGORY_NEARBY_ERROR = 6, CATEGORY_CONNECTIVITY_ERROR = 7, CATEGORY_MISCELLANEOUS = 8, - CATEGORY_IO_ERROR = 9 + CATEGORY_IO_ERROR = 9, + CATEGORY_DCT_ERROR = 10 }; bool OperationResultCategory_IsValid(int value); constexpr OperationResultCategory OperationResultCategory_MIN = CATEGORY_UNKNOWN; -constexpr OperationResultCategory OperationResultCategory_MAX = CATEGORY_IO_ERROR; +constexpr OperationResultCategory OperationResultCategory_MAX = CATEGORY_DCT_ERROR; constexpr int OperationResultCategory_ARRAYSIZE = OperationResultCategory_MAX + 1; const std::string& OperationResultCategory_Name(OperationResultCategory value); @@ -951,11 +952,36 @@ enum OperationResultCode : int { NEARBY_CONNECTIVITY_INFO_NULL_OR_WRONG = 4606, NEARBY_LOCAL_CLIENT_STATE_WRONG = 4607, NEARBY_REMOTE_EXCEPTION_WHEN_PROCESSING_RECEIVED_PAYLOAD = 4608, - NEARBY_BAD_FILE_DESCRIPTION_WHEN_PROCESSING_RECEIVED_PAYLOAD = 4609 + NEARBY_BAD_FILE_DESCRIPTION_WHEN_PROCESSING_RECEIVED_PAYLOAD = 4609, + DCT_ERROR_BLE_DISABLED = 5000, + DCT_ERROR_BLE_ADV_FAILED = 5001, + DCT_ERROR_BLE_SCAN_FAILED = 5002, + DCT_ERROR_L2CAP_SERVER_FAILED = 5003, + DCT_ERROR_L2CAP_CLIENT_FAILED = 5004, + DCT_ERROR_MDNS_DISCOVERY_TIMEOUT = 5005, + DCT_ERROR_MDNS_REGISTER_SERVICE = 5006, + DCT_ERROR_INITIAL_TLS_SPAKE = 5007, + DCT_ERROR_SUBSEQUENT_TLS_SPAKE = 5008, + DCT_ERROR_REQUEST_FAILED = 5009, + DCT_ERROR_RESPONSE_FAILED = 5010, + DCT_ERROR_CONTROL_MESSAGE_EXCHANGE = 5011, + DCT_ERROR_CAPABILITY_MISMATCH = 5012, + DCT_ERROR_HIGH_SPEED_MEDIUM_UNAVAILABLE = 5013, + DCT_ERROR_WIFI_DISABLED = 5014, + DCT_ERROR_WIFI_DISCONNECTED = 5015, + DCT_ERROR_WIFI_CREDENTIAL_TRANSFER = 5016, + DCT_ERROR_WIFI_INTERNET_CONNECTION = 5017, + DCT_ERROR_UPGRADE_HIGH_SPEED_MEDIUM_FAILED = 5018, + DCT_ERROR_KEEPALIVE_TIMEOUT = 5019, + DCT_ERROR_ESTABLISHED_CONNECTION_LOST = 5020, + DCT_ERROR_USER_CANCELLED = 5021, + DCT_ERROR_SERVICE_CANCELLED = 5022, + DCT_ERROR_UNVERIFIED_INTEGRITY = 5023, + DCT_ERROR_HTTP_SERVER_CLOSED = 5024 }; bool OperationResultCode_IsValid(int value); constexpr OperationResultCode OperationResultCode_MIN = DETAIL_UNKNOWN; -constexpr OperationResultCode OperationResultCode_MAX = NEARBY_BAD_FILE_DESCRIPTION_WHEN_PROCESSING_RECEIVED_PAYLOAD; +constexpr OperationResultCode OperationResultCode_MAX = DCT_ERROR_HTTP_SERVER_CLOSED; constexpr int OperationResultCode_ARRAYSIZE = OperationResultCode_MAX + 1; const std::string& OperationResultCode_Name(OperationResultCode value); @@ -1008,6 +1034,27 @@ inline const std::string& StopDiscoveringReason_Name(T enum_t_value) { } bool StopDiscoveringReason_Parse( ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, StopDiscoveringReason* value); +enum DeviceType : int { + UNKNOWN_TYPE = 0, + NEARBY_CONNECTION = 1, + NEARBY_PRESENCE = 2, + 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) { + 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)); +} +bool DeviceType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, DeviceType* value); // =================================================================== @@ -1057,6 +1104,7 @@ template <> struct is_proto_enum< ::location::nearby::proto::connections::Operat 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 {}; PROTOBUF_NAMESPACE_CLOSE diff --git a/compiled_proto/proto/sharing_enums.pb.cc b/compiled_proto/proto/sharing_enums.pb.cc index 16754657..1315b40d 100644 --- a/compiled_proto/proto/sharing_enums.pb.cc +++ b/compiled_proto/proto/sharing_enums.pb.cc @@ -2722,13 +2722,14 @@ bool AttachmentSourceType_IsValid(int value) { case 3: case 4: case 5: + case 6: return true; default: return false; } } -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed AttachmentSourceType_strings[6] = {}; +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed AttachmentSourceType_strings[7] = {}; static const char AttachmentSourceType_names[] = "ATTACHMENT_SOURCE_CONTEXT_MENU" @@ -2736,6 +2737,7 @@ static const char AttachmentSourceType_names[] = "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[] = { @@ -2744,16 +2746,18 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry AttachmentSourceType_e { {AttachmentSourceType_names + 61, 23}, 4 }, { {AttachmentSourceType_names + 84, 37}, 3 }, { {AttachmentSourceType_names + 121, 39}, 5 }, - { {AttachmentSourceType_names + 160, 25}, 0 }, + { {AttachmentSourceType_names + 160, 34}, 6 }, + { {AttachmentSourceType_names + 194, 25}, 0 }, }; static const int AttachmentSourceType_entries_by_number[] = { - 5, // 0 -> ATTACHMENT_SOURCE_UNKNOWN + 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( @@ -2762,12 +2766,12 @@ const std::string& AttachmentSourceType_Name( ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( AttachmentSourceType_entries, AttachmentSourceType_entries_by_number, - 6, AttachmentSourceType_strings); + 7, AttachmentSourceType_strings); (void) dummy; int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( AttachmentSourceType_entries, AttachmentSourceType_entries_by_number, - 6, value); + 7, value); return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : AttachmentSourceType_strings[idx].get(); } @@ -2775,7 +2779,7 @@ bool AttachmentSourceType_Parse( ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, AttachmentSourceType* value) { int int_value; bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( - AttachmentSourceType_entries, 6, name, &int_value); + AttachmentSourceType_entries, 7, name, &int_value); if (success) { *value = static_cast(int_value); } diff --git a/compiled_proto/proto/sharing_enums.pb.h b/compiled_proto/proto/sharing_enums.pb.h index 2d15e8e9..34451f67 100644 --- a/compiled_proto/proto/sharing_enums.pb.h +++ b/compiled_proto/proto/sharing_enums.pb.h @@ -948,11 +948,12 @@ enum AttachmentSourceType : int { ATTACHMENT_SOURCE_DRAG_AND_DROP = 2, ATTACHMENT_SOURCE_SELECT_FILES_BUTTON = 3, ATTACHMENT_SOURCE_PASTE = 4, - ATTACHMENT_SOURCE_SELECT_FOLDERS_BUTTON = 5 + ATTACHMENT_SOURCE_SELECT_FOLDERS_BUTTON = 5, + ATTACHMENT_SOURCE_SHARE_ACTIVATION = 6 }; bool AttachmentSourceType_IsValid(int value); constexpr AttachmentSourceType AttachmentSourceType_MIN = ATTACHMENT_SOURCE_UNKNOWN; -constexpr AttachmentSourceType AttachmentSourceType_MAX = ATTACHMENT_SOURCE_SELECT_FOLDERS_BUTTON; +constexpr AttachmentSourceType AttachmentSourceType_MAX = ATTACHMENT_SOURCE_SHARE_ACTIVATION; constexpr int AttachmentSourceType_ARRAYSIZE = AttachmentSourceType_MAX + 1; const std::string& AttachmentSourceType_Name(AttachmentSourceType value);