From 209b9a7ebcbcc94ee007b7c400d55e0b803bcd4c Mon Sep 17 00:00:00 2001 From: Francis Tsui Date: Wed, 5 Nov 2025 13:00:44 -0800 Subject: [PATCH] Update pre-compiled proto files. --- .../proto/offline_wire_formats.pb.cc | 341 ++++++++++++- .../proto/offline_wire_formats.pb.h | 459 ++++++++++++++++-- 2 files changed, 759 insertions(+), 41 deletions(-) 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 4a96e480..1445cb0e 100644 --- a/compiled_proto/connections/implementation/proto/offline_wire_formats.pb.cc +++ b/compiled_proto/connections/implementation/proto/offline_wire_formats.pb.cc @@ -166,9 +166,23 @@ struct PayloadTransferFrameDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PayloadTransferFrameDefaultTypeInternal _PayloadTransferFrame_default_instance_; +constexpr ServiceAddress::ServiceAddress( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : ip_address_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , port_(0){} +struct ServiceAddressDefaultTypeInternal { + constexpr ServiceAddressDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~ServiceAddressDefaultTypeInternal() {} + union { + ServiceAddress _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ServiceAddressDefaultTypeInternal _ServiceAddress_default_instance_; constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : ssid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + : addresse_candidates_() + , ssid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , password_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , gateway_(nullptr) , port_(0) @@ -184,7 +198,8 @@ struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentialsDe PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentialsDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials_default_instance_; constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : ip_address_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + : addresse_candidates_() + , ip_address_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , wifi_port_(0){} struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocketDefaultTypeInternal { constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocketDefaultTypeInternal() @@ -5691,6 +5706,251 @@ std::string PayloadTransferFrame::GetTypeName() const { } +// =================================================================== + +class ServiceAddress::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_ip_address(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_port(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } +}; + +ServiceAddress::ServiceAddress(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:location.nearby.connections.ServiceAddress) +} +ServiceAddress::ServiceAddress(const ServiceAddress& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ip_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + ip_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_ip_address()) { + ip_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_ip_address(), + GetArenaForAllocation()); + } + port_ = from.port_; + // @@protoc_insertion_point(copy_constructor:location.nearby.connections.ServiceAddress) +} + +inline void ServiceAddress::SharedCtor() { +ip_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + ip_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +port_ = 0; +} + +ServiceAddress::~ServiceAddress() { + // @@protoc_insertion_point(destructor:location.nearby.connections.ServiceAddress) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete(); +} + +inline void ServiceAddress::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + ip_address_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void ServiceAddress::ArenaDtor(void* object) { + ServiceAddress* _this = reinterpret_cast< ServiceAddress* >(object); + (void)_this; +} +void ServiceAddress::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void ServiceAddress::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ServiceAddress::Clear() { +// @@protoc_insertion_point(message_clear_start:location.nearby.connections.ServiceAddress) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ip_address_.ClearNonDefaultToEmpty(); + } + port_ = 0; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* ServiceAddress::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // optional bytes ip_address = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_ip_address(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional int32 port = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _Internal::set_has_port(&has_bits); + port_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* ServiceAddress::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.ServiceAddress) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes ip_address = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->WriteBytesMaybeAliased( + 1, this->_internal_ip_address(), target); + } + + // optional int32 port = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_port(), target); + } + + if (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.ServiceAddress) + return target; +} + +size_t ServiceAddress::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.ServiceAddress) + 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 bytes ip_address = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_ip_address()); + } + + // optional int32 port = 2; + if (cached_has_bits & 0x00000002u) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_port()); + } + + } + if (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 ServiceAddress::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void ServiceAddress::MergeFrom(const ServiceAddress& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.ServiceAddress) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + _internal_set_ip_address(from._internal_ip_address()); + } + if (cached_has_bits & 0x00000002u) { + port_ = from.port_; + } + _has_bits_[0] |= cached_has_bits; + } + _internal_metadata_.MergeFrom(from._internal_metadata_); +} + +void ServiceAddress::CopyFrom(const ServiceAddress& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.ServiceAddress) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ServiceAddress::IsInitialized() const { + return true; +} + +void ServiceAddress::InternalSwap(ServiceAddress* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &ip_address_, lhs_arena, + &other->ip_address_, rhs_arena + ); + swap(port_, other->port_); +} + +std::string ServiceAddress::GetTypeName() const { + return "location.nearby.connections.ServiceAddress"; +} + + // =================================================================== class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_Internal { @@ -5716,7 +5976,8 @@ class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_ const ::PROTOBUF_NAMESPACE_ID::internal::LazyString BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_i_give_permission_to_break_this_code_default_gateway_{{{"0.0.0.0", 7}}, {nullptr}}; BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned), + addresse_candidates_(arena) { SharedCtor(); if (!is_message_owned) { RegisterArenaDtor(arena); @@ -5725,7 +5986,8 @@ BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::Bandwid } BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& from) : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { + _has_bits_(from._has_bits_), + addresse_candidates_(from.addresse_candidates_) { _internal_metadata_.MergeFrom(from._internal_metadata_); ssid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING @@ -5798,6 +6060,7 @@ void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::Cl // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + addresse_candidates_.Clear(); cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { @@ -5870,6 +6133,19 @@ const char* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredenti } else goto handle_unusual; continue; + // repeated .location.nearby.connections.ServiceAddress addresse_candidates = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_addresse_candidates(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(ptr)); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -5931,6 +6207,14 @@ uint8_t* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_frequency(), target); } + // repeated .location.nearby.connections.ServiceAddress addresse_candidates = 6; + for (unsigned int i = 0, + n = static_cast(this->_internal_addresse_candidates_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(6, this->_internal_addresse_candidates(i), 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); @@ -5947,6 +6231,13 @@ size_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials:: // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + // repeated .location.nearby.connections.ServiceAddress addresse_candidates = 6; + total_size += 1UL * this->_internal_addresse_candidates_size(); + for (const auto& msg : this->addresse_candidates_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x0000001fu) { // optional string ssid = 1; @@ -6001,6 +6292,7 @@ void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::Me uint32_t cached_has_bits = 0; (void) cached_has_bits; + addresse_candidates_.MergeFrom(from.addresse_candidates_); cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x0000001fu) { if (cached_has_bits & 0x00000001u) { @@ -6040,6 +6332,7 @@ void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::In auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); + addresse_candidates_.InternalSwap(&other->addresse_candidates_); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), &ssid_, lhs_arena, @@ -6079,7 +6372,8 @@ class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::_Internal BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned), + addresse_candidates_(arena) { SharedCtor(); if (!is_message_owned) { RegisterArenaDtor(arena); @@ -6088,7 +6382,8 @@ BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::BandwidthUpgrade } BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& from) : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { + _has_bits_(from._has_bits_), + addresse_candidates_(from.addresse_candidates_) { _internal_metadata_.MergeFrom(from._internal_metadata_); ip_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING @@ -6138,6 +6433,7 @@ void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + addresse_candidates_.Clear(); cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { ip_address_.ClearNonDefaultToEmpty(); @@ -6172,6 +6468,19 @@ const char* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::_Int } else goto handle_unusual; continue; + // repeated .location.nearby.connections.ServiceAddress addresse_candidates = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_addresse_candidates(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -6215,6 +6524,14 @@ uint8_t* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::_Intern target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_wifi_port(), target); } + // repeated .location.nearby.connections.ServiceAddress addresse_candidates = 3; + for (unsigned int i = 0, + n = static_cast(this->_internal_addresse_candidates_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, this->_internal_addresse_candidates(i), 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); @@ -6231,6 +6548,13 @@ size_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::ByteSizeL // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + // repeated .location.nearby.connections.ServiceAddress addresse_candidates = 3; + total_size += 1UL * this->_internal_addresse_candidates_size(); + for (const auto& msg : this->addresse_candidates_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000003u) { // optional bytes ip_address = 1; @@ -6266,6 +6590,7 @@ void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::MergeFrom(c uint32_t cached_has_bits = 0; (void) cached_has_bits; + addresse_candidates_.MergeFrom(from.addresse_candidates_); cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { @@ -6296,6 +6621,7 @@ void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::InternalSwa auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); + addresse_candidates_.InternalSwap(&other->addresse_candidates_); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), &ip_address_, lhs_arena, @@ -15236,6 +15562,9 @@ template<> PROTOBUF_NOINLINE ::location::nearby::connections::PayloadTransferFra template<> PROTOBUF_NOINLINE ::location::nearby::connections::PayloadTransferFrame* Arena::CreateMaybeMessage< ::location::nearby::connections::PayloadTransferFrame >(Arena* arena) { return Arena::CreateMessageInternal< ::location::nearby::connections::PayloadTransferFrame >(arena); } +template<> PROTOBUF_NOINLINE ::location::nearby::connections::ServiceAddress* Arena::CreateMaybeMessage< ::location::nearby::connections::ServiceAddress >(Arena* arena) { + return Arena::CreateMessageInternal< ::location::nearby::connections::ServiceAddress >(arena); +} template<> PROTOBUF_NOINLINE ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* Arena::CreateMaybeMessage< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials >(Arena* arena) { return Arena::CreateMessageInternal< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials >(arena); } 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 baaafa46..0040a85f 100644 --- a/compiled_proto/connections/implementation/proto/offline_wire_formats.pb.h +++ b/compiled_proto/connections/implementation/proto/offline_wire_formats.pb.h @@ -13,7 +13,7 @@ #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3019001 < PROTOBUF_MIN_PROTOC_VERSION +#if 3019000 < PROTOBUF_MIN_PROTOC_VERSION #error This file was generated by an older version of protoc which is #error incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. @@ -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[41] + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[42] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; @@ -162,6 +162,9 @@ extern PayloadTransferFrame_PayloadHeaderDefaultTypeInternal _PayloadTransferFra class PresenceDevice; struct PresenceDeviceDefaultTypeInternal; extern PresenceDeviceDefaultTypeInternal _PresenceDevice_default_instance_; +class ServiceAddress; +struct ServiceAddressDefaultTypeInternal; +extern ServiceAddressDefaultTypeInternal _ServiceAddress_default_instance_; class V1Frame; struct V1FrameDefaultTypeInternal; extern V1FrameDefaultTypeInternal _V1Frame_default_instance_; @@ -217,6 +220,7 @@ template<> ::location::nearby::connections::PayloadTransferFrame_ControlMessage* template<> ::location::nearby::connections::PayloadTransferFrame_PayloadChunk* Arena::CreateMaybeMessage<::location::nearby::connections::PayloadTransferFrame_PayloadChunk>(Arena*); template<> ::location::nearby::connections::PayloadTransferFrame_PayloadHeader* Arena::CreateMaybeMessage<::location::nearby::connections::PayloadTransferFrame_PayloadHeader>(Arena*); template<> ::location::nearby::connections::PresenceDevice* Arena::CreateMaybeMessage<::location::nearby::connections::PresenceDevice>(Arena*); +template<> ::location::nearby::connections::ServiceAddress* Arena::CreateMaybeMessage<::location::nearby::connections::ServiceAddress>(Arena*); template<> ::location::nearby::connections::V1Frame* Arena::CreateMaybeMessage<::location::nearby::connections::V1Frame>(Arena*); template<> ::location::nearby::connections::WifiAwareUsableChannels* Arena::CreateMaybeMessage<::location::nearby::connections::WifiAwareUsableChannels>(Arena*); template<> ::location::nearby::connections::WifiDirectCliUsableChannels* Arena::CreateMaybeMessage<::location::nearby::connections::WifiDirectCliUsableChannels>(Arena*); @@ -2971,6 +2975,168 @@ class PayloadTransferFrame final : }; // ------------------------------------------------------------------- +class ServiceAddress final : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.ServiceAddress) */ { + public: + inline ServiceAddress() : ServiceAddress(nullptr) {} + ~ServiceAddress() override; + explicit constexpr ServiceAddress(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ServiceAddress(const ServiceAddress& from); + ServiceAddress(ServiceAddress&& from) noexcept + : ServiceAddress() { + *this = ::std::move(from); + } + + inline ServiceAddress& operator=(const ServiceAddress& from) { + CopyFrom(from); + return *this; + } + inline ServiceAddress& operator=(ServiceAddress&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } + + static const ServiceAddress& default_instance() { + return *internal_default_instance(); + } + static inline const ServiceAddress* internal_default_instance() { + return reinterpret_cast( + &_ServiceAddress_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + friend void swap(ServiceAddress& a, ServiceAddress& b) { + a.Swap(&b); + } + inline void Swap(ServiceAddress* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ServiceAddress* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ServiceAddress* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; + void CopyFrom(const ServiceAddress& from); + void MergeFrom(const ServiceAddress& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + void InternalSwap(ServiceAddress* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "location.nearby.connections.ServiceAddress"; + } + protected: + explicit ServiceAddress(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + std::string GetTypeName() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kIpAddressFieldNumber = 1, + kPortFieldNumber = 2, + }; + // optional bytes ip_address = 1; + bool has_ip_address() const; + private: + bool _internal_has_ip_address() const; + public: + void clear_ip_address(); + const std::string& ip_address() const; + template + void set_ip_address(ArgT0&& arg0, ArgT... args); + std::string* mutable_ip_address(); + PROTOBUF_NODISCARD std::string* release_ip_address(); + void set_allocated_ip_address(std::string* ip_address); + private: + const std::string& _internal_ip_address() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_ip_address(const std::string& value); + std::string* _internal_mutable_ip_address(); + public: + + // optional int32 port = 2; + bool has_port() const; + private: + bool _internal_has_port() const; + public: + void clear_port(); + int32_t port() const; + void set_port(int32_t value); + private: + int32_t _internal_port() const; + void _internal_set_port(int32_t value); + public: + + // @@protoc_insertion_point(class_scope:location.nearby.connections.ServiceAddress) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ip_address_; + int32_t port_; + friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; +}; +// ------------------------------------------------------------------- + class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials final : public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials) */ { public: @@ -3017,7 +3183,7 @@ class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials fi &_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials_default_instance_); } static constexpr int kIndexInFileMessages = - 8; + 9; friend void swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& a, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& b) { a.Swap(&b); @@ -3084,12 +3250,31 @@ class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials fi // accessors ------------------------------------------------------- enum : int { + kAddresseCandidatesFieldNumber = 6, kSsidFieldNumber = 1, kPasswordFieldNumber = 2, kGatewayFieldNumber = 4, kPortFieldNumber = 3, kFrequencyFieldNumber = 5, }; + // repeated .location.nearby.connections.ServiceAddress addresse_candidates = 6; + int addresse_candidates_size() const; + private: + int _internal_addresse_candidates_size() const; + public: + void clear_addresse_candidates(); + ::location::nearby::connections::ServiceAddress* mutable_addresse_candidates(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::connections::ServiceAddress >* + mutable_addresse_candidates(); + private: + const ::location::nearby::connections::ServiceAddress& _internal_addresse_candidates(int index) const; + ::location::nearby::connections::ServiceAddress* _internal_add_addresse_candidates(); + public: + const ::location::nearby::connections::ServiceAddress& addresse_candidates(int index) const; + ::location::nearby::connections::ServiceAddress* add_addresse_candidates(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::connections::ServiceAddress >& + addresse_candidates() const; + // optional string ssid = 1; bool has_ssid() const; private: @@ -3179,6 +3364,7 @@ class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials fi typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::connections::ServiceAddress > addresse_candidates_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ssid_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr password_; static const ::PROTOBUF_NAMESPACE_ID::internal::LazyString _i_give_permission_to_break_this_code_default_gateway_; @@ -3235,7 +3421,7 @@ class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket final : &_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket_default_instance_); } static constexpr int kIndexInFileMessages = - 9; + 10; friend void swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& a, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& b) { a.Swap(&b); @@ -3302,9 +3488,28 @@ class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket final : // accessors ------------------------------------------------------- enum : int { + kAddresseCandidatesFieldNumber = 3, kIpAddressFieldNumber = 1, kWifiPortFieldNumber = 2, }; + // repeated .location.nearby.connections.ServiceAddress addresse_candidates = 3; + int addresse_candidates_size() const; + private: + int _internal_addresse_candidates_size() const; + public: + void clear_addresse_candidates(); + ::location::nearby::connections::ServiceAddress* mutable_addresse_candidates(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::connections::ServiceAddress >* + mutable_addresse_candidates(); + private: + const ::location::nearby::connections::ServiceAddress& _internal_addresse_candidates(int index) const; + ::location::nearby::connections::ServiceAddress* _internal_add_addresse_candidates(); + public: + const ::location::nearby::connections::ServiceAddress& addresse_candidates(int index) const; + ::location::nearby::connections::ServiceAddress* add_addresse_candidates(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::connections::ServiceAddress >& + addresse_candidates() const; + // optional bytes ip_address = 1; bool has_ip_address() const; private: @@ -3345,6 +3550,7 @@ class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket final : typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::connections::ServiceAddress > addresse_candidates_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ip_address_; int32_t wifi_port_; friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; @@ -3397,7 +3603,7 @@ class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials fina &_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials_default_instance_); } static constexpr int kIndexInFileMessages = - 10; + 11; friend void swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& a, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& b) { a.Swap(&b); @@ -3564,7 +3770,7 @@ class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials fina &_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials_default_instance_); } static constexpr int kIndexInFileMessages = - 11; + 12; friend void swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& a, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& b) { a.Swap(&b); @@ -3751,7 +3957,7 @@ class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials fin &_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials_default_instance_); } static constexpr int kIndexInFileMessages = - 12; + 13; friend void swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& a, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& b) { a.Swap(&b); @@ -3989,7 +4195,7 @@ class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials final : &_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials_default_instance_); } static constexpr int kIndexInFileMessages = - 13; + 14; friend void swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& a, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& b) { a.Swap(&b); @@ -4156,7 +4362,7 @@ class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials final : &_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials_default_instance_); } static constexpr int kIndexInFileMessages = - 14; + 15; friend void swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials& a, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_AwdlCredentials& b) { a.Swap(&b); @@ -4343,7 +4549,7 @@ class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest final &_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 15; + 16; friend void swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest& a, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_UpgradePathRequest& b) { a.Swap(&b); @@ -4510,7 +4716,7 @@ class BandwidthUpgradeNegotiationFrame_UpgradePathInfo final : &_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_default_instance_); } static constexpr int kIndexInFileMessages = - 16; + 17; friend void swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo& a, BandwidthUpgradeNegotiationFrame_UpgradePathInfo& b) { a.Swap(&b); @@ -4899,7 +5105,7 @@ class BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel final : &_BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel_default_instance_); } static constexpr int kIndexInFileMessages = - 17; + 18; friend void swap(BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& a, BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& b) { a.Swap(&b); @@ -5041,7 +5247,7 @@ class BandwidthUpgradeNegotiationFrame_ClientIntroduction final : &_BandwidthUpgradeNegotiationFrame_ClientIntroduction_default_instance_); } static constexpr int kIndexInFileMessages = - 18; + 19; friend void swap(BandwidthUpgradeNegotiationFrame_ClientIntroduction& a, BandwidthUpgradeNegotiationFrame_ClientIntroduction& b) { a.Swap(&b); @@ -5223,7 +5429,7 @@ class BandwidthUpgradeNegotiationFrame_ClientIntroductionAck final : &_BandwidthUpgradeNegotiationFrame_ClientIntroductionAck_default_instance_); } static constexpr int kIndexInFileMessages = - 19; + 20; friend void swap(BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& a, BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& b) { a.Swap(&b); @@ -5347,7 +5553,7 @@ class BandwidthUpgradeNegotiationFrame final : &_BandwidthUpgradeNegotiationFrame_default_instance_); } static constexpr int kIndexInFileMessages = - 20; + 21; friend void swap(BandwidthUpgradeNegotiationFrame& a, BandwidthUpgradeNegotiationFrame& b) { a.Swap(&b); @@ -5612,7 +5818,7 @@ class BandwidthUpgradeRetryFrame final : &_BandwidthUpgradeRetryFrame_default_instance_); } static constexpr int kIndexInFileMessages = - 21; + 22; friend void swap(BandwidthUpgradeRetryFrame& a, BandwidthUpgradeRetryFrame& b) { a.Swap(&b); @@ -5821,7 +6027,7 @@ class KeepAliveFrame final : &_KeepAliveFrame_default_instance_); } static constexpr int kIndexInFileMessages = - 22; + 23; friend void swap(KeepAliveFrame& a, KeepAliveFrame& b) { a.Swap(&b); @@ -5978,7 +6184,7 @@ class DisconnectionFrame final : &_DisconnectionFrame_default_instance_); } static constexpr int kIndexInFileMessages = - 23; + 24; friend void swap(DisconnectionFrame& a, DisconnectionFrame& b) { a.Swap(&b); @@ -6135,7 +6341,7 @@ class PairedKeyEncryptionFrame final : &_PairedKeyEncryptionFrame_default_instance_); } static constexpr int kIndexInFileMessages = - 24; + 25; friend void swap(PairedKeyEncryptionFrame& a, PairedKeyEncryptionFrame& b) { a.Swap(&b); @@ -6282,7 +6488,7 @@ class AuthenticationMessageFrame final : &_AuthenticationMessageFrame_default_instance_); } static constexpr int kIndexInFileMessages = - 25; + 26; friend void swap(AuthenticationMessageFrame& a, AuthenticationMessageFrame& b) { a.Swap(&b); @@ -6429,7 +6635,7 @@ class AuthenticationResultFrame final : &_AuthenticationResultFrame_default_instance_); } static constexpr int kIndexInFileMessages = - 26; + 27; friend void swap(AuthenticationResultFrame& a, AuthenticationResultFrame& b) { a.Swap(&b); @@ -6571,7 +6777,7 @@ class AutoResumeFrame final : &_AutoResumeFrame_default_instance_); } static constexpr int kIndexInFileMessages = - 27; + 28; friend void swap(AutoResumeFrame& a, AutoResumeFrame& b) { a.Swap(&b); @@ -6786,7 +6992,7 @@ class AutoReconnectFrame final : &_AutoReconnectFrame_default_instance_); } static constexpr int kIndexInFileMessages = - 28; + 29; friend void swap(AutoReconnectFrame& a, AutoReconnectFrame& b) { a.Swap(&b); @@ -6996,7 +7202,7 @@ class MediumMetadata final : &_MediumMetadata_default_instance_); } static constexpr int kIndexInFileMessages = - 29; + 30; friend void swap(MediumMetadata& a, MediumMetadata& b) { a.Swap(&b); @@ -7343,7 +7549,7 @@ class AvailableChannels final : &_AvailableChannels_default_instance_); } static constexpr int kIndexInFileMessages = - 30; + 31; friend void swap(AvailableChannels& a, AvailableChannels& b) { a.Swap(&b); @@ -7494,7 +7700,7 @@ class WifiDirectCliUsableChannels final : &_WifiDirectCliUsableChannels_default_instance_); } static constexpr int kIndexInFileMessages = - 31; + 32; friend void swap(WifiDirectCliUsableChannels& a, WifiDirectCliUsableChannels& b) { a.Swap(&b); @@ -7645,7 +7851,7 @@ class WifiLanUsableChannels final : &_WifiLanUsableChannels_default_instance_); } static constexpr int kIndexInFileMessages = - 32; + 33; friend void swap(WifiLanUsableChannels& a, WifiLanUsableChannels& b) { a.Swap(&b); @@ -7796,7 +8002,7 @@ class WifiAwareUsableChannels final : &_WifiAwareUsableChannels_default_instance_); } static constexpr int kIndexInFileMessages = - 33; + 34; friend void swap(WifiAwareUsableChannels& a, WifiAwareUsableChannels& b) { a.Swap(&b); @@ -7947,7 +8153,7 @@ class WifiHotspotStaUsableChannels final : &_WifiHotspotStaUsableChannels_default_instance_); } static constexpr int kIndexInFileMessages = - 34; + 35; friend void swap(WifiHotspotStaUsableChannels& a, WifiHotspotStaUsableChannels& b) { a.Swap(&b); @@ -8098,7 +8304,7 @@ class MediumRole final : &_MediumRole_default_instance_); } static constexpr int kIndexInFileMessages = - 35; + 36; friend void swap(MediumRole& a, MediumRole& b) { a.Swap(&b); @@ -8345,7 +8551,7 @@ class LocationHint final : &_LocationHint_default_instance_); } static constexpr int kIndexInFileMessages = - 36; + 37; friend void swap(LocationHint& a, LocationHint& b) { a.Swap(&b); @@ -8507,7 +8713,7 @@ class LocationStandard final : &_LocationStandard_default_instance_); } static constexpr int kIndexInFileMessages = - 37; + 38; friend void swap(LocationStandard& a, LocationStandard& b) { a.Swap(&b); @@ -8659,7 +8865,7 @@ class OsInfo final : &_OsInfo_default_instance_); } static constexpr int kIndexInFileMessages = - 38; + 39; friend void swap(OsInfo& a, OsInfo& b) { a.Swap(&b); @@ -8835,7 +9041,7 @@ class ConnectionsDevice final : &_ConnectionsDevice_default_instance_); } static constexpr int kIndexInFileMessages = - 39; + 40; friend void swap(ConnectionsDevice& a, ConnectionsDevice& b) { a.Swap(&b); @@ -9037,7 +9243,7 @@ class PresenceDevice final : &_PresenceDevice_default_instance_); } static constexpr int kIndexInFileMessages = - 40; + 41; friend void swap(PresenceDevice& a, PresenceDevice& b) { a.Swap(&b); @@ -12690,6 +12896,107 @@ inline void PayloadTransferFrame::set_allocated_control_message(::location::near // ------------------------------------------------------------------- +// ServiceAddress + +// optional bytes ip_address = 1; +inline bool ServiceAddress::_internal_has_ip_address() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool ServiceAddress::has_ip_address() const { + return _internal_has_ip_address(); +} +inline void ServiceAddress::clear_ip_address() { + ip_address_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& ServiceAddress::ip_address() const { + // @@protoc_insertion_point(field_get:location.nearby.connections.ServiceAddress.ip_address) + return _internal_ip_address(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ServiceAddress::set_ip_address(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + ip_address_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:location.nearby.connections.ServiceAddress.ip_address) +} +inline std::string* ServiceAddress::mutable_ip_address() { + std::string* _s = _internal_mutable_ip_address(); + // @@protoc_insertion_point(field_mutable:location.nearby.connections.ServiceAddress.ip_address) + return _s; +} +inline const std::string& ServiceAddress::_internal_ip_address() const { + return ip_address_.Get(); +} +inline void ServiceAddress::_internal_set_ip_address(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + ip_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* ServiceAddress::_internal_mutable_ip_address() { + _has_bits_[0] |= 0x00000001u; + return ip_address_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* ServiceAddress::release_ip_address() { + // @@protoc_insertion_point(field_release:location.nearby.connections.ServiceAddress.ip_address) + if (!_internal_has_ip_address()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + auto* p = ip_address_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (ip_address_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { + ip_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; +} +inline void ServiceAddress::set_allocated_ip_address(std::string* ip_address) { + if (ip_address != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + ip_address_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ip_address, + GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (ip_address_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { + ip_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.ServiceAddress.ip_address) +} + +// optional int32 port = 2; +inline bool ServiceAddress::_internal_has_port() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool ServiceAddress::has_port() const { + return _internal_has_port(); +} +inline void ServiceAddress::clear_port() { + port_ = 0; + _has_bits_[0] &= ~0x00000002u; +} +inline int32_t ServiceAddress::_internal_port() const { + return port_; +} +inline int32_t ServiceAddress::port() const { + // @@protoc_insertion_point(field_get:location.nearby.connections.ServiceAddress.port) + return _internal_port(); +} +inline void ServiceAddress::_internal_set_port(int32_t value) { + _has_bits_[0] |= 0x00000002u; + port_ = value; +} +inline void ServiceAddress::set_port(int32_t value) { + _internal_set_port(value); + // @@protoc_insertion_point(field_set:location.nearby.connections.ServiceAddress.port) +} + +// ------------------------------------------------------------------- + // BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials // optional string ssid = 1; @@ -12946,6 +13253,46 @@ inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredenti // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials.frequency) } +// repeated .location.nearby.connections.ServiceAddress addresse_candidates = 6; +inline int BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_addresse_candidates_size() const { + return addresse_candidates_.size(); +} +inline int BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::addresse_candidates_size() const { + return _internal_addresse_candidates_size(); +} +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::clear_addresse_candidates() { + addresse_candidates_.Clear(); +} +inline ::location::nearby::connections::ServiceAddress* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::mutable_addresse_candidates(int index) { + // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials.addresse_candidates) + return addresse_candidates_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::connections::ServiceAddress >* +BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::mutable_addresse_candidates() { + // @@protoc_insertion_point(field_mutable_list:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials.addresse_candidates) + return &addresse_candidates_; +} +inline const ::location::nearby::connections::ServiceAddress& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_addresse_candidates(int index) const { + return addresse_candidates_.Get(index); +} +inline const ::location::nearby::connections::ServiceAddress& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::addresse_candidates(int index) const { + // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials.addresse_candidates) + return _internal_addresse_candidates(index); +} +inline ::location::nearby::connections::ServiceAddress* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_add_addresse_candidates() { + return addresse_candidates_.Add(); +} +inline ::location::nearby::connections::ServiceAddress* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::add_addresse_candidates() { + ::location::nearby::connections::ServiceAddress* _add = _internal_add_addresse_candidates(); + // @@protoc_insertion_point(field_add:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials.addresse_candidates) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::connections::ServiceAddress >& +BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::addresse_candidates() const { + // @@protoc_insertion_point(field_list:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials.addresse_candidates) + return addresse_candidates_; +} + // ------------------------------------------------------------------- // BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket @@ -13047,6 +13394,46 @@ inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::set_ // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket.wifi_port) } +// repeated .location.nearby.connections.ServiceAddress addresse_candidates = 3; +inline int BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::_internal_addresse_candidates_size() const { + return addresse_candidates_.size(); +} +inline int BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::addresse_candidates_size() const { + return _internal_addresse_candidates_size(); +} +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::clear_addresse_candidates() { + addresse_candidates_.Clear(); +} +inline ::location::nearby::connections::ServiceAddress* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::mutable_addresse_candidates(int index) { + // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket.addresse_candidates) + return addresse_candidates_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::connections::ServiceAddress >* +BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::mutable_addresse_candidates() { + // @@protoc_insertion_point(field_mutable_list:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket.addresse_candidates) + return &addresse_candidates_; +} +inline const ::location::nearby::connections::ServiceAddress& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::_internal_addresse_candidates(int index) const { + return addresse_candidates_.Get(index); +} +inline const ::location::nearby::connections::ServiceAddress& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::addresse_candidates(int index) const { + // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket.addresse_candidates) + return _internal_addresse_candidates(index); +} +inline ::location::nearby::connections::ServiceAddress* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::_internal_add_addresse_candidates() { + return addresse_candidates_.Add(); +} +inline ::location::nearby::connections::ServiceAddress* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::add_addresse_candidates() { + ::location::nearby::connections::ServiceAddress* _add = _internal_add_addresse_candidates(); + // @@protoc_insertion_point(field_add:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket.addresse_candidates) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::location::nearby::connections::ServiceAddress >& +BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::addresse_candidates() const { + // @@protoc_insertion_point(field_list:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket.addresse_candidates) + return addresse_candidates_; +} + // ------------------------------------------------------------------- // BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials @@ -18555,6 +18942,8 @@ PresenceDevice::mutable_identity_type() { // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope)