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 b60070d0..4a96e480 100644 --- a/compiled_proto/connections/implementation/proto/offline_wire_formats.pb.cc +++ b/compiled_proto/connections/implementation/proto/offline_wire_formats.pb.cc @@ -255,7 +255,8 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT BandwidthUpgradeNegotiationFram 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){} + , service_type_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , password_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentialsDefaultTypeInternal { constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentialsDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} @@ -317,6 +318,7 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT BandwidthUpgradeNegotiationFram constexpr BandwidthUpgradeNegotiationFrame_ClientIntroduction::BandwidthUpgradeNegotiationFrame_ClientIntroduction( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : endpoint_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , last_endpoint_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , supports_disabling_encryption_(false){} struct BandwidthUpgradeNegotiationFrame_ClientIntroductionDefaultTypeInternal { constexpr BandwidthUpgradeNegotiationFrame_ClientIntroductionDefaultTypeInternal() @@ -7588,6 +7590,9 @@ class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::_Interna static void set_has_service_type(HasBits* has_bits) { (*has_bits)[0] |= 2u; } + static void set_has_password(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } }; BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials(::PROTOBUF_NAMESPACE_ID::Arena* arena, @@ -7619,6 +7624,14 @@ BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::BandwidthUpgra service_type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_service_type(), GetArenaForAllocation()); } + password_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_password()) { + password_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_password(), + GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials) } @@ -7631,6 +7644,10 @@ service_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStrin #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING service_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +password_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials() { @@ -7644,6 +7661,7 @@ inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::Sh GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); service_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); service_type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + password_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::ArenaDtor(void* object) { @@ -7663,13 +7681,16 @@ void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::Clear() { (void) cached_has_bits; cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { service_name_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { service_type_.ClearNonDefaultToEmpty(); } + if (cached_has_bits & 0x00000004u) { + password_.ClearNonDefaultToEmpty(); + } } _has_bits_.Clear(); _internal_metadata_.Clear(); @@ -7700,6 +7721,15 @@ const char* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::_I } else goto handle_unusual; continue; + // optional string password = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_password(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -7743,6 +7773,12 @@ uint8_t* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::_Inte 2, this->_internal_service_type(), target); } + // optional string password = 3; + if (cached_has_bits & 0x00000004u) { + target = stream->WriteStringMaybeAliased( + 3, this->_internal_password(), 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); @@ -7760,7 +7796,7 @@ size_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::ByteSiz (void) cached_has_bits; cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000007u) { // optional string service_name = 1; if (cached_has_bits & 0x00000001u) { total_size += 1 + @@ -7775,6 +7811,13 @@ size_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::ByteSiz this->_internal_service_type()); } + // optional string password = 3; + if (cached_has_bits & 0x00000004u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_password()); + } + } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); @@ -7797,13 +7840,16 @@ void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::MergeFrom (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000007u) { 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()); } + if (cached_has_bits & 0x00000004u) { + _internal_set_password(from._internal_password()); + } } _internal_metadata_.MergeFrom(from._internal_metadata_); } @@ -7835,6 +7881,11 @@ void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::InternalS &service_type_, lhs_arena, &other->service_type_, rhs_arena ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &password_, lhs_arena, + &other->password_, rhs_arena + ); } std::string BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::GetTypeName() const { @@ -8914,6 +8965,9 @@ class BandwidthUpgradeNegotiationFrame_ClientIntroduction::_Internal { (*has_bits)[0] |= 1u; } static void set_has_supports_disabling_encryption(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } + static void set_has_last_endpoint_id(HasBits* has_bits) { (*has_bits)[0] |= 2u; } }; @@ -8939,6 +8993,14 @@ BandwidthUpgradeNegotiationFrame_ClientIntroduction::BandwidthUpgradeNegotiation endpoint_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_endpoint_id(), GetArenaForAllocation()); } + last_endpoint_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + last_endpoint_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_last_endpoint_id()) { + last_endpoint_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_last_endpoint_id(), + GetArenaForAllocation()); + } supports_disabling_encryption_ = from.supports_disabling_encryption_; // @@protoc_insertion_point(copy_constructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction) } @@ -8948,6 +9010,10 @@ endpoint_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING endpoint_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +last_endpoint_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + last_endpoint_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING supports_disabling_encryption_ = false; } @@ -8961,6 +9027,7 @@ BandwidthUpgradeNegotiationFrame_ClientIntroduction::~BandwidthUpgradeNegotiatio inline void BandwidthUpgradeNegotiationFrame_ClientIntroduction::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); endpoint_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + last_endpoint_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void BandwidthUpgradeNegotiationFrame_ClientIntroduction::ArenaDtor(void* object) { @@ -8980,8 +9047,13 @@ void BandwidthUpgradeNegotiationFrame_ClientIntroduction::Clear() { (void) cached_has_bits; cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - endpoint_id_.ClearNonDefaultToEmpty(); + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + endpoint_id_.ClearNonDefaultToEmpty(); + } + if (cached_has_bits & 0x00000002u) { + last_endpoint_id_.ClearNonDefaultToEmpty(); + } } supports_disabling_encryption_ = false; _has_bits_.Clear(); @@ -9013,6 +9085,15 @@ const char* BandwidthUpgradeNegotiationFrame_ClientIntroduction::_InternalParse( } else goto handle_unusual; continue; + // optional string last_endpoint_id = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_last_endpoint_id(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -9051,11 +9132,17 @@ uint8_t* BandwidthUpgradeNegotiationFrame_ClientIntroduction::_InternalSerialize } // optional bool supports_disabling_encryption = 2; - if (cached_has_bits & 0x00000002u) { + if (cached_has_bits & 0x00000004u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->_internal_supports_disabling_encryption(), target); } + // optional string last_endpoint_id = 3; + if (cached_has_bits & 0x00000002u) { + target = stream->WriteStringMaybeAliased( + 3, this->_internal_last_endpoint_id(), target); + } + if (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); @@ -9073,7 +9160,7 @@ size_t BandwidthUpgradeNegotiationFrame_ClientIntroduction::ByteSizeLong() const (void) cached_has_bits; cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000007u) { // optional string endpoint_id = 1; if (cached_has_bits & 0x00000001u) { total_size += 1 + @@ -9081,8 +9168,15 @@ size_t BandwidthUpgradeNegotiationFrame_ClientIntroduction::ByteSizeLong() const this->_internal_endpoint_id()); } - // optional bool supports_disabling_encryption = 2; + // optional string last_endpoint_id = 3; if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_last_endpoint_id()); + } + + // optional bool supports_disabling_encryption = 2; + if (cached_has_bits & 0x00000004u) { total_size += 1 + 1; } @@ -9108,11 +9202,14 @@ void BandwidthUpgradeNegotiationFrame_ClientIntroduction::MergeFrom(const Bandwi (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { _internal_set_endpoint_id(from._internal_endpoint_id()); } if (cached_has_bits & 0x00000002u) { + _internal_set_last_endpoint_id(from._internal_last_endpoint_id()); + } + if (cached_has_bits & 0x00000004u) { supports_disabling_encryption_ = from.supports_disabling_encryption_; } _has_bits_[0] |= cached_has_bits; @@ -9142,6 +9239,11 @@ void BandwidthUpgradeNegotiationFrame_ClientIntroduction::InternalSwap(Bandwidth &endpoint_id_, lhs_arena, &other->endpoint_id_, rhs_arena ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &last_endpoint_id_, lhs_arena, + &other->last_endpoint_id_, rhs_arena + ); swap(supports_disabling_encryption_, other->supports_disabling_encryption_); } 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 16fd7cd8..baaafa46 100644 --- a/compiled_proto/connections/implementation/proto/offline_wire_formats.pb.h +++ b/compiled_proto/connections/implementation/proto/offline_wire_formats.pb.h @@ -4225,6 +4225,7 @@ class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials final : enum : int { kServiceNameFieldNumber = 1, kServiceTypeFieldNumber = 2, + kPasswordFieldNumber = 3, }; // optional string service_name = 1; bool has_service_name() const; @@ -4262,6 +4263,24 @@ class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials final : std::string* _internal_mutable_service_type(); public: + // optional string password = 3; + bool has_password() const; + private: + bool _internal_has_password() const; + public: + void clear_password(); + const std::string& password() const; + template + void set_password(ArgT0&& arg0, ArgT... args); + std::string* mutable_password(); + PROTOBUF_NODISCARD std::string* release_password(); + void set_allocated_password(std::string* password); + private: + const std::string& _internal_password() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_password(const std::string& value); + std::string* _internal_mutable_password(); + public: + // @@protoc_insertion_point(class_scope:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials) private: class _Internal; @@ -4273,6 +4292,7 @@ class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials final : mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr service_name_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr service_type_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr password_; friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; }; // ------------------------------------------------------------------- @@ -5089,6 +5109,7 @@ class BandwidthUpgradeNegotiationFrame_ClientIntroduction final : enum : int { kEndpointIdFieldNumber = 1, + kLastEndpointIdFieldNumber = 3, kSupportsDisablingEncryptionFieldNumber = 2, }; // optional string endpoint_id = 1; @@ -5109,6 +5130,24 @@ class BandwidthUpgradeNegotiationFrame_ClientIntroduction final : std::string* _internal_mutable_endpoint_id(); public: + // optional string last_endpoint_id = 3; + bool has_last_endpoint_id() const; + private: + bool _internal_has_last_endpoint_id() const; + public: + void clear_last_endpoint_id(); + const std::string& last_endpoint_id() const; + template + void set_last_endpoint_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_last_endpoint_id(); + PROTOBUF_NODISCARD std::string* release_last_endpoint_id(); + void set_allocated_last_endpoint_id(std::string* last_endpoint_id); + private: + const std::string& _internal_last_endpoint_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_last_endpoint_id(const std::string& value); + std::string* _internal_mutable_last_endpoint_id(); + public: + // optional bool supports_disabling_encryption = 2; bool has_supports_disabling_encryption() const; private: @@ -5132,6 +5171,7 @@ class BandwidthUpgradeNegotiationFrame_ClientIntroduction final : ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr endpoint_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr last_endpoint_id_; bool supports_disabling_encryption_; friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; }; @@ -13992,6 +14032,75 @@ inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::se // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials.service_type) } +// optional string password = 3; +inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::_internal_has_password() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} +inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::has_password() const { + return _internal_has_password(); +} +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::clear_password() { + password_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000004u; +} +inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::password() const { + // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials.password) + return _internal_password(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::set_password(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000004u; + password_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials.password) +} +inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::mutable_password() { + std::string* _s = _internal_mutable_password(); + // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials.password) + return _s; +} +inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::_internal_password() const { + return password_.Get(); +} +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::_internal_set_password(const std::string& value) { + _has_bits_[0] |= 0x00000004u; + password_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::_internal_mutable_password() { + _has_bits_[0] |= 0x00000004u; + return password_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::release_password() { + // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials.password) + if (!_internal_has_password()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000004u; + auto* p = password_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (password_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { + password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; +} +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials::set_allocated_password(std::string* password) { + if (password != nullptr) { + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + password_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), password, + GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (password_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { + password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.AwdlCredentials.password) +} + // ------------------------------------------------------------------- // BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest @@ -15047,7 +15156,7 @@ inline void BandwidthUpgradeNegotiationFrame_ClientIntroduction::set_allocated_e // optional bool supports_disabling_encryption = 2; inline bool BandwidthUpgradeNegotiationFrame_ClientIntroduction::_internal_has_supports_disabling_encryption() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; + bool value = (_has_bits_[0] & 0x00000004u) != 0; return value; } inline bool BandwidthUpgradeNegotiationFrame_ClientIntroduction::has_supports_disabling_encryption() const { @@ -15055,7 +15164,7 @@ inline bool BandwidthUpgradeNegotiationFrame_ClientIntroduction::has_supports_di } inline void BandwidthUpgradeNegotiationFrame_ClientIntroduction::clear_supports_disabling_encryption() { supports_disabling_encryption_ = false; - _has_bits_[0] &= ~0x00000002u; + _has_bits_[0] &= ~0x00000004u; } inline bool BandwidthUpgradeNegotiationFrame_ClientIntroduction::_internal_supports_disabling_encryption() const { return supports_disabling_encryption_; @@ -15065,7 +15174,7 @@ inline bool BandwidthUpgradeNegotiationFrame_ClientIntroduction::supports_disabl return _internal_supports_disabling_encryption(); } inline void BandwidthUpgradeNegotiationFrame_ClientIntroduction::_internal_set_supports_disabling_encryption(bool value) { - _has_bits_[0] |= 0x00000002u; + _has_bits_[0] |= 0x00000004u; supports_disabling_encryption_ = value; } inline void BandwidthUpgradeNegotiationFrame_ClientIntroduction::set_supports_disabling_encryption(bool value) { @@ -15073,6 +15182,75 @@ inline void BandwidthUpgradeNegotiationFrame_ClientIntroduction::set_supports_di // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction.supports_disabling_encryption) } +// optional string last_endpoint_id = 3; +inline bool BandwidthUpgradeNegotiationFrame_ClientIntroduction::_internal_has_last_endpoint_id() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool BandwidthUpgradeNegotiationFrame_ClientIntroduction::has_last_endpoint_id() const { + return _internal_has_last_endpoint_id(); +} +inline void BandwidthUpgradeNegotiationFrame_ClientIntroduction::clear_last_endpoint_id() { + last_endpoint_id_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000002u; +} +inline const std::string& BandwidthUpgradeNegotiationFrame_ClientIntroduction::last_endpoint_id() const { + // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction.last_endpoint_id) + return _internal_last_endpoint_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void BandwidthUpgradeNegotiationFrame_ClientIntroduction::set_last_endpoint_id(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000002u; + last_endpoint_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction.last_endpoint_id) +} +inline std::string* BandwidthUpgradeNegotiationFrame_ClientIntroduction::mutable_last_endpoint_id() { + std::string* _s = _internal_mutable_last_endpoint_id(); + // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction.last_endpoint_id) + return _s; +} +inline const std::string& BandwidthUpgradeNegotiationFrame_ClientIntroduction::_internal_last_endpoint_id() const { + return last_endpoint_id_.Get(); +} +inline void BandwidthUpgradeNegotiationFrame_ClientIntroduction::_internal_set_last_endpoint_id(const std::string& value) { + _has_bits_[0] |= 0x00000002u; + last_endpoint_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* BandwidthUpgradeNegotiationFrame_ClientIntroduction::_internal_mutable_last_endpoint_id() { + _has_bits_[0] |= 0x00000002u; + return last_endpoint_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* BandwidthUpgradeNegotiationFrame_ClientIntroduction::release_last_endpoint_id() { + // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction.last_endpoint_id) + if (!_internal_has_last_endpoint_id()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000002u; + auto* p = last_endpoint_id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (last_endpoint_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { + last_endpoint_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; +} +inline void BandwidthUpgradeNegotiationFrame_ClientIntroduction::set_allocated_last_endpoint_id(std::string* last_endpoint_id) { + if (last_endpoint_id != nullptr) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + last_endpoint_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), last_endpoint_id, + GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (last_endpoint_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { + last_endpoint_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction.last_endpoint_id) +} + // ------------------------------------------------------------------- // BandwidthUpgradeNegotiationFrame_ClientIntroductionAck diff --git a/compiled_proto/proto/sharing_enums.pb.cc b/compiled_proto/proto/sharing_enums.pb.cc index 1315b40d..f3b78c1f 100644 --- a/compiled_proto/proto/sharing_enums.pb.cc +++ b/compiled_proto/proto/sharing_enums.pb.cc @@ -1168,35 +1168,43 @@ bool DeviceType_IsValid(int value) { case 2: case 3: case 4: + case 5: + case 6: return true; default: return false; } } -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed DeviceType_strings[5] = {}; +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed DeviceType_strings[7] = {}; static const char DeviceType_names[] = "CAR" + "FOLDABLE" "LAPTOP" "PHONE" "TABLET" - "UNKNOWN_DEVICE_TYPE"; + "UNKNOWN_DEVICE_TYPE" + "XR"; static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry DeviceType_entries[] = { { {DeviceType_names + 0, 3}, 4 }, - { {DeviceType_names + 3, 6}, 3 }, - { {DeviceType_names + 9, 5}, 1 }, - { {DeviceType_names + 14, 6}, 2 }, - { {DeviceType_names + 20, 19}, 0 }, + { {DeviceType_names + 3, 8}, 5 }, + { {DeviceType_names + 11, 6}, 3 }, + { {DeviceType_names + 17, 5}, 1 }, + { {DeviceType_names + 22, 6}, 2 }, + { {DeviceType_names + 28, 19}, 0 }, + { {DeviceType_names + 47, 2}, 6 }, }; static const int DeviceType_entries_by_number[] = { - 4, // 0 -> UNKNOWN_DEVICE_TYPE - 2, // 1 -> PHONE - 3, // 2 -> TABLET - 1, // 3 -> LAPTOP + 5, // 0 -> UNKNOWN_DEVICE_TYPE + 3, // 1 -> PHONE + 4, // 2 -> TABLET + 2, // 3 -> LAPTOP 0, // 4 -> CAR + 1, // 5 -> FOLDABLE + 6, // 6 -> XR }; const std::string& DeviceType_Name( @@ -1205,12 +1213,12 @@ const std::string& DeviceType_Name( ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( DeviceType_entries, DeviceType_entries_by_number, - 5, DeviceType_strings); + 7, DeviceType_strings); (void) dummy; int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( DeviceType_entries, DeviceType_entries_by_number, - 5, value); + 7, value); return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : DeviceType_strings[idx].get(); } @@ -1218,7 +1226,7 @@ bool DeviceType_Parse( ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, DeviceType* value) { int int_value; bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( - DeviceType_entries, 5, name, &int_value); + DeviceType_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 34451f67..4452d448 100644 --- a/compiled_proto/proto/sharing_enums.pb.h +++ b/compiled_proto/proto/sharing_enums.pb.h @@ -415,11 +415,13 @@ enum DeviceType : int { PHONE = 1, TABLET = 2, LAPTOP = 3, - CAR = 4 + CAR = 4, + FOLDABLE = 5, + XR = 6 }; bool DeviceType_IsValid(int value); constexpr DeviceType DeviceType_MIN = UNKNOWN_DEVICE_TYPE; -constexpr DeviceType DeviceType_MAX = CAR; +constexpr DeviceType DeviceType_MAX = XR; constexpr int DeviceType_ARRAYSIZE = DeviceType_MAX + 1; const std::string& DeviceType_Name(DeviceType value);