From 61374eadd2347b62352a65a6c846492973b4036b Mon Sep 17 00:00:00 2001 From: GovenLiuGoog Date: Mon, 22 Jun 2026 15:17:43 +0000 Subject: [PATCH] Update offline_wire_formats.proto and regenerate bindings --- .../proto/offline_wire_formats.pb.cc | 151 +++++++++------- .../proto/offline_wire_formats.pb.h | 161 ++++++++++++++---- .../proto/offline_wire_formats.proto | 1 + 3 files changed, 218 insertions(+), 95 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 2da3e87d..acf3497d 100644 --- a/compiled_proto/connections/implementation/proto/offline_wire_formats.pb.cc +++ b/compiled_proto/connections/implementation/proto/offline_wire_formats.pb.cc @@ -977,6 +977,9 @@ inline constexpr ConnectionResponseFrame::Impl_::Impl_( handshake_data_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), + wifi_direct_device_name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), os_info_{nullptr}, location_hint_{nullptr}, status_{0}, @@ -4110,7 +4113,8 @@ PROTOBUF_NDEBUG_INLINE ConnectionResponseFrame::Impl_::Impl_( [[maybe_unused]] const ::location::nearby::connections::ConnectionResponseFrame& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, - handshake_data_(arena, from.handshake_data_) {} + handshake_data_(arena, from.handshake_data_), + wifi_direct_device_name_(arena, from.wifi_direct_device_name_) {} ConnectionResponseFrame::ConnectionResponseFrame( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, @@ -4126,10 +4130,10 @@ ConnectionResponseFrame::ConnectionResponseFrame( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.os_info_ = (CheckHasBit(cached_has_bits, 0x00000002U)) + _impl_.os_info_ = (CheckHasBit(cached_has_bits, 0x00000004U)) ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.os_info_) : nullptr; - _impl_.location_hint_ = (CheckHasBit(cached_has_bits, 0x00000004U)) + _impl_.location_hint_ = (CheckHasBit(cached_has_bits, 0x00000008U)) ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.location_hint_) : nullptr; ::memcpy(reinterpret_cast(&_impl_) + @@ -4146,7 +4150,8 @@ PROTOBUF_NDEBUG_INLINE ConnectionResponseFrame::Impl_::Impl_( [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, - handshake_data_(arena) {} + handshake_data_(arena), + wifi_direct_device_name_(arena) {} inline void ConnectionResponseFrame::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); @@ -4169,6 +4174,7 @@ inline void ConnectionResponseFrame::SharedDtor(MessageLite& self) { this_._internal_metadata_.Delete<::std::string>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.handshake_data_.Destroy(); + this_._impl_.wifi_direct_device_name_.Destroy(); delete this_._impl_.os_info_; delete this_._impl_.location_hint_; this_._impl_.~Impl_(); @@ -4214,16 +4220,16 @@ ConnectionResponseFrame::GetClassData() const { return ConnectionResponseFrame_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<4, 9, 3, 0, 2> +const ::_pbi::TcParseTable<4, 10, 3, 0, 2> ConnectionResponseFrame::_table_ = { { PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_._has_bits_), 0, // no _extensions_ - 9, 120, // max_field_number, fast_idx_mask + 10, 120, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), - 4294966784, // skipmap + 4294966272, // skipmap offsetof(decltype(_table_), field_entries), - 9, // num_field_entries + 10, // num_field_entries 3, // num_aux_entries offsetof(decltype(_table_), aux_entries), ConnectionResponseFrame_class_data_.base(), @@ -4236,7 +4242,7 @@ ConnectionResponseFrame::_table_ = { {::_pbi::TcParser::MiniParse, {}}, // optional int32 status = 1 [deprecated = true]; {::_pbi::TcParser::FastV32S1, - {8, 3, 0, + {8, 4, 0, PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_.status_)}}, // optional bytes handshake_data = 2; {::_pbi::TcParser::FastBS1, @@ -4244,33 +4250,36 @@ ConnectionResponseFrame::_table_ = { PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_.handshake_data_)}}, // optional .location.nearby.connections.ConnectionResponseFrame.ResponseStatus response = 3; {::_pbi::TcParser::FastEr0S1, - {24, 4, 2, + {24, 5, 2, PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_.response_)}}, // optional .location.nearby.connections.OsInfo os_info = 4; {::_pbi::TcParser::FastMtS1, - {34, 1, 0, + {34, 2, 0, PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_.os_info_)}}, // optional int32 multiplex_socket_bitmask = 5; {::_pbi::TcParser::FastV32S1, - {40, 5, 0, + {40, 6, 0, PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_.multiplex_socket_bitmask_)}}, // optional int32 nearby_connections_version = 6 [deprecated = true]; {::_pbi::TcParser::FastV32S1, - {48, 6, 0, + {48, 7, 0, PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_.nearby_connections_version_)}}, // optional int32 safe_to_disconnect_version = 7; {::_pbi::TcParser::FastV32S1, - {56, 7, 0, + {56, 8, 0, PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_.safe_to_disconnect_version_)}}, // optional .location.nearby.connections.LocationHint location_hint = 8; {::_pbi::TcParser::FastMtS1, - {66, 2, 1, + {66, 3, 1, PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_.location_hint_)}}, // optional int32 keep_alive_timeout_millis = 9; {::_pbi::TcParser::FastV32S1, - {72, 8, 0, + {72, 9, 0, PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_.keep_alive_timeout_millis_)}}, - {::_pbi::TcParser::MiniParse, {}}, + // optional string wifi_direct_device_name = 10; + {::_pbi::TcParser::FastBS1, + {82, 1, 0, + PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_.wifi_direct_device_name_)}}, {::_pbi::TcParser::MiniParse, {}}, {::_pbi::TcParser::MiniParse, {}}, {::_pbi::TcParser::MiniParse, {}}, @@ -4280,23 +4289,25 @@ ConnectionResponseFrame::_table_ = { 65535, 65535 }}, {{ // optional int32 status = 1 [deprecated = true]; - {PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_.status_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_.status_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // optional bytes handshake_data = 2; {PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_.handshake_data_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // optional .location.nearby.connections.ConnectionResponseFrame.ResponseStatus response = 3; - {PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_.response_), _Internal::kHasBitsOffset + 4, 2, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + {PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_.response_), _Internal::kHasBitsOffset + 5, 2, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, // optional .location.nearby.connections.OsInfo os_info = 4; - {PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_.os_info_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + {PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_.os_info_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // optional int32 multiplex_socket_bitmask = 5; - {PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_.multiplex_socket_bitmask_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_.multiplex_socket_bitmask_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // optional int32 nearby_connections_version = 6 [deprecated = true]; - {PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_.nearby_connections_version_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_.nearby_connections_version_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // optional int32 safe_to_disconnect_version = 7; - {PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_.safe_to_disconnect_version_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_.safe_to_disconnect_version_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // optional .location.nearby.connections.LocationHint location_hint = 8; - {PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_.location_hint_), _Internal::kHasBitsOffset + 2, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + {PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_.location_hint_), _Internal::kHasBitsOffset + 3, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // optional int32 keep_alive_timeout_millis = 9; - {PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_.keep_alive_timeout_millis_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_.keep_alive_timeout_millis_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional string wifi_direct_device_name = 10; + {PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_.wifi_direct_device_name_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, }}, {{ {::_pbi::TcParser::GetTable<::location::nearby::connections::OsInfo>()}, @@ -4314,25 +4325,32 @@ PROTOBUF_NOINLINE void ConnectionResponseFrame::Clear() { (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { if (CheckHasBit(cached_has_bits, 0x00000001U)) { _impl_.handshake_data_.ClearNonDefaultToEmpty(); } if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.wifi_direct_device_name_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { ABSL_DCHECK(_impl_.os_info_ != nullptr); _impl_.os_info_->Clear(); } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { ABSL_DCHECK(_impl_.location_hint_ != nullptr); _impl_.location_hint_->Clear(); } } - if (BatchCheckHasBit(cached_has_bits, 0x000000f8U)) { + if (BatchCheckHasBit(cached_has_bits, 0x000000f0U)) { ::memset(&_impl_.status_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.safe_to_disconnect_version_) - - reinterpret_cast(&_impl_.status_)) + sizeof(_impl_.safe_to_disconnect_version_)); + reinterpret_cast(&_impl_.nearby_connections_version_) - + reinterpret_cast(&_impl_.status_)) + sizeof(_impl_.nearby_connections_version_)); + } + if (BatchCheckHasBit(cached_has_bits, 0x00000300U)) { + ::memset(&_impl_.safe_to_disconnect_version_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.keep_alive_timeout_millis_) - + reinterpret_cast(&_impl_.safe_to_disconnect_version_)) + sizeof(_impl_.keep_alive_timeout_millis_)); } - _impl_.keep_alive_timeout_millis_ = 0; _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::std::string>(); } @@ -4357,7 +4375,7 @@ PROTOBUF_NOINLINE void ConnectionResponseFrame::Clear() { cached_has_bits = this_._impl_._has_bits_[0]; // optional int32 status = 1 [deprecated = true]; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>( stream, this_._internal_status(), target); @@ -4370,54 +4388,60 @@ PROTOBUF_NOINLINE void ConnectionResponseFrame::Clear() { } // optional .location.nearby.connections.ConnectionResponseFrame.ResponseStatus response = 3; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( 3, this_._internal_response(), target); } // optional .location.nearby.connections.OsInfo os_info = 4; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 4, *this_._impl_.os_info_, this_._impl_.os_info_->GetCachedSize(), target, stream); } // optional int32 multiplex_socket_bitmask = 5; - if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (CheckHasBit(cached_has_bits, 0x00000040U)) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<5>( stream, this_._internal_multiplex_socket_bitmask(), target); } // optional int32 nearby_connections_version = 6 [deprecated = true]; - if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (CheckHasBit(cached_has_bits, 0x00000080U)) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<6>( stream, this_._internal_nearby_connections_version(), target); } // optional int32 safe_to_disconnect_version = 7; - if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<7>( stream, this_._internal_safe_to_disconnect_version(), target); } // optional .location.nearby.connections.LocationHint location_hint = 8; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 8, *this_._impl_.location_hint_, this_._impl_.location_hint_->GetCachedSize(), target, stream); } // optional int32 keep_alive_timeout_millis = 9; - if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if (CheckHasBit(cached_has_bits, 0x00000200U)) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<9>( stream, this_._internal_keep_alive_timeout_millis(), target); } + // optional string wifi_direct_device_name = 10; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + const ::std::string& _s = this_._internal_wifi_direct_device_name(); + target = stream->WriteStringMaybeAliased(10, _s, target); + } + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = stream->WriteRaw( this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), @@ -4449,45 +4473,50 @@ PROTOBUF_NOINLINE void ConnectionResponseFrame::Clear() { total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( this_._internal_handshake_data()); } - // optional .location.nearby.connections.OsInfo os_info = 4; + // optional string wifi_direct_device_name = 10; if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_wifi_direct_device_name()); + } + // optional .location.nearby.connections.OsInfo os_info = 4; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.os_info_); } // optional .location.nearby.connections.LocationHint location_hint = 8; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.location_hint_); } // optional int32 status = 1 [deprecated = true]; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( this_._internal_status()); } // optional .location.nearby.connections.ConnectionResponseFrame.ResponseStatus response = 3; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this_._internal_response()); } // optional int32 multiplex_socket_bitmask = 5; - if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (CheckHasBit(cached_has_bits, 0x00000040U)) { total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( this_._internal_multiplex_socket_bitmask()); } // optional int32 nearby_connections_version = 6 [deprecated = true]; - if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (CheckHasBit(cached_has_bits, 0x00000080U)) { total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( this_._internal_nearby_connections_version()); } + } + if (BatchCheckHasBit(cached_has_bits, 0x00000300U)) { // optional int32 safe_to_disconnect_version = 7; - if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( this_._internal_safe_to_disconnect_version()); } - } - { // optional int32 keep_alive_timeout_millis = 9; - if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if (CheckHasBit(cached_has_bits, 0x00000200U)) { total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( this_._internal_keep_alive_timeout_millis()); } @@ -4519,6 +4548,9 @@ void ConnectionResponseFrame::MergeImpl(::google::protobuf::MessageLite& to_msg, _this->_internal_set_handshake_data(from._internal_handshake_data()); } if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_internal_set_wifi_direct_device_name(from._internal_wifi_direct_device_name()); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { ABSL_DCHECK(from._impl_.os_info_ != nullptr); if (_this->_impl_.os_info_ == nullptr) { _this->_impl_.os_info_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.os_info_); @@ -4526,7 +4558,7 @@ void ConnectionResponseFrame::MergeImpl(::google::protobuf::MessageLite& to_msg, _this->_impl_.os_info_->MergeFrom(*from._impl_.os_info_); } } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { ABSL_DCHECK(from._impl_.location_hint_ != nullptr); if (_this->_impl_.location_hint_ == nullptr) { _this->_impl_.location_hint_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.location_hint_); @@ -4534,24 +4566,26 @@ void ConnectionResponseFrame::MergeImpl(::google::protobuf::MessageLite& to_msg, _this->_impl_.location_hint_->MergeFrom(*from._impl_.location_hint_); } } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { _this->_impl_.status_ = from._impl_.status_; } - if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { _this->_impl_.response_ = from._impl_.response_; } - if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (CheckHasBit(cached_has_bits, 0x00000040U)) { _this->_impl_.multiplex_socket_bitmask_ = from._impl_.multiplex_socket_bitmask_; } - if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (CheckHasBit(cached_has_bits, 0x00000080U)) { _this->_impl_.nearby_connections_version_ = from._impl_.nearby_connections_version_; } - if (CheckHasBit(cached_has_bits, 0x00000080U)) { + } + if (BatchCheckHasBit(cached_has_bits, 0x00000300U)) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { _this->_impl_.safe_to_disconnect_version_ = from._impl_.safe_to_disconnect_version_; } - } - if (CheckHasBit(cached_has_bits, 0x00000100U)) { - _this->_impl_.keep_alive_timeout_millis_ = from._impl_.keep_alive_timeout_millis_; + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + _this->_impl_.keep_alive_timeout_millis_ = from._impl_.keep_alive_timeout_millis_; + } } _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::std::string>( @@ -4573,6 +4607,7 @@ void ConnectionResponseFrame::InternalSwap(ConnectionResponseFrame* PROTOBUF_RES _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.handshake_data_, &other->_impl_.handshake_data_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.wifi_direct_device_name_, &other->_impl_.wifi_direct_device_name_, arena); ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, _impl_.keep_alive_timeout_millis_) + sizeof(ConnectionResponseFrame::_impl_.keep_alive_timeout_millis_) 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 4441f499..db39782d 100644 --- a/compiled_proto/connections/implementation/proto/offline_wire_formats.pb.h +++ b/compiled_proto/connections/implementation/proto/offline_wire_formats.pb.h @@ -8114,6 +8114,7 @@ class ConnectionResponseFrame final : public ::google::protobuf::MessageLite // accessors ------------------------------------------------------- enum : int { kHandshakeDataFieldNumber = 2, + kWifiDirectDeviceNameFieldNumber = 10, kOsInfoFieldNumber = 4, kLocationHintFieldNumber = 8, kStatusFieldNumber = 1, @@ -8138,6 +8139,22 @@ class ConnectionResponseFrame final : public ::google::protobuf::MessageLite PROTOBUF_ALWAYS_INLINE void _internal_set_handshake_data(const ::std::string& value); ::std::string* PROTOBUF_NONNULL _internal_mutable_handshake_data(); + public: + // optional string wifi_direct_device_name = 10; + bool has_wifi_direct_device_name() const; + void clear_wifi_direct_device_name() ; + const ::std::string& wifi_direct_device_name() const; + template + void set_wifi_direct_device_name(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_wifi_direct_device_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_wifi_direct_device_name(); + void set_allocated_wifi_direct_device_name(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_wifi_direct_device_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_wifi_direct_device_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_wifi_direct_device_name(); + public: // optional .location.nearby.connections.OsInfo os_info = 4; bool has_os_info() const; @@ -8239,7 +8256,7 @@ class ConnectionResponseFrame final : public ::google::protobuf::MessageLite private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<4, 9, + static const ::google::protobuf::internal::TcParseTable<4, 10, 3, 0, 2> _table_; @@ -8262,6 +8279,7 @@ class ConnectionResponseFrame final : public ::google::protobuf::MessageLite ::google::protobuf::internal::HasBits<1> _has_bits_; ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr handshake_data_; + ::google::protobuf::internal::ArenaStringPtr wifi_direct_device_name_; ::location::nearby::connections::OsInfo* PROTOBUF_NULLABLE os_info_; ::location::nearby::connections::LocationHint* PROTOBUF_NULLABLE location_hint_; ::int32_t status_; @@ -13226,14 +13244,14 @@ inline ConnectionRequestFrame::DeviceCase ConnectionRequestFrame::Device_case() // optional int32 status = 1 [deprecated = true]; inline bool ConnectionResponseFrame::has_status() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); return value; } inline void ConnectionResponseFrame::clear_status() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.status_ = 0; ClearHasBit(_impl_._has_bits_[0], - 0x00000008U); + 0x00000010U); } inline ::int32_t ConnectionResponseFrame::status() const { // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionResponseFrame.status) @@ -13241,7 +13259,7 @@ inline ::int32_t ConnectionResponseFrame::status() const { } inline void ConnectionResponseFrame::set_status(::int32_t value) { _internal_set_status(value); - SetHasBit(_impl_._has_bits_[0], 0x00000008U); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:location.nearby.connections.ConnectionResponseFrame.status) } inline ::int32_t ConnectionResponseFrame::_internal_status() const { @@ -13324,14 +13342,14 @@ inline void ConnectionResponseFrame::set_allocated_handshake_data(::std::string* // optional .location.nearby.connections.ConnectionResponseFrame.ResponseStatus response = 3; inline bool ConnectionResponseFrame::has_response() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U); return value; } inline void ConnectionResponseFrame::clear_response() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.response_ = 0; ClearHasBit(_impl_._has_bits_[0], - 0x00000010U); + 0x00000020U); } inline ::location::nearby::connections::ConnectionResponseFrame_ResponseStatus ConnectionResponseFrame::response() const { // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionResponseFrame.response) @@ -13339,7 +13357,7 @@ inline ::location::nearby::connections::ConnectionResponseFrame_ResponseStatus C } inline void ConnectionResponseFrame::set_response(::location::nearby::connections::ConnectionResponseFrame_ResponseStatus value) { _internal_set_response(value); - SetHasBit(_impl_._has_bits_[0], 0x00000010U); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); // @@protoc_insertion_point(field_set:location.nearby.connections.ConnectionResponseFrame.response) } inline ::location::nearby::connections::ConnectionResponseFrame_ResponseStatus ConnectionResponseFrame::_internal_response() const { @@ -13356,7 +13374,7 @@ inline void ConnectionResponseFrame::_internal_set_response(::location::nearby:: // optional .location.nearby.connections.OsInfo os_info = 4; inline bool ConnectionResponseFrame::has_os_info() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); PROTOBUF_ASSUME(!value || _impl_.os_info_ != nullptr); return value; } @@ -13364,7 +13382,7 @@ inline void ConnectionResponseFrame::clear_os_info() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.os_info_ != nullptr) _impl_.os_info_->Clear(); ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); + 0x00000004U); } inline const ::location::nearby::connections::OsInfo& ConnectionResponseFrame::_internal_os_info() const { ::google::protobuf::internal::TSanRead(&_impl_); @@ -13383,16 +13401,16 @@ inline void ConnectionResponseFrame::unsafe_arena_set_allocated_os_info( } _impl_.os_info_ = reinterpret_cast<::location::nearby::connections::OsInfo*>(value); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.ConnectionResponseFrame.os_info) } inline ::location::nearby::connections::OsInfo* PROTOBUF_NULLABLE ConnectionResponseFrame::release_os_info() { ::google::protobuf::internal::TSanWrite(&_impl_); - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); ::location::nearby::connections::OsInfo* released = _impl_.os_info_; _impl_.os_info_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -13412,7 +13430,7 @@ inline ::location::nearby::connections::OsInfo* PROTOBUF_NULLABLE ConnectionResp ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.ConnectionResponseFrame.os_info) - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); ::location::nearby::connections::OsInfo* temp = _impl_.os_info_; _impl_.os_info_ = nullptr; return temp; @@ -13427,7 +13445,7 @@ inline ::location::nearby::connections::OsInfo* PROTOBUF_NONNULL ConnectionRespo } inline ::location::nearby::connections::OsInfo* PROTOBUF_NONNULL ConnectionResponseFrame::mutable_os_info() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); ::location::nearby::connections::OsInfo* _msg = _internal_mutable_os_info(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.ConnectionResponseFrame.os_info) return _msg; @@ -13444,9 +13462,9 @@ inline void ConnectionResponseFrame::set_allocated_os_info(::location::nearby::c if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - SetHasBit(_impl_._has_bits_[0], 0x00000002U); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } _impl_.os_info_ = reinterpret_cast<::location::nearby::connections::OsInfo*>(value); @@ -13455,14 +13473,14 @@ inline void ConnectionResponseFrame::set_allocated_os_info(::location::nearby::c // optional int32 multiplex_socket_bitmask = 5; inline bool ConnectionResponseFrame::has_multiplex_socket_bitmask() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U); + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000040U); return value; } inline void ConnectionResponseFrame::clear_multiplex_socket_bitmask() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.multiplex_socket_bitmask_ = 0; ClearHasBit(_impl_._has_bits_[0], - 0x00000020U); + 0x00000040U); } inline ::int32_t ConnectionResponseFrame::multiplex_socket_bitmask() const { // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionResponseFrame.multiplex_socket_bitmask) @@ -13470,7 +13488,7 @@ inline ::int32_t ConnectionResponseFrame::multiplex_socket_bitmask() const { } inline void ConnectionResponseFrame::set_multiplex_socket_bitmask(::int32_t value) { _internal_set_multiplex_socket_bitmask(value); - SetHasBit(_impl_._has_bits_[0], 0x00000020U); + SetHasBit(_impl_._has_bits_[0], 0x00000040U); // @@protoc_insertion_point(field_set:location.nearby.connections.ConnectionResponseFrame.multiplex_socket_bitmask) } inline ::int32_t ConnectionResponseFrame::_internal_multiplex_socket_bitmask() const { @@ -13484,14 +13502,14 @@ inline void ConnectionResponseFrame::_internal_set_multiplex_socket_bitmask(::in // optional int32 nearby_connections_version = 6 [deprecated = true]; inline bool ConnectionResponseFrame::has_nearby_connections_version() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000040U); + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000080U); return value; } inline void ConnectionResponseFrame::clear_nearby_connections_version() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.nearby_connections_version_ = 0; ClearHasBit(_impl_._has_bits_[0], - 0x00000040U); + 0x00000080U); } inline ::int32_t ConnectionResponseFrame::nearby_connections_version() const { // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionResponseFrame.nearby_connections_version) @@ -13499,7 +13517,7 @@ inline ::int32_t ConnectionResponseFrame::nearby_connections_version() const { } inline void ConnectionResponseFrame::set_nearby_connections_version(::int32_t value) { _internal_set_nearby_connections_version(value); - SetHasBit(_impl_._has_bits_[0], 0x00000040U); + SetHasBit(_impl_._has_bits_[0], 0x00000080U); // @@protoc_insertion_point(field_set:location.nearby.connections.ConnectionResponseFrame.nearby_connections_version) } inline ::int32_t ConnectionResponseFrame::_internal_nearby_connections_version() const { @@ -13513,14 +13531,14 @@ inline void ConnectionResponseFrame::_internal_set_nearby_connections_version(:: // optional int32 safe_to_disconnect_version = 7; inline bool ConnectionResponseFrame::has_safe_to_disconnect_version() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000080U); + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000100U); return value; } inline void ConnectionResponseFrame::clear_safe_to_disconnect_version() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.safe_to_disconnect_version_ = 0; ClearHasBit(_impl_._has_bits_[0], - 0x00000080U); + 0x00000100U); } inline ::int32_t ConnectionResponseFrame::safe_to_disconnect_version() const { // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionResponseFrame.safe_to_disconnect_version) @@ -13528,7 +13546,7 @@ inline ::int32_t ConnectionResponseFrame::safe_to_disconnect_version() const { } inline void ConnectionResponseFrame::set_safe_to_disconnect_version(::int32_t value) { _internal_set_safe_to_disconnect_version(value); - SetHasBit(_impl_._has_bits_[0], 0x00000080U); + SetHasBit(_impl_._has_bits_[0], 0x00000100U); // @@protoc_insertion_point(field_set:location.nearby.connections.ConnectionResponseFrame.safe_to_disconnect_version) } inline ::int32_t ConnectionResponseFrame::_internal_safe_to_disconnect_version() const { @@ -13542,7 +13560,7 @@ inline void ConnectionResponseFrame::_internal_set_safe_to_disconnect_version(:: // optional .location.nearby.connections.LocationHint location_hint = 8; inline bool ConnectionResponseFrame::has_location_hint() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); PROTOBUF_ASSUME(!value || _impl_.location_hint_ != nullptr); return value; } @@ -13550,7 +13568,7 @@ inline void ConnectionResponseFrame::clear_location_hint() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.location_hint_ != nullptr) _impl_.location_hint_->Clear(); ClearHasBit(_impl_._has_bits_[0], - 0x00000004U); + 0x00000008U); } inline const ::location::nearby::connections::LocationHint& ConnectionResponseFrame::_internal_location_hint() const { ::google::protobuf::internal::TSanRead(&_impl_); @@ -13569,16 +13587,16 @@ inline void ConnectionResponseFrame::unsafe_arena_set_allocated_location_hint( } _impl_.location_hint_ = reinterpret_cast<::location::nearby::connections::LocationHint*>(value); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000004U); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.ConnectionResponseFrame.location_hint) } inline ::location::nearby::connections::LocationHint* PROTOBUF_NULLABLE ConnectionResponseFrame::release_location_hint() { ::google::protobuf::internal::TSanWrite(&_impl_); - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); ::location::nearby::connections::LocationHint* released = _impl_.location_hint_; _impl_.location_hint_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -13598,7 +13616,7 @@ inline ::location::nearby::connections::LocationHint* PROTOBUF_NULLABLE Connecti ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:location.nearby.connections.ConnectionResponseFrame.location_hint) - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); ::location::nearby::connections::LocationHint* temp = _impl_.location_hint_; _impl_.location_hint_ = nullptr; return temp; @@ -13613,7 +13631,7 @@ inline ::location::nearby::connections::LocationHint* PROTOBUF_NONNULL Connectio } inline ::location::nearby::connections::LocationHint* PROTOBUF_NONNULL ConnectionResponseFrame::mutable_location_hint() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000004U); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); ::location::nearby::connections::LocationHint* _msg = _internal_mutable_location_hint(); // @@protoc_insertion_point(field_mutable:location.nearby.connections.ConnectionResponseFrame.location_hint) return _msg; @@ -13630,9 +13648,9 @@ inline void ConnectionResponseFrame::set_allocated_location_hint(::location::nea if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - SetHasBit(_impl_._has_bits_[0], 0x00000004U); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } _impl_.location_hint_ = reinterpret_cast<::location::nearby::connections::LocationHint*>(value); @@ -13641,14 +13659,14 @@ inline void ConnectionResponseFrame::set_allocated_location_hint(::location::nea // optional int32 keep_alive_timeout_millis = 9; inline bool ConnectionResponseFrame::has_keep_alive_timeout_millis() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000100U); + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000200U); return value; } inline void ConnectionResponseFrame::clear_keep_alive_timeout_millis() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.keep_alive_timeout_millis_ = 0; ClearHasBit(_impl_._has_bits_[0], - 0x00000100U); + 0x00000200U); } inline ::int32_t ConnectionResponseFrame::keep_alive_timeout_millis() const { // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionResponseFrame.keep_alive_timeout_millis) @@ -13656,7 +13674,7 @@ inline ::int32_t ConnectionResponseFrame::keep_alive_timeout_millis() const { } inline void ConnectionResponseFrame::set_keep_alive_timeout_millis(::int32_t value) { _internal_set_keep_alive_timeout_millis(value); - SetHasBit(_impl_._has_bits_[0], 0x00000100U); + SetHasBit(_impl_._has_bits_[0], 0x00000200U); // @@protoc_insertion_point(field_set:location.nearby.connections.ConnectionResponseFrame.keep_alive_timeout_millis) } inline ::int32_t ConnectionResponseFrame::_internal_keep_alive_timeout_millis() const { @@ -13668,6 +13686,75 @@ inline void ConnectionResponseFrame::_internal_set_keep_alive_timeout_millis(::i _impl_.keep_alive_timeout_millis_ = value; } +// optional string wifi_direct_device_name = 10; +inline bool ConnectionResponseFrame::has_wifi_direct_device_name() const { + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); + return value; +} +inline void ConnectionResponseFrame::clear_wifi_direct_device_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.wifi_direct_device_name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); +} +inline const ::std::string& ConnectionResponseFrame::wifi_direct_device_name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionResponseFrame.wifi_direct_device_name) + return _internal_wifi_direct_device_name(); +} +template +PROTOBUF_ALWAYS_INLINE void ConnectionResponseFrame::set_wifi_direct_device_name(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_.wifi_direct_device_name_.Set(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:location.nearby.connections.ConnectionResponseFrame.wifi_direct_device_name) +} +inline ::std::string* PROTOBUF_NONNULL ConnectionResponseFrame::mutable_wifi_direct_device_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_wifi_direct_device_name(); + // @@protoc_insertion_point(field_mutable:location.nearby.connections.ConnectionResponseFrame.wifi_direct_device_name) + return _s; +} +inline const ::std::string& ConnectionResponseFrame::_internal_wifi_direct_device_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.wifi_direct_device_name_.Get(); +} +inline void ConnectionResponseFrame::_internal_set_wifi_direct_device_name(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.wifi_direct_device_name_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL ConnectionResponseFrame::_internal_mutable_wifi_direct_device_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.wifi_direct_device_name_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE ConnectionResponseFrame::release_wifi_direct_device_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:location.nearby.connections.ConnectionResponseFrame.wifi_direct_device_name) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.wifi_direct_device_name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.wifi_direct_device_name_.Set("", GetArena()); + } + return released; +} +inline void ConnectionResponseFrame::set_allocated_wifi_direct_device_name(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + } + _impl_.wifi_direct_device_name_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.wifi_direct_device_name_.IsDefault()) { + _impl_.wifi_direct_device_name_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.ConnectionResponseFrame.wifi_direct_device_name) +} + // ------------------------------------------------------------------- // PayloadTransferFrame_PayloadHeader diff --git a/connections/implementation/proto/offline_wire_formats.proto b/connections/implementation/proto/offline_wire_formats.proto index f54287ec..230dab44 100644 --- a/connections/implementation/proto/offline_wire_formats.proto +++ b/connections/implementation/proto/offline_wire_formats.proto @@ -157,6 +157,7 @@ message ConnectionResponseFrame { optional int32 safe_to_disconnect_version = 7; optional LocationHint location_hint = 8; optional int32 keep_alive_timeout_millis = 9; + optional string wifi_direct_device_name = 10; } message PayloadTransferFrame {