// Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: internal/proto/metadata.proto // Protobuf C++ Version: 6.33.3 #ifndef internal_2fproto_2fmetadata_2eproto_2epb_2eh #define internal_2fproto_2fmetadata_2eproto_2epb_2eh #include #include #include #include #include "google/protobuf/runtime_version.h" #if PROTOBUF_VERSION != 6033003 #error "Protobuf C++ gencode is built with an incompatible version of" #error "Protobuf C++ headers/runtime. See" #error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" #endif #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/arena.h" #include "google/protobuf/arenastring.h" #include "google/protobuf/generated_message_tctable_decl.h" #include "google/protobuf/generated_message_util.h" #include "google/protobuf/metadata_lite.h" #include "google/protobuf/message_lite.h" #include "google/protobuf/repeated_field.h" // IWYU pragma: export #include "google/protobuf/extension_set.h" // IWYU pragma: export #include "google/protobuf/generated_enum_util.h" #include "internal/proto/credential.pb.h" // @@protoc_insertion_point(includes) // Must be included last. #include "google/protobuf/port_def.inc" #define PROTOBUF_INTERNAL_EXPORT_internal_2fproto_2fmetadata_2eproto namespace google { namespace protobuf { namespace internal { template ::absl::string_view GetAnyMessageName(); } // namespace internal } // namespace protobuf } // namespace google // Internal implementation detail -- do not use these members. struct TableStruct_internal_2fproto_2fmetadata_2eproto { static const ::uint32_t offsets[]; }; namespace nearby { namespace internal { enum DeviceType : int; extern const uint32_t DeviceType_internal_data_[]; enum InstanceType : int; extern const uint32_t InstanceType_internal_data_[]; class DeviceIdentityMetaData; struct DeviceIdentityMetaDataDefaultTypeInternal; extern DeviceIdentityMetaDataDefaultTypeInternal _DeviceIdentityMetaData_default_instance_; extern const ::google::protobuf::internal::ClassDataLite<39> DeviceIdentityMetaData_class_data_; class Metadata; struct MetadataDefaultTypeInternal; extern MetadataDefaultTypeInternal _Metadata_default_instance_; extern const ::google::protobuf::internal::ClassDataLite<25> Metadata_class_data_; class PresenceIdentity; struct PresenceIdentityDefaultTypeInternal; extern PresenceIdentityDefaultTypeInternal _PresenceIdentity_default_instance_; extern const ::google::protobuf::internal::ClassDataLite<33> PresenceIdentity_class_data_; } // namespace internal } // namespace nearby namespace google { namespace protobuf { template <> internal::EnumTraitsT<::nearby::internal::DeviceType_internal_data_> internal::EnumTraitsImpl::value<::nearby::internal::DeviceType>; template <> internal::EnumTraitsT<::nearby::internal::InstanceType_internal_data_> internal::EnumTraitsImpl::value<::nearby::internal::InstanceType>; } // namespace protobuf } // namespace google namespace nearby { namespace internal { enum DeviceType : int { DEVICE_TYPE_UNKNOWN = 0, DEVICE_TYPE_PHONE = 1, DEVICE_TYPE_TABLET = 2, DEVICE_TYPE_DISPLAY = 3, DEVICE_TYPE_LAPTOP = 4, DEVICE_TYPE_TV = 5, DEVICE_TYPE_WATCH = 6, DEVICE_TYPE_CHROMEOS = 7, DEVICE_TYPE_FOLDABLE = 8, DEVICE_TYPE_AUTOMOTIVE = 9, DEVICE_TYPE_SPEAKER = 10, DeviceType_INT_MIN_SENTINEL_DO_NOT_USE_ = ::std::numeric_limits<::int32_t>::min(), DeviceType_INT_MAX_SENTINEL_DO_NOT_USE_ = ::std::numeric_limits<::int32_t>::max(), }; extern const uint32_t DeviceType_internal_data_[]; inline constexpr DeviceType DeviceType_MIN = static_cast(0); inline constexpr DeviceType DeviceType_MAX = static_cast(10); inline bool DeviceType_IsValid(int value) { return 0 <= value && value <= 10; } inline constexpr int DeviceType_ARRAYSIZE = 10 + 1; const ::std::string& DeviceType_Name(DeviceType value); template const ::std::string& DeviceType_Name(T value) { static_assert(::std::is_same::value || ::std::is_integral::value, "Incorrect type passed to DeviceType_Name()."); return DeviceType_Name(static_cast(value)); } bool DeviceType_Parse( ::absl::string_view name, DeviceType* PROTOBUF_NONNULL value); enum InstanceType : int { INSTANCE_TYPE_UNKNOWN = 0, INSTANCE_TYPE_MAIN = 1, INSTANCE_TYPE_SECONDARY = 2, InstanceType_INT_MIN_SENTINEL_DO_NOT_USE_ = ::std::numeric_limits<::int32_t>::min(), InstanceType_INT_MAX_SENTINEL_DO_NOT_USE_ = ::std::numeric_limits<::int32_t>::max(), }; extern const uint32_t InstanceType_internal_data_[]; inline constexpr InstanceType InstanceType_MIN = static_cast(0); inline constexpr InstanceType InstanceType_MAX = static_cast(2); inline bool InstanceType_IsValid(int value) { return 0 <= value && value <= 2; } inline constexpr int InstanceType_ARRAYSIZE = 2 + 1; const ::std::string& InstanceType_Name(InstanceType value); template const ::std::string& InstanceType_Name(T value) { static_assert(::std::is_same::value || ::std::is_integral::value, "Incorrect type passed to InstanceType_Name()."); return InstanceType_Name(static_cast(value)); } bool InstanceType_Parse( ::absl::string_view name, InstanceType* PROTOBUF_NONNULL value); // =================================================================== // ------------------------------------------------------------------- class PresenceIdentity final : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:nearby.internal.PresenceIdentity) */ { public: inline PresenceIdentity() : PresenceIdentity(nullptr) {} ~PresenceIdentity() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) void operator delete(PresenceIdentity* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(PresenceIdentity)); } #endif template explicit PROTOBUF_CONSTEXPR PresenceIdentity(::google::protobuf::internal::ConstantInitialized); inline PresenceIdentity(const PresenceIdentity& from) : PresenceIdentity(nullptr, from) {} inline PresenceIdentity(PresenceIdentity&& from) noexcept : PresenceIdentity(nullptr, ::std::move(from)) {} inline PresenceIdentity& operator=(const PresenceIdentity& from) { CopyFrom(from); return *this; } inline PresenceIdentity& operator=(PresenceIdentity&& from) noexcept { if (this == &from) return *this; if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); } return *this; } inline const ::std::string& unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::std::string>(); } static const PresenceIdentity& default_instance() { return *reinterpret_cast( &_PresenceIdentity_default_instance_); } static constexpr int kIndexInFileMessages = 1; friend void swap(PresenceIdentity& a, PresenceIdentity& b) { a.Swap(&b); } inline void Swap(PresenceIdentity* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(PresenceIdentity* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- PresenceIdentity* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::MessageLite::DefaultConstruct(arena); } void CopyFrom(const PresenceIdentity& from); void MergeFrom(const PresenceIdentity& from) { PresenceIdentity::MergeImpl(*this, from); } private: static void MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); void InternalSwap(PresenceIdentity* PROTOBUF_NONNULL other); private: template friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "nearby.internal.PresenceIdentity"; } explicit PresenceIdentity(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); PresenceIdentity(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const PresenceIdentity& from); PresenceIdentity( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, PresenceIdentity&& from) noexcept : PresenceIdentity(arena) { *this = ::std::move(from); } const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; static void* PROTOBUF_NONNULL PlacementNew_( const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); public: static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kIdentityProviderNameFieldNumber = 2, kIdentityTypeFieldNumber = 1, }; // string identity_provider_name = 2; void clear_identity_provider_name() ; const ::std::string& identity_provider_name() const; template void set_identity_provider_name(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_identity_provider_name(); [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_identity_provider_name(); void set_allocated_identity_provider_name(::std::string* PROTOBUF_NULLABLE value); private: const ::std::string& _internal_identity_provider_name() const; PROTOBUF_ALWAYS_INLINE void _internal_set_identity_provider_name(const ::std::string& value); ::std::string* PROTOBUF_NONNULL _internal_mutable_identity_provider_name(); public: // .nearby.internal.IdentityType identity_type = 1; void clear_identity_type() ; ::nearby::internal::IdentityType identity_type() const; void set_identity_type(::nearby::internal::IdentityType value); private: ::nearby::internal::IdentityType _internal_identity_type() const; void _internal_set_identity_type(::nearby::internal::IdentityType value); public: // @@protoc_insertion_point(class_scope:nearby.internal.PresenceIdentity) private: class _Internal; friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable<1, 2, 0, 63, 2> _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template friend class ::google::protobuf::Arena::InternalHelper; using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, const PresenceIdentity& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr identity_provider_name_; int identity_type_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_internal_2fproto_2fmetadata_2eproto; }; extern const ::google::protobuf::internal::ClassDataLite<33> PresenceIdentity_class_data_; // ------------------------------------------------------------------- class Metadata final : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:nearby.internal.Metadata) */ { public: inline Metadata() : Metadata(nullptr) {} ~Metadata() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) void operator delete(Metadata* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(Metadata)); } #endif template explicit PROTOBUF_CONSTEXPR Metadata(::google::protobuf::internal::ConstantInitialized); inline Metadata(const Metadata& from) : Metadata(nullptr, from) {} inline Metadata(Metadata&& from) noexcept : Metadata(nullptr, ::std::move(from)) {} inline Metadata& operator=(const Metadata& from) { CopyFrom(from); return *this; } inline Metadata& operator=(Metadata&& from) noexcept { if (this == &from) return *this; if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); } return *this; } inline const ::std::string& unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::std::string>(); } static const Metadata& default_instance() { return *reinterpret_cast( &_Metadata_default_instance_); } static constexpr int kIndexInFileMessages = 2; friend void swap(Metadata& a, Metadata& b) { a.Swap(&b); } inline void Swap(Metadata* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(Metadata* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- Metadata* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::MessageLite::DefaultConstruct(arena); } void CopyFrom(const Metadata& from); void MergeFrom(const Metadata& from) { Metadata::MergeImpl(*this, from); } private: static void MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); void InternalSwap(Metadata* PROTOBUF_NONNULL other); private: template friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "nearby.internal.Metadata"; } explicit Metadata(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); Metadata(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Metadata& from); Metadata( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Metadata&& from) noexcept : Metadata(arena) { *this = ::std::move(from); } const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; static void* PROTOBUF_NONNULL PlacementNew_( const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); public: static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kAccountNameFieldNumber = 2, kDeviceNameFieldNumber = 3, kUserNameFieldNumber = 4, kDeviceProfileUrlFieldNumber = 5, kBluetoothMacAddressFieldNumber = 6, kDeviceTypeFieldNumber = 1, kInstanceTypeFieldNumber = 7, }; // string account_name = 2; void clear_account_name() ; const ::std::string& account_name() const; template void set_account_name(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_account_name(); [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_account_name(); void set_allocated_account_name(::std::string* PROTOBUF_NULLABLE value); private: const ::std::string& _internal_account_name() const; PROTOBUF_ALWAYS_INLINE void _internal_set_account_name(const ::std::string& value); ::std::string* PROTOBUF_NONNULL _internal_mutable_account_name(); public: // string device_name = 3; void clear_device_name() ; const ::std::string& device_name() const; template void set_device_name(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_device_name(); [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_device_name(); void set_allocated_device_name(::std::string* PROTOBUF_NULLABLE value); private: const ::std::string& _internal_device_name() const; PROTOBUF_ALWAYS_INLINE void _internal_set_device_name(const ::std::string& value); ::std::string* PROTOBUF_NONNULL _internal_mutable_device_name(); public: // string user_name = 4; void clear_user_name() ; const ::std::string& user_name() const; template void set_user_name(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_user_name(); [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_user_name(); void set_allocated_user_name(::std::string* PROTOBUF_NULLABLE value); private: const ::std::string& _internal_user_name() const; PROTOBUF_ALWAYS_INLINE void _internal_set_user_name(const ::std::string& value); ::std::string* PROTOBUF_NONNULL _internal_mutable_user_name(); public: // string device_profile_url = 5; void clear_device_profile_url() ; const ::std::string& device_profile_url() const; template void set_device_profile_url(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_device_profile_url(); [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_device_profile_url(); void set_allocated_device_profile_url(::std::string* PROTOBUF_NULLABLE value); private: const ::std::string& _internal_device_profile_url() const; PROTOBUF_ALWAYS_INLINE void _internal_set_device_profile_url(const ::std::string& value); ::std::string* PROTOBUF_NONNULL _internal_mutable_device_profile_url(); public: // bytes bluetooth_mac_address = 6; void clear_bluetooth_mac_address() ; const ::std::string& bluetooth_mac_address() const; template void set_bluetooth_mac_address(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_bluetooth_mac_address(); [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_bluetooth_mac_address(); void set_allocated_bluetooth_mac_address(::std::string* PROTOBUF_NULLABLE value); private: const ::std::string& _internal_bluetooth_mac_address() const; PROTOBUF_ALWAYS_INLINE void _internal_set_bluetooth_mac_address(const ::std::string& value); ::std::string* PROTOBUF_NONNULL _internal_mutable_bluetooth_mac_address(); public: // .nearby.internal.DeviceType device_type = 1; void clear_device_type() ; ::nearby::internal::DeviceType device_type() const; void set_device_type(::nearby::internal::DeviceType value); private: ::nearby::internal::DeviceType _internal_device_type() const; void _internal_set_device_type(::nearby::internal::DeviceType value); public: // .nearby.internal.InstanceType instance_type = 7; void clear_instance_type() ; ::nearby::internal::InstanceType instance_type() const; void set_instance_type(::nearby::internal::InstanceType value); private: ::nearby::internal::InstanceType _internal_instance_type() const; void _internal_set_instance_type(::nearby::internal::InstanceType value); public: // @@protoc_insertion_point(class_scope:nearby.internal.Metadata) private: class _Internal; friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable<3, 7, 0, 83, 2> _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template friend class ::google::protobuf::Arena::InternalHelper; using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, const Metadata& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr account_name_; ::google::protobuf::internal::ArenaStringPtr device_name_; ::google::protobuf::internal::ArenaStringPtr user_name_; ::google::protobuf::internal::ArenaStringPtr device_profile_url_; ::google::protobuf::internal::ArenaStringPtr bluetooth_mac_address_; int device_type_; int instance_type_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_internal_2fproto_2fmetadata_2eproto; }; extern const ::google::protobuf::internal::ClassDataLite<25> Metadata_class_data_; // ------------------------------------------------------------------- class DeviceIdentityMetaData final : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:nearby.internal.DeviceIdentityMetaData) */ { public: inline DeviceIdentityMetaData() : DeviceIdentityMetaData(nullptr) {} ~DeviceIdentityMetaData() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) void operator delete(DeviceIdentityMetaData* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(DeviceIdentityMetaData)); } #endif template explicit PROTOBUF_CONSTEXPR DeviceIdentityMetaData(::google::protobuf::internal::ConstantInitialized); inline DeviceIdentityMetaData(const DeviceIdentityMetaData& from) : DeviceIdentityMetaData(nullptr, from) {} inline DeviceIdentityMetaData(DeviceIdentityMetaData&& from) noexcept : DeviceIdentityMetaData(nullptr, ::std::move(from)) {} inline DeviceIdentityMetaData& operator=(const DeviceIdentityMetaData& from) { CopyFrom(from); return *this; } inline DeviceIdentityMetaData& operator=(DeviceIdentityMetaData&& from) noexcept { if (this == &from) return *this; if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); } return *this; } inline const ::std::string& unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::std::string>(); } static const DeviceIdentityMetaData& default_instance() { return *reinterpret_cast( &_DeviceIdentityMetaData_default_instance_); } static constexpr int kIndexInFileMessages = 0; friend void swap(DeviceIdentityMetaData& a, DeviceIdentityMetaData& b) { a.Swap(&b); } inline void Swap(DeviceIdentityMetaData* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(DeviceIdentityMetaData* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- DeviceIdentityMetaData* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::MessageLite::DefaultConstruct(arena); } void CopyFrom(const DeviceIdentityMetaData& from); void MergeFrom(const DeviceIdentityMetaData& from) { DeviceIdentityMetaData::MergeImpl(*this, from); } private: static void MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); void InternalSwap(DeviceIdentityMetaData* PROTOBUF_NONNULL other); private: template friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "nearby.internal.DeviceIdentityMetaData"; } explicit DeviceIdentityMetaData(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); DeviceIdentityMetaData(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const DeviceIdentityMetaData& from); DeviceIdentityMetaData( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, DeviceIdentityMetaData&& from) noexcept : DeviceIdentityMetaData(arena) { *this = ::std::move(from); } const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; static void* PROTOBUF_NONNULL PlacementNew_( const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); public: static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kDeviceNameFieldNumber = 2, kBluetoothMacAddressFieldNumber = 3, kDeviceIdFieldNumber = 5, kDeviceModelNameFieldNumber = 6, kDeviceManufacturerFieldNumber = 7, kIdentityFieldNumber = 8, kDeviceTypeFieldNumber = 1, kInstanceTypeFieldNumber = 4, }; // string device_name = 2; void clear_device_name() ; const ::std::string& device_name() const; template void set_device_name(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_device_name(); [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_device_name(); void set_allocated_device_name(::std::string* PROTOBUF_NULLABLE value); private: const ::std::string& _internal_device_name() const; PROTOBUF_ALWAYS_INLINE void _internal_set_device_name(const ::std::string& value); ::std::string* PROTOBUF_NONNULL _internal_mutable_device_name(); public: // bytes bluetooth_mac_address = 3; void clear_bluetooth_mac_address() ; const ::std::string& bluetooth_mac_address() const; template void set_bluetooth_mac_address(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_bluetooth_mac_address(); [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_bluetooth_mac_address(); void set_allocated_bluetooth_mac_address(::std::string* PROTOBUF_NULLABLE value); private: const ::std::string& _internal_bluetooth_mac_address() const; PROTOBUF_ALWAYS_INLINE void _internal_set_bluetooth_mac_address(const ::std::string& value); ::std::string* PROTOBUF_NONNULL _internal_mutable_bluetooth_mac_address(); public: // bytes device_id = 5; void clear_device_id() ; const ::std::string& device_id() const; template void set_device_id(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_device_id(); [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_device_id(); void set_allocated_device_id(::std::string* PROTOBUF_NULLABLE value); private: const ::std::string& _internal_device_id() const; PROTOBUF_ALWAYS_INLINE void _internal_set_device_id(const ::std::string& value); ::std::string* PROTOBUF_NONNULL _internal_mutable_device_id(); public: // string device_model_name = 6; void clear_device_model_name() ; const ::std::string& device_model_name() const; template void set_device_model_name(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_device_model_name(); [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_device_model_name(); void set_allocated_device_model_name(::std::string* PROTOBUF_NULLABLE value); private: const ::std::string& _internal_device_model_name() const; PROTOBUF_ALWAYS_INLINE void _internal_set_device_model_name(const ::std::string& value); ::std::string* PROTOBUF_NONNULL _internal_mutable_device_model_name(); public: // string device_manufacturer = 7; void clear_device_manufacturer() ; const ::std::string& device_manufacturer() const; template void set_device_manufacturer(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_device_manufacturer(); [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_device_manufacturer(); void set_allocated_device_manufacturer(::std::string* PROTOBUF_NULLABLE value); private: const ::std::string& _internal_device_manufacturer() const; PROTOBUF_ALWAYS_INLINE void _internal_set_device_manufacturer(const ::std::string& value); ::std::string* PROTOBUF_NONNULL _internal_mutable_device_manufacturer(); public: // .nearby.internal.PresenceIdentity identity = 8; bool has_identity() const; void clear_identity() ; const ::nearby::internal::PresenceIdentity& identity() const; [[nodiscard]] ::nearby::internal::PresenceIdentity* PROTOBUF_NULLABLE release_identity(); ::nearby::internal::PresenceIdentity* PROTOBUF_NONNULL mutable_identity(); void set_allocated_identity(::nearby::internal::PresenceIdentity* PROTOBUF_NULLABLE value); void unsafe_arena_set_allocated_identity(::nearby::internal::PresenceIdentity* PROTOBUF_NULLABLE value); ::nearby::internal::PresenceIdentity* PROTOBUF_NULLABLE unsafe_arena_release_identity(); private: const ::nearby::internal::PresenceIdentity& _internal_identity() const; ::nearby::internal::PresenceIdentity* PROTOBUF_NONNULL _internal_mutable_identity(); public: // .nearby.internal.DeviceType device_type = 1; void clear_device_type() ; ::nearby::internal::DeviceType device_type() const; void set_device_type(::nearby::internal::DeviceType value); private: ::nearby::internal::DeviceType _internal_device_type() const; void _internal_set_device_type(::nearby::internal::DeviceType value); public: // .nearby.internal.InstanceType instance_type = 4; void clear_instance_type() ; ::nearby::internal::InstanceType instance_type() const; void set_instance_type(::nearby::internal::InstanceType value); private: ::nearby::internal::InstanceType _internal_instance_type() const; void _internal_set_instance_type(::nearby::internal::InstanceType value); public: // @@protoc_insertion_point(class_scope:nearby.internal.DeviceIdentityMetaData) private: class _Internal; friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable<3, 8, 1, 102, 2> _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template friend class ::google::protobuf::Arena::InternalHelper; using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, const DeviceIdentityMetaData& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr device_name_; ::google::protobuf::internal::ArenaStringPtr bluetooth_mac_address_; ::google::protobuf::internal::ArenaStringPtr device_id_; ::google::protobuf::internal::ArenaStringPtr device_model_name_; ::google::protobuf::internal::ArenaStringPtr device_manufacturer_; ::nearby::internal::PresenceIdentity* PROTOBUF_NULLABLE identity_; int device_type_; int instance_type_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_internal_2fproto_2fmetadata_2eproto; }; extern const ::google::protobuf::internal::ClassDataLite<39> DeviceIdentityMetaData_class_data_; // =================================================================== // =================================================================== #ifdef __GNUC__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ // ------------------------------------------------------------------- // DeviceIdentityMetaData // .nearby.internal.DeviceType device_type = 1; inline void DeviceIdentityMetaData::clear_device_type() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.device_type_ = 0; ClearHasBit(_impl_._has_bits_[0], 0x00000040U); } inline ::nearby::internal::DeviceType DeviceIdentityMetaData::device_type() const { // @@protoc_insertion_point(field_get:nearby.internal.DeviceIdentityMetaData.device_type) return _internal_device_type(); } inline void DeviceIdentityMetaData::set_device_type(::nearby::internal::DeviceType value) { _internal_set_device_type(value); SetHasBit(_impl_._has_bits_[0], 0x00000040U); // @@protoc_insertion_point(field_set:nearby.internal.DeviceIdentityMetaData.device_type) } inline ::nearby::internal::DeviceType DeviceIdentityMetaData::_internal_device_type() const { ::google::protobuf::internal::TSanRead(&_impl_); return static_cast<::nearby::internal::DeviceType>(_impl_.device_type_); } inline void DeviceIdentityMetaData::_internal_set_device_type(::nearby::internal::DeviceType value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.device_type_ = value; } // string device_name = 2; inline void DeviceIdentityMetaData::clear_device_name() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.device_name_.ClearToEmpty(); ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } inline const ::std::string& DeviceIdentityMetaData::device_name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.internal.DeviceIdentityMetaData.device_name) return _internal_device_name(); } template PROTOBUF_ALWAYS_INLINE void DeviceIdentityMetaData::set_device_name(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); SetHasBit(_impl_._has_bits_[0], 0x00000001U); _impl_.device_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:nearby.internal.DeviceIdentityMetaData.device_name) } inline ::std::string* PROTOBUF_NONNULL DeviceIdentityMetaData::mutable_device_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::std::string* _s = _internal_mutable_device_name(); // @@protoc_insertion_point(field_mutable:nearby.internal.DeviceIdentityMetaData.device_name) return _s; } inline const ::std::string& DeviceIdentityMetaData::_internal_device_name() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.device_name_.Get(); } inline void DeviceIdentityMetaData::_internal_set_device_name(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.device_name_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL DeviceIdentityMetaData::_internal_mutable_device_name() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.device_name_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE DeviceIdentityMetaData::release_device_name() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.internal.DeviceIdentityMetaData.device_name) if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } ClearHasBit(_impl_._has_bits_[0], 0x00000001U); auto* released = _impl_.device_name_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.device_name_.Set("", GetArena()); } return released; } inline void DeviceIdentityMetaData::set_allocated_device_name(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } _impl_.device_name_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.device_name_.IsDefault()) { _impl_.device_name_.Set("", GetArena()); } // @@protoc_insertion_point(field_set_allocated:nearby.internal.DeviceIdentityMetaData.device_name) } // bytes bluetooth_mac_address = 3; inline void DeviceIdentityMetaData::clear_bluetooth_mac_address() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.bluetooth_mac_address_.ClearToEmpty(); ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } inline const ::std::string& DeviceIdentityMetaData::bluetooth_mac_address() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.internal.DeviceIdentityMetaData.bluetooth_mac_address) return _internal_bluetooth_mac_address(); } template PROTOBUF_ALWAYS_INLINE void DeviceIdentityMetaData::set_bluetooth_mac_address(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); SetHasBit(_impl_._has_bits_[0], 0x00000002U); _impl_.bluetooth_mac_address_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:nearby.internal.DeviceIdentityMetaData.bluetooth_mac_address) } inline ::std::string* PROTOBUF_NONNULL DeviceIdentityMetaData::mutable_bluetooth_mac_address() ABSL_ATTRIBUTE_LIFETIME_BOUND { SetHasBit(_impl_._has_bits_[0], 0x00000002U); ::std::string* _s = _internal_mutable_bluetooth_mac_address(); // @@protoc_insertion_point(field_mutable:nearby.internal.DeviceIdentityMetaData.bluetooth_mac_address) return _s; } inline const ::std::string& DeviceIdentityMetaData::_internal_bluetooth_mac_address() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.bluetooth_mac_address_.Get(); } inline void DeviceIdentityMetaData::_internal_set_bluetooth_mac_address(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.bluetooth_mac_address_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL DeviceIdentityMetaData::_internal_mutable_bluetooth_mac_address() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.bluetooth_mac_address_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE DeviceIdentityMetaData::release_bluetooth_mac_address() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.internal.DeviceIdentityMetaData.bluetooth_mac_address) if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { return nullptr; } ClearHasBit(_impl_._has_bits_[0], 0x00000002U); auto* released = _impl_.bluetooth_mac_address_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.bluetooth_mac_address_.Set("", GetArena()); } return released; } inline void DeviceIdentityMetaData::set_allocated_bluetooth_mac_address(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } _impl_.bluetooth_mac_address_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.bluetooth_mac_address_.IsDefault()) { _impl_.bluetooth_mac_address_.Set("", GetArena()); } // @@protoc_insertion_point(field_set_allocated:nearby.internal.DeviceIdentityMetaData.bluetooth_mac_address) } // .nearby.internal.InstanceType instance_type = 4; inline void DeviceIdentityMetaData::clear_instance_type() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.instance_type_ = 0; ClearHasBit(_impl_._has_bits_[0], 0x00000080U); } inline ::nearby::internal::InstanceType DeviceIdentityMetaData::instance_type() const { // @@protoc_insertion_point(field_get:nearby.internal.DeviceIdentityMetaData.instance_type) return _internal_instance_type(); } inline void DeviceIdentityMetaData::set_instance_type(::nearby::internal::InstanceType value) { _internal_set_instance_type(value); SetHasBit(_impl_._has_bits_[0], 0x00000080U); // @@protoc_insertion_point(field_set:nearby.internal.DeviceIdentityMetaData.instance_type) } inline ::nearby::internal::InstanceType DeviceIdentityMetaData::_internal_instance_type() const { ::google::protobuf::internal::TSanRead(&_impl_); return static_cast<::nearby::internal::InstanceType>(_impl_.instance_type_); } inline void DeviceIdentityMetaData::_internal_set_instance_type(::nearby::internal::InstanceType value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.instance_type_ = value; } // bytes device_id = 5; inline void DeviceIdentityMetaData::clear_device_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.device_id_.ClearToEmpty(); ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } inline const ::std::string& DeviceIdentityMetaData::device_id() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.internal.DeviceIdentityMetaData.device_id) return _internal_device_id(); } template PROTOBUF_ALWAYS_INLINE void DeviceIdentityMetaData::set_device_id(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); SetHasBit(_impl_._has_bits_[0], 0x00000004U); _impl_.device_id_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:nearby.internal.DeviceIdentityMetaData.device_id) } inline ::std::string* PROTOBUF_NONNULL DeviceIdentityMetaData::mutable_device_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { SetHasBit(_impl_._has_bits_[0], 0x00000004U); ::std::string* _s = _internal_mutable_device_id(); // @@protoc_insertion_point(field_mutable:nearby.internal.DeviceIdentityMetaData.device_id) return _s; } inline const ::std::string& DeviceIdentityMetaData::_internal_device_id() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.device_id_.Get(); } inline void DeviceIdentityMetaData::_internal_set_device_id(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.device_id_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL DeviceIdentityMetaData::_internal_mutable_device_id() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.device_id_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE DeviceIdentityMetaData::release_device_id() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.internal.DeviceIdentityMetaData.device_id) if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { return nullptr; } ClearHasBit(_impl_._has_bits_[0], 0x00000004U); auto* released = _impl_.device_id_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.device_id_.Set("", GetArena()); } return released; } inline void DeviceIdentityMetaData::set_allocated_device_id(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } _impl_.device_id_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.device_id_.IsDefault()) { _impl_.device_id_.Set("", GetArena()); } // @@protoc_insertion_point(field_set_allocated:nearby.internal.DeviceIdentityMetaData.device_id) } // string device_model_name = 6; inline void DeviceIdentityMetaData::clear_device_model_name() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.device_model_name_.ClearToEmpty(); ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } inline const ::std::string& DeviceIdentityMetaData::device_model_name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.internal.DeviceIdentityMetaData.device_model_name) return _internal_device_model_name(); } template PROTOBUF_ALWAYS_INLINE void DeviceIdentityMetaData::set_device_model_name(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); SetHasBit(_impl_._has_bits_[0], 0x00000008U); _impl_.device_model_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:nearby.internal.DeviceIdentityMetaData.device_model_name) } inline ::std::string* PROTOBUF_NONNULL DeviceIdentityMetaData::mutable_device_model_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { SetHasBit(_impl_._has_bits_[0], 0x00000008U); ::std::string* _s = _internal_mutable_device_model_name(); // @@protoc_insertion_point(field_mutable:nearby.internal.DeviceIdentityMetaData.device_model_name) return _s; } inline const ::std::string& DeviceIdentityMetaData::_internal_device_model_name() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.device_model_name_.Get(); } inline void DeviceIdentityMetaData::_internal_set_device_model_name(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.device_model_name_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL DeviceIdentityMetaData::_internal_mutable_device_model_name() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.device_model_name_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE DeviceIdentityMetaData::release_device_model_name() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.internal.DeviceIdentityMetaData.device_model_name) if (!CheckHasBit(_impl_._has_bits_[0], 0x00000008U)) { return nullptr; } ClearHasBit(_impl_._has_bits_[0], 0x00000008U); auto* released = _impl_.device_model_name_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.device_model_name_.Set("", GetArena()); } return released; } inline void DeviceIdentityMetaData::set_allocated_device_model_name(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { SetHasBit(_impl_._has_bits_[0], 0x00000008U); } else { ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } _impl_.device_model_name_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.device_model_name_.IsDefault()) { _impl_.device_model_name_.Set("", GetArena()); } // @@protoc_insertion_point(field_set_allocated:nearby.internal.DeviceIdentityMetaData.device_model_name) } // string device_manufacturer = 7; inline void DeviceIdentityMetaData::clear_device_manufacturer() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.device_manufacturer_.ClearToEmpty(); ClearHasBit(_impl_._has_bits_[0], 0x00000010U); } inline const ::std::string& DeviceIdentityMetaData::device_manufacturer() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.internal.DeviceIdentityMetaData.device_manufacturer) return _internal_device_manufacturer(); } template PROTOBUF_ALWAYS_INLINE void DeviceIdentityMetaData::set_device_manufacturer(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); SetHasBit(_impl_._has_bits_[0], 0x00000010U); _impl_.device_manufacturer_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:nearby.internal.DeviceIdentityMetaData.device_manufacturer) } inline ::std::string* PROTOBUF_NONNULL DeviceIdentityMetaData::mutable_device_manufacturer() ABSL_ATTRIBUTE_LIFETIME_BOUND { SetHasBit(_impl_._has_bits_[0], 0x00000010U); ::std::string* _s = _internal_mutable_device_manufacturer(); // @@protoc_insertion_point(field_mutable:nearby.internal.DeviceIdentityMetaData.device_manufacturer) return _s; } inline const ::std::string& DeviceIdentityMetaData::_internal_device_manufacturer() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.device_manufacturer_.Get(); } inline void DeviceIdentityMetaData::_internal_set_device_manufacturer(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.device_manufacturer_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL DeviceIdentityMetaData::_internal_mutable_device_manufacturer() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.device_manufacturer_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE DeviceIdentityMetaData::release_device_manufacturer() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.internal.DeviceIdentityMetaData.device_manufacturer) if (!CheckHasBit(_impl_._has_bits_[0], 0x00000010U)) { return nullptr; } ClearHasBit(_impl_._has_bits_[0], 0x00000010U); auto* released = _impl_.device_manufacturer_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.device_manufacturer_.Set("", GetArena()); } return released; } inline void DeviceIdentityMetaData::set_allocated_device_manufacturer(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { SetHasBit(_impl_._has_bits_[0], 0x00000010U); } else { ClearHasBit(_impl_._has_bits_[0], 0x00000010U); } _impl_.device_manufacturer_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.device_manufacturer_.IsDefault()) { _impl_.device_manufacturer_.Set("", GetArena()); } // @@protoc_insertion_point(field_set_allocated:nearby.internal.DeviceIdentityMetaData.device_manufacturer) } // .nearby.internal.PresenceIdentity identity = 8; inline bool DeviceIdentityMetaData::has_identity() const { bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U); PROTOBUF_ASSUME(!value || _impl_.identity_ != nullptr); return value; } inline void DeviceIdentityMetaData::clear_identity() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.identity_ != nullptr) _impl_.identity_->Clear(); ClearHasBit(_impl_._has_bits_[0], 0x00000020U); } inline const ::nearby::internal::PresenceIdentity& DeviceIdentityMetaData::_internal_identity() const { ::google::protobuf::internal::TSanRead(&_impl_); const ::nearby::internal::PresenceIdentity* p = _impl_.identity_; return p != nullptr ? *p : reinterpret_cast(::nearby::internal::_PresenceIdentity_default_instance_); } inline const ::nearby::internal::PresenceIdentity& DeviceIdentityMetaData::identity() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.internal.DeviceIdentityMetaData.identity) return _internal_identity(); } inline void DeviceIdentityMetaData::unsafe_arena_set_allocated_identity( ::nearby::internal::PresenceIdentity* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.identity_); } _impl_.identity_ = reinterpret_cast<::nearby::internal::PresenceIdentity*>(value); if (value != nullptr) { SetHasBit(_impl_._has_bits_[0], 0x00000020U); } else { ClearHasBit(_impl_._has_bits_[0], 0x00000020U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.internal.DeviceIdentityMetaData.identity) } inline ::nearby::internal::PresenceIdentity* PROTOBUF_NULLABLE DeviceIdentityMetaData::release_identity() { ::google::protobuf::internal::TSanWrite(&_impl_); ClearHasBit(_impl_._has_bits_[0], 0x00000020U); ::nearby::internal::PresenceIdentity* released = _impl_.identity_; _impl_.identity_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); if (GetArena() == nullptr) { delete old; } } else { if (GetArena() != nullptr) { released = ::google::protobuf::internal::DuplicateIfNonNull(released); } } return released; } inline ::nearby::internal::PresenceIdentity* PROTOBUF_NULLABLE DeviceIdentityMetaData::unsafe_arena_release_identity() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.internal.DeviceIdentityMetaData.identity) ClearHasBit(_impl_._has_bits_[0], 0x00000020U); ::nearby::internal::PresenceIdentity* temp = _impl_.identity_; _impl_.identity_ = nullptr; return temp; } inline ::nearby::internal::PresenceIdentity* PROTOBUF_NONNULL DeviceIdentityMetaData::_internal_mutable_identity() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.identity_ == nullptr) { auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::internal::PresenceIdentity>(GetArena()); _impl_.identity_ = reinterpret_cast<::nearby::internal::PresenceIdentity*>(p); } return _impl_.identity_; } inline ::nearby::internal::PresenceIdentity* PROTOBUF_NONNULL DeviceIdentityMetaData::mutable_identity() ABSL_ATTRIBUTE_LIFETIME_BOUND { SetHasBit(_impl_._has_bits_[0], 0x00000020U); ::nearby::internal::PresenceIdentity* _msg = _internal_mutable_identity(); // @@protoc_insertion_point(field_mutable:nearby.internal.DeviceIdentityMetaData.identity) return _msg; } inline void DeviceIdentityMetaData::set_allocated_identity(::nearby::internal::PresenceIdentity* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.identity_); } if (value != nullptr) { ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } SetHasBit(_impl_._has_bits_[0], 0x00000020U); } else { ClearHasBit(_impl_._has_bits_[0], 0x00000020U); } _impl_.identity_ = reinterpret_cast<::nearby::internal::PresenceIdentity*>(value); // @@protoc_insertion_point(field_set_allocated:nearby.internal.DeviceIdentityMetaData.identity) } // ------------------------------------------------------------------- // PresenceIdentity // .nearby.internal.IdentityType identity_type = 1; inline void PresenceIdentity::clear_identity_type() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.identity_type_ = 0; ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } inline ::nearby::internal::IdentityType PresenceIdentity::identity_type() const { // @@protoc_insertion_point(field_get:nearby.internal.PresenceIdentity.identity_type) return _internal_identity_type(); } inline void PresenceIdentity::set_identity_type(::nearby::internal::IdentityType value) { _internal_set_identity_type(value); SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:nearby.internal.PresenceIdentity.identity_type) } inline ::nearby::internal::IdentityType PresenceIdentity::_internal_identity_type() const { ::google::protobuf::internal::TSanRead(&_impl_); return static_cast<::nearby::internal::IdentityType>(_impl_.identity_type_); } inline void PresenceIdentity::_internal_set_identity_type(::nearby::internal::IdentityType value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.identity_type_ = value; } // string identity_provider_name = 2; inline void PresenceIdentity::clear_identity_provider_name() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.identity_provider_name_.ClearToEmpty(); ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } inline const ::std::string& PresenceIdentity::identity_provider_name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.internal.PresenceIdentity.identity_provider_name) return _internal_identity_provider_name(); } template PROTOBUF_ALWAYS_INLINE void PresenceIdentity::set_identity_provider_name(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); SetHasBit(_impl_._has_bits_[0], 0x00000001U); _impl_.identity_provider_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:nearby.internal.PresenceIdentity.identity_provider_name) } inline ::std::string* PROTOBUF_NONNULL PresenceIdentity::mutable_identity_provider_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::std::string* _s = _internal_mutable_identity_provider_name(); // @@protoc_insertion_point(field_mutable:nearby.internal.PresenceIdentity.identity_provider_name) return _s; } inline const ::std::string& PresenceIdentity::_internal_identity_provider_name() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.identity_provider_name_.Get(); } inline void PresenceIdentity::_internal_set_identity_provider_name(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.identity_provider_name_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL PresenceIdentity::_internal_mutable_identity_provider_name() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.identity_provider_name_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE PresenceIdentity::release_identity_provider_name() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.internal.PresenceIdentity.identity_provider_name) if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } ClearHasBit(_impl_._has_bits_[0], 0x00000001U); auto* released = _impl_.identity_provider_name_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.identity_provider_name_.Set("", GetArena()); } return released; } inline void PresenceIdentity::set_allocated_identity_provider_name(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } _impl_.identity_provider_name_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.identity_provider_name_.IsDefault()) { _impl_.identity_provider_name_.Set("", GetArena()); } // @@protoc_insertion_point(field_set_allocated:nearby.internal.PresenceIdentity.identity_provider_name) } // ------------------------------------------------------------------- // Metadata // .nearby.internal.DeviceType device_type = 1; inline void Metadata::clear_device_type() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.device_type_ = 0; ClearHasBit(_impl_._has_bits_[0], 0x00000020U); } inline ::nearby::internal::DeviceType Metadata::device_type() const { // @@protoc_insertion_point(field_get:nearby.internal.Metadata.device_type) return _internal_device_type(); } inline void Metadata::set_device_type(::nearby::internal::DeviceType value) { _internal_set_device_type(value); SetHasBit(_impl_._has_bits_[0], 0x00000020U); // @@protoc_insertion_point(field_set:nearby.internal.Metadata.device_type) } inline ::nearby::internal::DeviceType Metadata::_internal_device_type() const { ::google::protobuf::internal::TSanRead(&_impl_); return static_cast<::nearby::internal::DeviceType>(_impl_.device_type_); } inline void Metadata::_internal_set_device_type(::nearby::internal::DeviceType value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.device_type_ = value; } // string account_name = 2; inline void Metadata::clear_account_name() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.account_name_.ClearToEmpty(); ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } inline const ::std::string& Metadata::account_name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.internal.Metadata.account_name) return _internal_account_name(); } template PROTOBUF_ALWAYS_INLINE void Metadata::set_account_name(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); SetHasBit(_impl_._has_bits_[0], 0x00000001U); _impl_.account_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:nearby.internal.Metadata.account_name) } inline ::std::string* PROTOBUF_NONNULL Metadata::mutable_account_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::std::string* _s = _internal_mutable_account_name(); // @@protoc_insertion_point(field_mutable:nearby.internal.Metadata.account_name) return _s; } inline const ::std::string& Metadata::_internal_account_name() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.account_name_.Get(); } inline void Metadata::_internal_set_account_name(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.account_name_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL Metadata::_internal_mutable_account_name() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.account_name_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE Metadata::release_account_name() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.internal.Metadata.account_name) if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } ClearHasBit(_impl_._has_bits_[0], 0x00000001U); auto* released = _impl_.account_name_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.account_name_.Set("", GetArena()); } return released; } inline void Metadata::set_allocated_account_name(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } _impl_.account_name_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.account_name_.IsDefault()) { _impl_.account_name_.Set("", GetArena()); } // @@protoc_insertion_point(field_set_allocated:nearby.internal.Metadata.account_name) } // string device_name = 3; inline void Metadata::clear_device_name() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.device_name_.ClearToEmpty(); ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } inline const ::std::string& Metadata::device_name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.internal.Metadata.device_name) return _internal_device_name(); } template PROTOBUF_ALWAYS_INLINE void Metadata::set_device_name(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); SetHasBit(_impl_._has_bits_[0], 0x00000002U); _impl_.device_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:nearby.internal.Metadata.device_name) } inline ::std::string* PROTOBUF_NONNULL Metadata::mutable_device_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { SetHasBit(_impl_._has_bits_[0], 0x00000002U); ::std::string* _s = _internal_mutable_device_name(); // @@protoc_insertion_point(field_mutable:nearby.internal.Metadata.device_name) return _s; } inline const ::std::string& Metadata::_internal_device_name() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.device_name_.Get(); } inline void Metadata::_internal_set_device_name(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.device_name_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL Metadata::_internal_mutable_device_name() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.device_name_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE Metadata::release_device_name() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.internal.Metadata.device_name) if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { return nullptr; } ClearHasBit(_impl_._has_bits_[0], 0x00000002U); auto* released = _impl_.device_name_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.device_name_.Set("", GetArena()); } return released; } inline void Metadata::set_allocated_device_name(::std::string* 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_.device_name_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.device_name_.IsDefault()) { _impl_.device_name_.Set("", GetArena()); } // @@protoc_insertion_point(field_set_allocated:nearby.internal.Metadata.device_name) } // string user_name = 4; inline void Metadata::clear_user_name() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.user_name_.ClearToEmpty(); ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } inline const ::std::string& Metadata::user_name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.internal.Metadata.user_name) return _internal_user_name(); } template PROTOBUF_ALWAYS_INLINE void Metadata::set_user_name(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); SetHasBit(_impl_._has_bits_[0], 0x00000004U); _impl_.user_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:nearby.internal.Metadata.user_name) } inline ::std::string* PROTOBUF_NONNULL Metadata::mutable_user_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { SetHasBit(_impl_._has_bits_[0], 0x00000004U); ::std::string* _s = _internal_mutable_user_name(); // @@protoc_insertion_point(field_mutable:nearby.internal.Metadata.user_name) return _s; } inline const ::std::string& Metadata::_internal_user_name() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.user_name_.Get(); } inline void Metadata::_internal_set_user_name(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.user_name_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL Metadata::_internal_mutable_user_name() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.user_name_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE Metadata::release_user_name() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.internal.Metadata.user_name) if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { return nullptr; } ClearHasBit(_impl_._has_bits_[0], 0x00000004U); auto* released = _impl_.user_name_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.user_name_.Set("", GetArena()); } return released; } inline void Metadata::set_allocated_user_name(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } _impl_.user_name_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.user_name_.IsDefault()) { _impl_.user_name_.Set("", GetArena()); } // @@protoc_insertion_point(field_set_allocated:nearby.internal.Metadata.user_name) } // string device_profile_url = 5; inline void Metadata::clear_device_profile_url() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.device_profile_url_.ClearToEmpty(); ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } inline const ::std::string& Metadata::device_profile_url() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.internal.Metadata.device_profile_url) return _internal_device_profile_url(); } template PROTOBUF_ALWAYS_INLINE void Metadata::set_device_profile_url(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); SetHasBit(_impl_._has_bits_[0], 0x00000008U); _impl_.device_profile_url_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:nearby.internal.Metadata.device_profile_url) } inline ::std::string* PROTOBUF_NONNULL Metadata::mutable_device_profile_url() ABSL_ATTRIBUTE_LIFETIME_BOUND { SetHasBit(_impl_._has_bits_[0], 0x00000008U); ::std::string* _s = _internal_mutable_device_profile_url(); // @@protoc_insertion_point(field_mutable:nearby.internal.Metadata.device_profile_url) return _s; } inline const ::std::string& Metadata::_internal_device_profile_url() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.device_profile_url_.Get(); } inline void Metadata::_internal_set_device_profile_url(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.device_profile_url_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL Metadata::_internal_mutable_device_profile_url() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.device_profile_url_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE Metadata::release_device_profile_url() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.internal.Metadata.device_profile_url) if (!CheckHasBit(_impl_._has_bits_[0], 0x00000008U)) { return nullptr; } ClearHasBit(_impl_._has_bits_[0], 0x00000008U); auto* released = _impl_.device_profile_url_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.device_profile_url_.Set("", GetArena()); } return released; } inline void Metadata::set_allocated_device_profile_url(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { SetHasBit(_impl_._has_bits_[0], 0x00000008U); } else { ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } _impl_.device_profile_url_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.device_profile_url_.IsDefault()) { _impl_.device_profile_url_.Set("", GetArena()); } // @@protoc_insertion_point(field_set_allocated:nearby.internal.Metadata.device_profile_url) } // bytes bluetooth_mac_address = 6; inline void Metadata::clear_bluetooth_mac_address() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.bluetooth_mac_address_.ClearToEmpty(); ClearHasBit(_impl_._has_bits_[0], 0x00000010U); } inline const ::std::string& Metadata::bluetooth_mac_address() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:nearby.internal.Metadata.bluetooth_mac_address) return _internal_bluetooth_mac_address(); } template PROTOBUF_ALWAYS_INLINE void Metadata::set_bluetooth_mac_address(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); SetHasBit(_impl_._has_bits_[0], 0x00000010U); _impl_.bluetooth_mac_address_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:nearby.internal.Metadata.bluetooth_mac_address) } inline ::std::string* PROTOBUF_NONNULL Metadata::mutable_bluetooth_mac_address() ABSL_ATTRIBUTE_LIFETIME_BOUND { SetHasBit(_impl_._has_bits_[0], 0x00000010U); ::std::string* _s = _internal_mutable_bluetooth_mac_address(); // @@protoc_insertion_point(field_mutable:nearby.internal.Metadata.bluetooth_mac_address) return _s; } inline const ::std::string& Metadata::_internal_bluetooth_mac_address() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.bluetooth_mac_address_.Get(); } inline void Metadata::_internal_set_bluetooth_mac_address(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.bluetooth_mac_address_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL Metadata::_internal_mutable_bluetooth_mac_address() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.bluetooth_mac_address_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE Metadata::release_bluetooth_mac_address() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:nearby.internal.Metadata.bluetooth_mac_address) if (!CheckHasBit(_impl_._has_bits_[0], 0x00000010U)) { return nullptr; } ClearHasBit(_impl_._has_bits_[0], 0x00000010U); auto* released = _impl_.bluetooth_mac_address_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.bluetooth_mac_address_.Set("", GetArena()); } return released; } inline void Metadata::set_allocated_bluetooth_mac_address(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { SetHasBit(_impl_._has_bits_[0], 0x00000010U); } else { ClearHasBit(_impl_._has_bits_[0], 0x00000010U); } _impl_.bluetooth_mac_address_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.bluetooth_mac_address_.IsDefault()) { _impl_.bluetooth_mac_address_.Set("", GetArena()); } // @@protoc_insertion_point(field_set_allocated:nearby.internal.Metadata.bluetooth_mac_address) } // .nearby.internal.InstanceType instance_type = 7; inline void Metadata::clear_instance_type() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.instance_type_ = 0; ClearHasBit(_impl_._has_bits_[0], 0x00000040U); } inline ::nearby::internal::InstanceType Metadata::instance_type() const { // @@protoc_insertion_point(field_get:nearby.internal.Metadata.instance_type) return _internal_instance_type(); } inline void Metadata::set_instance_type(::nearby::internal::InstanceType value) { _internal_set_instance_type(value); SetHasBit(_impl_._has_bits_[0], 0x00000040U); // @@protoc_insertion_point(field_set:nearby.internal.Metadata.instance_type) } inline ::nearby::internal::InstanceType Metadata::_internal_instance_type() const { ::google::protobuf::internal::TSanRead(&_impl_); return static_cast<::nearby::internal::InstanceType>(_impl_.instance_type_); } inline void Metadata::_internal_set_instance_type(::nearby::internal::InstanceType value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.instance_type_ = value; } #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ // @@protoc_insertion_point(namespace_scope) } // namespace internal } // namespace nearby namespace google { namespace protobuf { template <> struct is_proto_enum<::nearby::internal::DeviceType> : std::true_type {}; template <> struct is_proto_enum<::nearby::internal::InstanceType> : std::true_type {}; } // namespace protobuf } // namespace google // @@protoc_insertion_point(global_scope) #include "google/protobuf/port_undef.inc" #endif // internal_2fproto_2fmetadata_2eproto_2epb_2eh