Files

1716 lines
79 KiB
C++

// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: internal/proto/credential.proto
// Protobuf C++ Version: 6.33.3
#ifndef internal_2fproto_2fcredential_2eproto_2epb_2eh
#define internal_2fproto_2fcredential_2eproto_2epb_2eh
#include <limits>
#include <string>
#include <type_traits>
#include <utility>
#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"
// @@protoc_insertion_point(includes)
// Must be included last.
#include "google/protobuf/port_def.inc"
#define PROTOBUF_INTERNAL_EXPORT_internal_2fproto_2fcredential_2eproto
namespace google {
namespace protobuf {
namespace internal {
template <typename T>
::absl::string_view GetAnyMessageName();
} // namespace internal
} // namespace protobuf
} // namespace google
// Internal implementation detail -- do not use these members.
struct TableStruct_internal_2fproto_2fcredential_2eproto {
static const ::uint32_t offsets[];
};
namespace nearby {
namespace internal {
enum CredentialType : int;
extern const uint32_t CredentialType_internal_data_[];
enum IdentityType : int;
extern const uint32_t IdentityType_internal_data_[];
class SharedCredential;
struct SharedCredentialDefaultTypeInternal;
extern SharedCredentialDefaultTypeInternal _SharedCredential_default_instance_;
extern const ::google::protobuf::internal::ClassDataLite<33> SharedCredential_class_data_;
} // namespace internal
} // namespace nearby
namespace google {
namespace protobuf {
template <>
internal::EnumTraitsT<::nearby::internal::CredentialType_internal_data_>
internal::EnumTraitsImpl::value<::nearby::internal::CredentialType>;
template <>
internal::EnumTraitsT<::nearby::internal::IdentityType_internal_data_>
internal::EnumTraitsImpl::value<::nearby::internal::IdentityType>;
} // namespace protobuf
} // namespace google
namespace nearby {
namespace internal {
enum IdentityType : int {
IDENTITY_TYPE_UNSPECIFIED = 0,
IDENTITY_TYPE_PRIVATE_GROUP = 1,
IDENTITY_TYPE_CONTACTS_GROUP = 2,
IDENTITY_TYPE_PUBLIC = 3,
IdentityType_INT_MIN_SENTINEL_DO_NOT_USE_ =
::std::numeric_limits<::int32_t>::min(),
IdentityType_INT_MAX_SENTINEL_DO_NOT_USE_ =
::std::numeric_limits<::int32_t>::max(),
};
extern const uint32_t IdentityType_internal_data_[];
inline constexpr IdentityType IdentityType_MIN =
static_cast<IdentityType>(0);
inline constexpr IdentityType IdentityType_MAX =
static_cast<IdentityType>(3);
inline bool IdentityType_IsValid(int value) {
return 0 <= value && value <= 3;
}
inline constexpr int IdentityType_ARRAYSIZE = 3 + 1;
const ::std::string& IdentityType_Name(IdentityType value);
template <typename T>
const ::std::string& IdentityType_Name(T value) {
static_assert(::std::is_same<T, IdentityType>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to IdentityType_Name().");
return IdentityType_Name(static_cast<IdentityType>(value));
}
bool IdentityType_Parse(
::absl::string_view name, IdentityType* PROTOBUF_NONNULL value);
enum CredentialType : int {
CREDENTIAL_TYPE_UNKNOWN = 0,
CREDENTIAL_TYPE_DEVICE = 1,
CREDENTIAL_TYPE_GAIA = 2,
CredentialType_INT_MIN_SENTINEL_DO_NOT_USE_ =
::std::numeric_limits<::int32_t>::min(),
CredentialType_INT_MAX_SENTINEL_DO_NOT_USE_ =
::std::numeric_limits<::int32_t>::max(),
};
extern const uint32_t CredentialType_internal_data_[];
inline constexpr CredentialType CredentialType_MIN =
static_cast<CredentialType>(0);
inline constexpr CredentialType CredentialType_MAX =
static_cast<CredentialType>(2);
inline bool CredentialType_IsValid(int value) {
return 0 <= value && value <= 2;
}
inline constexpr int CredentialType_ARRAYSIZE = 2 + 1;
const ::std::string& CredentialType_Name(CredentialType value);
template <typename T>
const ::std::string& CredentialType_Name(T value) {
static_assert(::std::is_same<T, CredentialType>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to CredentialType_Name().");
return CredentialType_Name(static_cast<CredentialType>(value));
}
bool CredentialType_Parse(
::absl::string_view name, CredentialType* PROTOBUF_NONNULL value);
// ===================================================================
// -------------------------------------------------------------------
class SharedCredential final : public ::google::protobuf::MessageLite
/* @@protoc_insertion_point(class_definition:nearby.internal.SharedCredential) */ {
public:
inline SharedCredential() : SharedCredential(nullptr) {}
~SharedCredential() PROTOBUF_FINAL;
#if defined(PROTOBUF_CUSTOM_VTABLE)
void operator delete(SharedCredential* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
SharedDtor(*msg);
::google::protobuf::internal::SizedDelete(msg, sizeof(SharedCredential));
}
#endif
template <typename = void>
explicit PROTOBUF_CONSTEXPR SharedCredential(::google::protobuf::internal::ConstantInitialized);
inline SharedCredential(const SharedCredential& from) : SharedCredential(nullptr, from) {}
inline SharedCredential(SharedCredential&& from) noexcept
: SharedCredential(nullptr, ::std::move(from)) {}
inline SharedCredential& operator=(const SharedCredential& from) {
CopyFrom(from);
return *this;
}
inline SharedCredential& operator=(SharedCredential&& 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 SharedCredential& default_instance() {
return *reinterpret_cast<const SharedCredential*>(
&_SharedCredential_default_instance_);
}
static constexpr int kIndexInFileMessages = 0;
friend void swap(SharedCredential& a, SharedCredential& b) { a.Swap(&b); }
inline void Swap(SharedCredential* 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(SharedCredential* PROTOBUF_NONNULL other) {
if (other == this) return;
ABSL_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
SharedCredential* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
return ::google::protobuf::MessageLite::DefaultConstruct<SharedCredential>(arena);
}
void CopyFrom(const SharedCredential& from);
void MergeFrom(const SharedCredential& from) { SharedCredential::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(SharedCredential* PROTOBUF_NONNULL other);
private:
template <typename T>
friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
static ::absl::string_view FullMessageName() { return "nearby.internal.SharedCredential"; }
explicit SharedCredential(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
SharedCredential(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SharedCredential& from);
SharedCredential(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SharedCredential&& from) noexcept
: SharedCredential(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 {
kSecretIdFieldNumber = 1,
kKeySeedFieldNumber = 2,
kEncryptedMetadataBytesV0FieldNumber = 5,
kMetadataEncryptionKeyTagV0FieldNumber = 6,
kConnectionSignatureVerificationKeyFieldNumber = 7,
kAdvertisementSignatureVerificationKeyFieldNumber = 8,
kVersionFieldNumber = 10,
kEncryptedMetadataBytesV1FieldNumber = 12,
kIdentityTokenShortSaltAdvHmacKeyV1FieldNumber = 13,
kDusiFieldNumber = 15,
kSignatureVersionFieldNumber = 16,
kIdentityTokenExtendedSaltAdvHmacKeyV1FieldNumber = 17,
kIdentityTokenSignedAdvHmacKeyV1FieldNumber = 18,
kRustEncryptedMetadataBytesV0FieldNumber = 20,
kStartTimeMillisFieldNumber = 3,
kEndTimeMillisFieldNumber = 4,
kIdentityTypeFieldNumber = 9,
kCredentialTypeFieldNumber = 11,
kIdFieldNumber = 14,
kCredentialVersionFieldNumber = 19,
};
// bytes secret_id = 1 [deprecated = true];
[[deprecated]] void clear_secret_id() ;
[[deprecated]] const ::std::string& secret_id() const;
template <typename Arg_ = const ::std::string&, typename... Args_>
[[deprecated]] void set_secret_id(Arg_&& arg, Args_... args);
[[deprecated]] ::std::string* PROTOBUF_NONNULL mutable_secret_id();
[[deprecated]] [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_secret_id();
[[deprecated]] void set_allocated_secret_id(::std::string* PROTOBUF_NULLABLE value);
private:
const ::std::string& _internal_secret_id() const;
PROTOBUF_ALWAYS_INLINE void _internal_set_secret_id(const ::std::string& value);
::std::string* PROTOBUF_NONNULL _internal_mutable_secret_id();
public:
// bytes key_seed = 2;
void clear_key_seed() ;
const ::std::string& key_seed() const;
template <typename Arg_ = const ::std::string&, typename... Args_>
void set_key_seed(Arg_&& arg, Args_... args);
::std::string* PROTOBUF_NONNULL mutable_key_seed();
[[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_key_seed();
void set_allocated_key_seed(::std::string* PROTOBUF_NULLABLE value);
private:
const ::std::string& _internal_key_seed() const;
PROTOBUF_ALWAYS_INLINE void _internal_set_key_seed(const ::std::string& value);
::std::string* PROTOBUF_NONNULL _internal_mutable_key_seed();
public:
// bytes encrypted_metadata_bytes_v0 = 5;
void clear_encrypted_metadata_bytes_v0() ;
const ::std::string& encrypted_metadata_bytes_v0() const;
template <typename Arg_ = const ::std::string&, typename... Args_>
void set_encrypted_metadata_bytes_v0(Arg_&& arg, Args_... args);
::std::string* PROTOBUF_NONNULL mutable_encrypted_metadata_bytes_v0();
[[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_encrypted_metadata_bytes_v0();
void set_allocated_encrypted_metadata_bytes_v0(::std::string* PROTOBUF_NULLABLE value);
private:
const ::std::string& _internal_encrypted_metadata_bytes_v0() const;
PROTOBUF_ALWAYS_INLINE void _internal_set_encrypted_metadata_bytes_v0(const ::std::string& value);
::std::string* PROTOBUF_NONNULL _internal_mutable_encrypted_metadata_bytes_v0();
public:
// bytes metadata_encryption_key_tag_v0 = 6;
void clear_metadata_encryption_key_tag_v0() ;
const ::std::string& metadata_encryption_key_tag_v0() const;
template <typename Arg_ = const ::std::string&, typename... Args_>
void set_metadata_encryption_key_tag_v0(Arg_&& arg, Args_... args);
::std::string* PROTOBUF_NONNULL mutable_metadata_encryption_key_tag_v0();
[[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_metadata_encryption_key_tag_v0();
void set_allocated_metadata_encryption_key_tag_v0(::std::string* PROTOBUF_NULLABLE value);
private:
const ::std::string& _internal_metadata_encryption_key_tag_v0() const;
PROTOBUF_ALWAYS_INLINE void _internal_set_metadata_encryption_key_tag_v0(const ::std::string& value);
::std::string* PROTOBUF_NONNULL _internal_mutable_metadata_encryption_key_tag_v0();
public:
// bytes connection_signature_verification_key = 7;
void clear_connection_signature_verification_key() ;
const ::std::string& connection_signature_verification_key() const;
template <typename Arg_ = const ::std::string&, typename... Args_>
void set_connection_signature_verification_key(Arg_&& arg, Args_... args);
::std::string* PROTOBUF_NONNULL mutable_connection_signature_verification_key();
[[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_connection_signature_verification_key();
void set_allocated_connection_signature_verification_key(::std::string* PROTOBUF_NULLABLE value);
private:
const ::std::string& _internal_connection_signature_verification_key() const;
PROTOBUF_ALWAYS_INLINE void _internal_set_connection_signature_verification_key(const ::std::string& value);
::std::string* PROTOBUF_NONNULL _internal_mutable_connection_signature_verification_key();
public:
// bytes advertisement_signature_verification_key = 8;
void clear_advertisement_signature_verification_key() ;
const ::std::string& advertisement_signature_verification_key() const;
template <typename Arg_ = const ::std::string&, typename... Args_>
void set_advertisement_signature_verification_key(Arg_&& arg, Args_... args);
::std::string* PROTOBUF_NONNULL mutable_advertisement_signature_verification_key();
[[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_advertisement_signature_verification_key();
void set_allocated_advertisement_signature_verification_key(::std::string* PROTOBUF_NULLABLE value);
private:
const ::std::string& _internal_advertisement_signature_verification_key() const;
PROTOBUF_ALWAYS_INLINE void _internal_set_advertisement_signature_verification_key(const ::std::string& value);
::std::string* PROTOBUF_NONNULL _internal_mutable_advertisement_signature_verification_key();
public:
// bytes version = 10 [deprecated = true];
[[deprecated]] void clear_version() ;
[[deprecated]] const ::std::string& version() const;
template <typename Arg_ = const ::std::string&, typename... Args_>
[[deprecated]] void set_version(Arg_&& arg, Args_... args);
[[deprecated]] ::std::string* PROTOBUF_NONNULL mutable_version();
[[deprecated]] [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_version();
[[deprecated]] void set_allocated_version(::std::string* PROTOBUF_NULLABLE value);
private:
const ::std::string& _internal_version() const;
PROTOBUF_ALWAYS_INLINE void _internal_set_version(const ::std::string& value);
::std::string* PROTOBUF_NONNULL _internal_mutable_version();
public:
// bytes encrypted_metadata_bytes_v1 = 12;
void clear_encrypted_metadata_bytes_v1() ;
const ::std::string& encrypted_metadata_bytes_v1() const;
template <typename Arg_ = const ::std::string&, typename... Args_>
void set_encrypted_metadata_bytes_v1(Arg_&& arg, Args_... args);
::std::string* PROTOBUF_NONNULL mutable_encrypted_metadata_bytes_v1();
[[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_encrypted_metadata_bytes_v1();
void set_allocated_encrypted_metadata_bytes_v1(::std::string* PROTOBUF_NULLABLE value);
private:
const ::std::string& _internal_encrypted_metadata_bytes_v1() const;
PROTOBUF_ALWAYS_INLINE void _internal_set_encrypted_metadata_bytes_v1(const ::std::string& value);
::std::string* PROTOBUF_NONNULL _internal_mutable_encrypted_metadata_bytes_v1();
public:
// bytes identity_token_short_salt_adv_hmac_key_v1 = 13;
void clear_identity_token_short_salt_adv_hmac_key_v1() ;
const ::std::string& identity_token_short_salt_adv_hmac_key_v1() const;
template <typename Arg_ = const ::std::string&, typename... Args_>
void set_identity_token_short_salt_adv_hmac_key_v1(Arg_&& arg, Args_... args);
::std::string* PROTOBUF_NONNULL mutable_identity_token_short_salt_adv_hmac_key_v1();
[[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_identity_token_short_salt_adv_hmac_key_v1();
void set_allocated_identity_token_short_salt_adv_hmac_key_v1(::std::string* PROTOBUF_NULLABLE value);
private:
const ::std::string& _internal_identity_token_short_salt_adv_hmac_key_v1() const;
PROTOBUF_ALWAYS_INLINE void _internal_set_identity_token_short_salt_adv_hmac_key_v1(const ::std::string& value);
::std::string* PROTOBUF_NONNULL _internal_mutable_identity_token_short_salt_adv_hmac_key_v1();
public:
// string dusi = 15;
void clear_dusi() ;
const ::std::string& dusi() const;
template <typename Arg_ = const ::std::string&, typename... Args_>
void set_dusi(Arg_&& arg, Args_... args);
::std::string* PROTOBUF_NONNULL mutable_dusi();
[[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_dusi();
void set_allocated_dusi(::std::string* PROTOBUF_NULLABLE value);
private:
const ::std::string& _internal_dusi() const;
PROTOBUF_ALWAYS_INLINE void _internal_set_dusi(const ::std::string& value);
::std::string* PROTOBUF_NONNULL _internal_mutable_dusi();
public:
// string signature_version = 16 [deprecated = true];
[[deprecated]] void clear_signature_version() ;
[[deprecated]] const ::std::string& signature_version() const;
template <typename Arg_ = const ::std::string&, typename... Args_>
[[deprecated]] void set_signature_version(Arg_&& arg, Args_... args);
[[deprecated]] ::std::string* PROTOBUF_NONNULL mutable_signature_version();
[[deprecated]] [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_signature_version();
[[deprecated]] void set_allocated_signature_version(::std::string* PROTOBUF_NULLABLE value);
private:
const ::std::string& _internal_signature_version() const;
PROTOBUF_ALWAYS_INLINE void _internal_set_signature_version(const ::std::string& value);
::std::string* PROTOBUF_NONNULL _internal_mutable_signature_version();
public:
// bytes identity_token_extended_salt_adv_hmac_key_v1 = 17;
void clear_identity_token_extended_salt_adv_hmac_key_v1() ;
const ::std::string& identity_token_extended_salt_adv_hmac_key_v1() const;
template <typename Arg_ = const ::std::string&, typename... Args_>
void set_identity_token_extended_salt_adv_hmac_key_v1(Arg_&& arg, Args_... args);
::std::string* PROTOBUF_NONNULL mutable_identity_token_extended_salt_adv_hmac_key_v1();
[[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_identity_token_extended_salt_adv_hmac_key_v1();
void set_allocated_identity_token_extended_salt_adv_hmac_key_v1(::std::string* PROTOBUF_NULLABLE value);
private:
const ::std::string& _internal_identity_token_extended_salt_adv_hmac_key_v1() const;
PROTOBUF_ALWAYS_INLINE void _internal_set_identity_token_extended_salt_adv_hmac_key_v1(const ::std::string& value);
::std::string* PROTOBUF_NONNULL _internal_mutable_identity_token_extended_salt_adv_hmac_key_v1();
public:
// bytes identity_token_signed_adv_hmac_key_v1 = 18;
void clear_identity_token_signed_adv_hmac_key_v1() ;
const ::std::string& identity_token_signed_adv_hmac_key_v1() const;
template <typename Arg_ = const ::std::string&, typename... Args_>
void set_identity_token_signed_adv_hmac_key_v1(Arg_&& arg, Args_... args);
::std::string* PROTOBUF_NONNULL mutable_identity_token_signed_adv_hmac_key_v1();
[[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_identity_token_signed_adv_hmac_key_v1();
void set_allocated_identity_token_signed_adv_hmac_key_v1(::std::string* PROTOBUF_NULLABLE value);
private:
const ::std::string& _internal_identity_token_signed_adv_hmac_key_v1() const;
PROTOBUF_ALWAYS_INLINE void _internal_set_identity_token_signed_adv_hmac_key_v1(const ::std::string& value);
::std::string* PROTOBUF_NONNULL _internal_mutable_identity_token_signed_adv_hmac_key_v1();
public:
// bytes rust_encrypted_metadata_bytes_v0 = 20;
void clear_rust_encrypted_metadata_bytes_v0() ;
const ::std::string& rust_encrypted_metadata_bytes_v0() const;
template <typename Arg_ = const ::std::string&, typename... Args_>
void set_rust_encrypted_metadata_bytes_v0(Arg_&& arg, Args_... args);
::std::string* PROTOBUF_NONNULL mutable_rust_encrypted_metadata_bytes_v0();
[[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_rust_encrypted_metadata_bytes_v0();
void set_allocated_rust_encrypted_metadata_bytes_v0(::std::string* PROTOBUF_NULLABLE value);
private:
const ::std::string& _internal_rust_encrypted_metadata_bytes_v0() const;
PROTOBUF_ALWAYS_INLINE void _internal_set_rust_encrypted_metadata_bytes_v0(const ::std::string& value);
::std::string* PROTOBUF_NONNULL _internal_mutable_rust_encrypted_metadata_bytes_v0();
public:
// int64 start_time_millis = 3;
void clear_start_time_millis() ;
::int64_t start_time_millis() const;
void set_start_time_millis(::int64_t value);
private:
::int64_t _internal_start_time_millis() const;
void _internal_set_start_time_millis(::int64_t value);
public:
// int64 end_time_millis = 4;
void clear_end_time_millis() ;
::int64_t end_time_millis() const;
void set_end_time_millis(::int64_t value);
private:
::int64_t _internal_end_time_millis() const;
void _internal_set_end_time_millis(::int64_t value);
public:
// .nearby.internal.IdentityType identity_type = 9;
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:
// .nearby.internal.CredentialType credential_type = 11;
void clear_credential_type() ;
::nearby::internal::CredentialType credential_type() const;
void set_credential_type(::nearby::internal::CredentialType value);
private:
::nearby::internal::CredentialType _internal_credential_type() const;
void _internal_set_credential_type(::nearby::internal::CredentialType value);
public:
// int64 id = 14;
void clear_id() ;
::int64_t id() const;
void set_id(::int64_t value);
private:
::int64_t _internal_id() const;
void _internal_set_id(::int64_t value);
public:
// int64 credential_version = 19;
void clear_credential_version() ;
::int64_t credential_version() const;
void set_credential_version(::int64_t value);
private:
::int64_t _internal_credential_version() const;
void _internal_set_credential_version(::int64_t value);
public:
// @@protoc_insertion_point(class_scope:nearby.internal.SharedCredential)
private:
class _Internal;
friend class ::google::protobuf::internal::TcParser;
static const ::google::protobuf::internal::TcParseTable<5, 20,
0, 78,
2>
_table_;
friend class ::google::protobuf::MessageLite;
friend class ::google::protobuf::Arena;
template <typename T>
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 SharedCredential& from_msg);
::google::protobuf::internal::HasBits<1> _has_bits_;
::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::internal::ArenaStringPtr secret_id_;
::google::protobuf::internal::ArenaStringPtr key_seed_;
::google::protobuf::internal::ArenaStringPtr encrypted_metadata_bytes_v0_;
::google::protobuf::internal::ArenaStringPtr metadata_encryption_key_tag_v0_;
::google::protobuf::internal::ArenaStringPtr connection_signature_verification_key_;
::google::protobuf::internal::ArenaStringPtr advertisement_signature_verification_key_;
::google::protobuf::internal::ArenaStringPtr version_;
::google::protobuf::internal::ArenaStringPtr encrypted_metadata_bytes_v1_;
::google::protobuf::internal::ArenaStringPtr identity_token_short_salt_adv_hmac_key_v1_;
::google::protobuf::internal::ArenaStringPtr dusi_;
::google::protobuf::internal::ArenaStringPtr signature_version_;
::google::protobuf::internal::ArenaStringPtr identity_token_extended_salt_adv_hmac_key_v1_;
::google::protobuf::internal::ArenaStringPtr identity_token_signed_adv_hmac_key_v1_;
::google::protobuf::internal::ArenaStringPtr rust_encrypted_metadata_bytes_v0_;
::int64_t start_time_millis_;
::int64_t end_time_millis_;
int identity_type_;
int credential_type_;
::int64_t id_;
::int64_t credential_version_;
PROTOBUF_TSAN_DECLARE_MEMBER
};
union { Impl_ _impl_; };
friend struct ::TableStruct_internal_2fproto_2fcredential_2eproto;
};
extern const ::google::protobuf::internal::ClassDataLite<33> SharedCredential_class_data_;
// ===================================================================
// ===================================================================
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif // __GNUC__
// -------------------------------------------------------------------
// SharedCredential
// bytes secret_id = 1 [deprecated = true];
inline void SharedCredential::clear_secret_id() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.secret_id_.ClearToEmpty();
ClearHasBit(_impl_._has_bits_[0],
0x00000001U);
}
inline const ::std::string& SharedCredential::secret_id() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_get:nearby.internal.SharedCredential.secret_id)
return _internal_secret_id();
}
template <typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void SharedCredential::set_secret_id(Arg_&& arg, Args_... args) {
::google::protobuf::internal::TSanWrite(&_impl_);
SetHasBit(_impl_._has_bits_[0], 0x00000001U);
_impl_.secret_id_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena());
// @@protoc_insertion_point(field_set:nearby.internal.SharedCredential.secret_id)
}
inline ::std::string* PROTOBUF_NONNULL SharedCredential::mutable_secret_id()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
SetHasBit(_impl_._has_bits_[0], 0x00000001U);
::std::string* _s = _internal_mutable_secret_id();
// @@protoc_insertion_point(field_mutable:nearby.internal.SharedCredential.secret_id)
return _s;
}
inline const ::std::string& SharedCredential::_internal_secret_id() const {
::google::protobuf::internal::TSanRead(&_impl_);
return _impl_.secret_id_.Get();
}
inline void SharedCredential::_internal_set_secret_id(const ::std::string& value) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.secret_id_.Set(value, GetArena());
}
inline ::std::string* PROTOBUF_NONNULL SharedCredential::_internal_mutable_secret_id() {
::google::protobuf::internal::TSanWrite(&_impl_);
return _impl_.secret_id_.Mutable( GetArena());
}
inline ::std::string* PROTOBUF_NULLABLE SharedCredential::release_secret_id() {
::google::protobuf::internal::TSanWrite(&_impl_);
// @@protoc_insertion_point(field_release:nearby.internal.SharedCredential.secret_id)
if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) {
return nullptr;
}
ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
auto* released = _impl_.secret_id_.Release();
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
_impl_.secret_id_.Set("", GetArena());
}
return released;
}
inline void SharedCredential::set_allocated_secret_id(::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_.secret_id_.SetAllocated(value, GetArena());
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.secret_id_.IsDefault()) {
_impl_.secret_id_.Set("", GetArena());
}
// @@protoc_insertion_point(field_set_allocated:nearby.internal.SharedCredential.secret_id)
}
// bytes key_seed = 2;
inline void SharedCredential::clear_key_seed() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.key_seed_.ClearToEmpty();
ClearHasBit(_impl_._has_bits_[0],
0x00000002U);
}
inline const ::std::string& SharedCredential::key_seed() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_get:nearby.internal.SharedCredential.key_seed)
return _internal_key_seed();
}
template <typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void SharedCredential::set_key_seed(Arg_&& arg, Args_... args) {
::google::protobuf::internal::TSanWrite(&_impl_);
SetHasBit(_impl_._has_bits_[0], 0x00000002U);
_impl_.key_seed_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena());
// @@protoc_insertion_point(field_set:nearby.internal.SharedCredential.key_seed)
}
inline ::std::string* PROTOBUF_NONNULL SharedCredential::mutable_key_seed()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
SetHasBit(_impl_._has_bits_[0], 0x00000002U);
::std::string* _s = _internal_mutable_key_seed();
// @@protoc_insertion_point(field_mutable:nearby.internal.SharedCredential.key_seed)
return _s;
}
inline const ::std::string& SharedCredential::_internal_key_seed() const {
::google::protobuf::internal::TSanRead(&_impl_);
return _impl_.key_seed_.Get();
}
inline void SharedCredential::_internal_set_key_seed(const ::std::string& value) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.key_seed_.Set(value, GetArena());
}
inline ::std::string* PROTOBUF_NONNULL SharedCredential::_internal_mutable_key_seed() {
::google::protobuf::internal::TSanWrite(&_impl_);
return _impl_.key_seed_.Mutable( GetArena());
}
inline ::std::string* PROTOBUF_NULLABLE SharedCredential::release_key_seed() {
::google::protobuf::internal::TSanWrite(&_impl_);
// @@protoc_insertion_point(field_release:nearby.internal.SharedCredential.key_seed)
if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) {
return nullptr;
}
ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
auto* released = _impl_.key_seed_.Release();
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
_impl_.key_seed_.Set("", GetArena());
}
return released;
}
inline void SharedCredential::set_allocated_key_seed(::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_.key_seed_.SetAllocated(value, GetArena());
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.key_seed_.IsDefault()) {
_impl_.key_seed_.Set("", GetArena());
}
// @@protoc_insertion_point(field_set_allocated:nearby.internal.SharedCredential.key_seed)
}
// int64 start_time_millis = 3;
inline void SharedCredential::clear_start_time_millis() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.start_time_millis_ = ::int64_t{0};
ClearHasBit(_impl_._has_bits_[0],
0x00004000U);
}
inline ::int64_t SharedCredential::start_time_millis() const {
// @@protoc_insertion_point(field_get:nearby.internal.SharedCredential.start_time_millis)
return _internal_start_time_millis();
}
inline void SharedCredential::set_start_time_millis(::int64_t value) {
_internal_set_start_time_millis(value);
SetHasBit(_impl_._has_bits_[0], 0x00004000U);
// @@protoc_insertion_point(field_set:nearby.internal.SharedCredential.start_time_millis)
}
inline ::int64_t SharedCredential::_internal_start_time_millis() const {
::google::protobuf::internal::TSanRead(&_impl_);
return _impl_.start_time_millis_;
}
inline void SharedCredential::_internal_set_start_time_millis(::int64_t value) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.start_time_millis_ = value;
}
// int64 end_time_millis = 4;
inline void SharedCredential::clear_end_time_millis() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.end_time_millis_ = ::int64_t{0};
ClearHasBit(_impl_._has_bits_[0],
0x00008000U);
}
inline ::int64_t SharedCredential::end_time_millis() const {
// @@protoc_insertion_point(field_get:nearby.internal.SharedCredential.end_time_millis)
return _internal_end_time_millis();
}
inline void SharedCredential::set_end_time_millis(::int64_t value) {
_internal_set_end_time_millis(value);
SetHasBit(_impl_._has_bits_[0], 0x00008000U);
// @@protoc_insertion_point(field_set:nearby.internal.SharedCredential.end_time_millis)
}
inline ::int64_t SharedCredential::_internal_end_time_millis() const {
::google::protobuf::internal::TSanRead(&_impl_);
return _impl_.end_time_millis_;
}
inline void SharedCredential::_internal_set_end_time_millis(::int64_t value) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.end_time_millis_ = value;
}
// bytes encrypted_metadata_bytes_v0 = 5;
inline void SharedCredential::clear_encrypted_metadata_bytes_v0() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.encrypted_metadata_bytes_v0_.ClearToEmpty();
ClearHasBit(_impl_._has_bits_[0],
0x00000004U);
}
inline const ::std::string& SharedCredential::encrypted_metadata_bytes_v0() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_get:nearby.internal.SharedCredential.encrypted_metadata_bytes_v0)
return _internal_encrypted_metadata_bytes_v0();
}
template <typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void SharedCredential::set_encrypted_metadata_bytes_v0(Arg_&& arg, Args_... args) {
::google::protobuf::internal::TSanWrite(&_impl_);
SetHasBit(_impl_._has_bits_[0], 0x00000004U);
_impl_.encrypted_metadata_bytes_v0_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena());
// @@protoc_insertion_point(field_set:nearby.internal.SharedCredential.encrypted_metadata_bytes_v0)
}
inline ::std::string* PROTOBUF_NONNULL SharedCredential::mutable_encrypted_metadata_bytes_v0()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
SetHasBit(_impl_._has_bits_[0], 0x00000004U);
::std::string* _s = _internal_mutable_encrypted_metadata_bytes_v0();
// @@protoc_insertion_point(field_mutable:nearby.internal.SharedCredential.encrypted_metadata_bytes_v0)
return _s;
}
inline const ::std::string& SharedCredential::_internal_encrypted_metadata_bytes_v0() const {
::google::protobuf::internal::TSanRead(&_impl_);
return _impl_.encrypted_metadata_bytes_v0_.Get();
}
inline void SharedCredential::_internal_set_encrypted_metadata_bytes_v0(const ::std::string& value) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.encrypted_metadata_bytes_v0_.Set(value, GetArena());
}
inline ::std::string* PROTOBUF_NONNULL SharedCredential::_internal_mutable_encrypted_metadata_bytes_v0() {
::google::protobuf::internal::TSanWrite(&_impl_);
return _impl_.encrypted_metadata_bytes_v0_.Mutable( GetArena());
}
inline ::std::string* PROTOBUF_NULLABLE SharedCredential::release_encrypted_metadata_bytes_v0() {
::google::protobuf::internal::TSanWrite(&_impl_);
// @@protoc_insertion_point(field_release:nearby.internal.SharedCredential.encrypted_metadata_bytes_v0)
if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) {
return nullptr;
}
ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
auto* released = _impl_.encrypted_metadata_bytes_v0_.Release();
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
_impl_.encrypted_metadata_bytes_v0_.Set("", GetArena());
}
return released;
}
inline void SharedCredential::set_allocated_encrypted_metadata_bytes_v0(::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_.encrypted_metadata_bytes_v0_.SetAllocated(value, GetArena());
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.encrypted_metadata_bytes_v0_.IsDefault()) {
_impl_.encrypted_metadata_bytes_v0_.Set("", GetArena());
}
// @@protoc_insertion_point(field_set_allocated:nearby.internal.SharedCredential.encrypted_metadata_bytes_v0)
}
// bytes metadata_encryption_key_tag_v0 = 6;
inline void SharedCredential::clear_metadata_encryption_key_tag_v0() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.metadata_encryption_key_tag_v0_.ClearToEmpty();
ClearHasBit(_impl_._has_bits_[0],
0x00000008U);
}
inline const ::std::string& SharedCredential::metadata_encryption_key_tag_v0() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_get:nearby.internal.SharedCredential.metadata_encryption_key_tag_v0)
return _internal_metadata_encryption_key_tag_v0();
}
template <typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void SharedCredential::set_metadata_encryption_key_tag_v0(Arg_&& arg, Args_... args) {
::google::protobuf::internal::TSanWrite(&_impl_);
SetHasBit(_impl_._has_bits_[0], 0x00000008U);
_impl_.metadata_encryption_key_tag_v0_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena());
// @@protoc_insertion_point(field_set:nearby.internal.SharedCredential.metadata_encryption_key_tag_v0)
}
inline ::std::string* PROTOBUF_NONNULL SharedCredential::mutable_metadata_encryption_key_tag_v0()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
SetHasBit(_impl_._has_bits_[0], 0x00000008U);
::std::string* _s = _internal_mutable_metadata_encryption_key_tag_v0();
// @@protoc_insertion_point(field_mutable:nearby.internal.SharedCredential.metadata_encryption_key_tag_v0)
return _s;
}
inline const ::std::string& SharedCredential::_internal_metadata_encryption_key_tag_v0() const {
::google::protobuf::internal::TSanRead(&_impl_);
return _impl_.metadata_encryption_key_tag_v0_.Get();
}
inline void SharedCredential::_internal_set_metadata_encryption_key_tag_v0(const ::std::string& value) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.metadata_encryption_key_tag_v0_.Set(value, GetArena());
}
inline ::std::string* PROTOBUF_NONNULL SharedCredential::_internal_mutable_metadata_encryption_key_tag_v0() {
::google::protobuf::internal::TSanWrite(&_impl_);
return _impl_.metadata_encryption_key_tag_v0_.Mutable( GetArena());
}
inline ::std::string* PROTOBUF_NULLABLE SharedCredential::release_metadata_encryption_key_tag_v0() {
::google::protobuf::internal::TSanWrite(&_impl_);
// @@protoc_insertion_point(field_release:nearby.internal.SharedCredential.metadata_encryption_key_tag_v0)
if (!CheckHasBit(_impl_._has_bits_[0], 0x00000008U)) {
return nullptr;
}
ClearHasBit(_impl_._has_bits_[0], 0x00000008U);
auto* released = _impl_.metadata_encryption_key_tag_v0_.Release();
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
_impl_.metadata_encryption_key_tag_v0_.Set("", GetArena());
}
return released;
}
inline void SharedCredential::set_allocated_metadata_encryption_key_tag_v0(::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_.metadata_encryption_key_tag_v0_.SetAllocated(value, GetArena());
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.metadata_encryption_key_tag_v0_.IsDefault()) {
_impl_.metadata_encryption_key_tag_v0_.Set("", GetArena());
}
// @@protoc_insertion_point(field_set_allocated:nearby.internal.SharedCredential.metadata_encryption_key_tag_v0)
}
// bytes connection_signature_verification_key = 7;
inline void SharedCredential::clear_connection_signature_verification_key() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.connection_signature_verification_key_.ClearToEmpty();
ClearHasBit(_impl_._has_bits_[0],
0x00000010U);
}
inline const ::std::string& SharedCredential::connection_signature_verification_key() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_get:nearby.internal.SharedCredential.connection_signature_verification_key)
return _internal_connection_signature_verification_key();
}
template <typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void SharedCredential::set_connection_signature_verification_key(Arg_&& arg, Args_... args) {
::google::protobuf::internal::TSanWrite(&_impl_);
SetHasBit(_impl_._has_bits_[0], 0x00000010U);
_impl_.connection_signature_verification_key_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena());
// @@protoc_insertion_point(field_set:nearby.internal.SharedCredential.connection_signature_verification_key)
}
inline ::std::string* PROTOBUF_NONNULL SharedCredential::mutable_connection_signature_verification_key()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
SetHasBit(_impl_._has_bits_[0], 0x00000010U);
::std::string* _s = _internal_mutable_connection_signature_verification_key();
// @@protoc_insertion_point(field_mutable:nearby.internal.SharedCredential.connection_signature_verification_key)
return _s;
}
inline const ::std::string& SharedCredential::_internal_connection_signature_verification_key() const {
::google::protobuf::internal::TSanRead(&_impl_);
return _impl_.connection_signature_verification_key_.Get();
}
inline void SharedCredential::_internal_set_connection_signature_verification_key(const ::std::string& value) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.connection_signature_verification_key_.Set(value, GetArena());
}
inline ::std::string* PROTOBUF_NONNULL SharedCredential::_internal_mutable_connection_signature_verification_key() {
::google::protobuf::internal::TSanWrite(&_impl_);
return _impl_.connection_signature_verification_key_.Mutable( GetArena());
}
inline ::std::string* PROTOBUF_NULLABLE SharedCredential::release_connection_signature_verification_key() {
::google::protobuf::internal::TSanWrite(&_impl_);
// @@protoc_insertion_point(field_release:nearby.internal.SharedCredential.connection_signature_verification_key)
if (!CheckHasBit(_impl_._has_bits_[0], 0x00000010U)) {
return nullptr;
}
ClearHasBit(_impl_._has_bits_[0], 0x00000010U);
auto* released = _impl_.connection_signature_verification_key_.Release();
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
_impl_.connection_signature_verification_key_.Set("", GetArena());
}
return released;
}
inline void SharedCredential::set_allocated_connection_signature_verification_key(::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_.connection_signature_verification_key_.SetAllocated(value, GetArena());
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.connection_signature_verification_key_.IsDefault()) {
_impl_.connection_signature_verification_key_.Set("", GetArena());
}
// @@protoc_insertion_point(field_set_allocated:nearby.internal.SharedCredential.connection_signature_verification_key)
}
// bytes advertisement_signature_verification_key = 8;
inline void SharedCredential::clear_advertisement_signature_verification_key() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.advertisement_signature_verification_key_.ClearToEmpty();
ClearHasBit(_impl_._has_bits_[0],
0x00000020U);
}
inline const ::std::string& SharedCredential::advertisement_signature_verification_key() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_get:nearby.internal.SharedCredential.advertisement_signature_verification_key)
return _internal_advertisement_signature_verification_key();
}
template <typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void SharedCredential::set_advertisement_signature_verification_key(Arg_&& arg, Args_... args) {
::google::protobuf::internal::TSanWrite(&_impl_);
SetHasBit(_impl_._has_bits_[0], 0x00000020U);
_impl_.advertisement_signature_verification_key_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena());
// @@protoc_insertion_point(field_set:nearby.internal.SharedCredential.advertisement_signature_verification_key)
}
inline ::std::string* PROTOBUF_NONNULL SharedCredential::mutable_advertisement_signature_verification_key()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
SetHasBit(_impl_._has_bits_[0], 0x00000020U);
::std::string* _s = _internal_mutable_advertisement_signature_verification_key();
// @@protoc_insertion_point(field_mutable:nearby.internal.SharedCredential.advertisement_signature_verification_key)
return _s;
}
inline const ::std::string& SharedCredential::_internal_advertisement_signature_verification_key() const {
::google::protobuf::internal::TSanRead(&_impl_);
return _impl_.advertisement_signature_verification_key_.Get();
}
inline void SharedCredential::_internal_set_advertisement_signature_verification_key(const ::std::string& value) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.advertisement_signature_verification_key_.Set(value, GetArena());
}
inline ::std::string* PROTOBUF_NONNULL SharedCredential::_internal_mutable_advertisement_signature_verification_key() {
::google::protobuf::internal::TSanWrite(&_impl_);
return _impl_.advertisement_signature_verification_key_.Mutable( GetArena());
}
inline ::std::string* PROTOBUF_NULLABLE SharedCredential::release_advertisement_signature_verification_key() {
::google::protobuf::internal::TSanWrite(&_impl_);
// @@protoc_insertion_point(field_release:nearby.internal.SharedCredential.advertisement_signature_verification_key)
if (!CheckHasBit(_impl_._has_bits_[0], 0x00000020U)) {
return nullptr;
}
ClearHasBit(_impl_._has_bits_[0], 0x00000020U);
auto* released = _impl_.advertisement_signature_verification_key_.Release();
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
_impl_.advertisement_signature_verification_key_.Set("", GetArena());
}
return released;
}
inline void SharedCredential::set_allocated_advertisement_signature_verification_key(::std::string* PROTOBUF_NULLABLE value) {
::google::protobuf::internal::TSanWrite(&_impl_);
if (value != nullptr) {
SetHasBit(_impl_._has_bits_[0], 0x00000020U);
} else {
ClearHasBit(_impl_._has_bits_[0], 0x00000020U);
}
_impl_.advertisement_signature_verification_key_.SetAllocated(value, GetArena());
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.advertisement_signature_verification_key_.IsDefault()) {
_impl_.advertisement_signature_verification_key_.Set("", GetArena());
}
// @@protoc_insertion_point(field_set_allocated:nearby.internal.SharedCredential.advertisement_signature_verification_key)
}
// .nearby.internal.IdentityType identity_type = 9;
inline void SharedCredential::clear_identity_type() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.identity_type_ = 0;
ClearHasBit(_impl_._has_bits_[0],
0x00010000U);
}
inline ::nearby::internal::IdentityType SharedCredential::identity_type() const {
// @@protoc_insertion_point(field_get:nearby.internal.SharedCredential.identity_type)
return _internal_identity_type();
}
inline void SharedCredential::set_identity_type(::nearby::internal::IdentityType value) {
_internal_set_identity_type(value);
SetHasBit(_impl_._has_bits_[0], 0x00010000U);
// @@protoc_insertion_point(field_set:nearby.internal.SharedCredential.identity_type)
}
inline ::nearby::internal::IdentityType SharedCredential::_internal_identity_type() const {
::google::protobuf::internal::TSanRead(&_impl_);
return static_cast<::nearby::internal::IdentityType>(_impl_.identity_type_);
}
inline void SharedCredential::_internal_set_identity_type(::nearby::internal::IdentityType value) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.identity_type_ = value;
}
// bytes version = 10 [deprecated = true];
inline void SharedCredential::clear_version() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.version_.ClearToEmpty();
ClearHasBit(_impl_._has_bits_[0],
0x00000040U);
}
inline const ::std::string& SharedCredential::version() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_get:nearby.internal.SharedCredential.version)
return _internal_version();
}
template <typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void SharedCredential::set_version(Arg_&& arg, Args_... args) {
::google::protobuf::internal::TSanWrite(&_impl_);
SetHasBit(_impl_._has_bits_[0], 0x00000040U);
_impl_.version_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena());
// @@protoc_insertion_point(field_set:nearby.internal.SharedCredential.version)
}
inline ::std::string* PROTOBUF_NONNULL SharedCredential::mutable_version()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
SetHasBit(_impl_._has_bits_[0], 0x00000040U);
::std::string* _s = _internal_mutable_version();
// @@protoc_insertion_point(field_mutable:nearby.internal.SharedCredential.version)
return _s;
}
inline const ::std::string& SharedCredential::_internal_version() const {
::google::protobuf::internal::TSanRead(&_impl_);
return _impl_.version_.Get();
}
inline void SharedCredential::_internal_set_version(const ::std::string& value) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.version_.Set(value, GetArena());
}
inline ::std::string* PROTOBUF_NONNULL SharedCredential::_internal_mutable_version() {
::google::protobuf::internal::TSanWrite(&_impl_);
return _impl_.version_.Mutable( GetArena());
}
inline ::std::string* PROTOBUF_NULLABLE SharedCredential::release_version() {
::google::protobuf::internal::TSanWrite(&_impl_);
// @@protoc_insertion_point(field_release:nearby.internal.SharedCredential.version)
if (!CheckHasBit(_impl_._has_bits_[0], 0x00000040U)) {
return nullptr;
}
ClearHasBit(_impl_._has_bits_[0], 0x00000040U);
auto* released = _impl_.version_.Release();
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
_impl_.version_.Set("", GetArena());
}
return released;
}
inline void SharedCredential::set_allocated_version(::std::string* PROTOBUF_NULLABLE value) {
::google::protobuf::internal::TSanWrite(&_impl_);
if (value != nullptr) {
SetHasBit(_impl_._has_bits_[0], 0x00000040U);
} else {
ClearHasBit(_impl_._has_bits_[0], 0x00000040U);
}
_impl_.version_.SetAllocated(value, GetArena());
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.version_.IsDefault()) {
_impl_.version_.Set("", GetArena());
}
// @@protoc_insertion_point(field_set_allocated:nearby.internal.SharedCredential.version)
}
// .nearby.internal.CredentialType credential_type = 11;
inline void SharedCredential::clear_credential_type() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.credential_type_ = 0;
ClearHasBit(_impl_._has_bits_[0],
0x00020000U);
}
inline ::nearby::internal::CredentialType SharedCredential::credential_type() const {
// @@protoc_insertion_point(field_get:nearby.internal.SharedCredential.credential_type)
return _internal_credential_type();
}
inline void SharedCredential::set_credential_type(::nearby::internal::CredentialType value) {
_internal_set_credential_type(value);
SetHasBit(_impl_._has_bits_[0], 0x00020000U);
// @@protoc_insertion_point(field_set:nearby.internal.SharedCredential.credential_type)
}
inline ::nearby::internal::CredentialType SharedCredential::_internal_credential_type() const {
::google::protobuf::internal::TSanRead(&_impl_);
return static_cast<::nearby::internal::CredentialType>(_impl_.credential_type_);
}
inline void SharedCredential::_internal_set_credential_type(::nearby::internal::CredentialType value) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.credential_type_ = value;
}
// bytes encrypted_metadata_bytes_v1 = 12;
inline void SharedCredential::clear_encrypted_metadata_bytes_v1() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.encrypted_metadata_bytes_v1_.ClearToEmpty();
ClearHasBit(_impl_._has_bits_[0],
0x00000080U);
}
inline const ::std::string& SharedCredential::encrypted_metadata_bytes_v1() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_get:nearby.internal.SharedCredential.encrypted_metadata_bytes_v1)
return _internal_encrypted_metadata_bytes_v1();
}
template <typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void SharedCredential::set_encrypted_metadata_bytes_v1(Arg_&& arg, Args_... args) {
::google::protobuf::internal::TSanWrite(&_impl_);
SetHasBit(_impl_._has_bits_[0], 0x00000080U);
_impl_.encrypted_metadata_bytes_v1_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena());
// @@protoc_insertion_point(field_set:nearby.internal.SharedCredential.encrypted_metadata_bytes_v1)
}
inline ::std::string* PROTOBUF_NONNULL SharedCredential::mutable_encrypted_metadata_bytes_v1()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
SetHasBit(_impl_._has_bits_[0], 0x00000080U);
::std::string* _s = _internal_mutable_encrypted_metadata_bytes_v1();
// @@protoc_insertion_point(field_mutable:nearby.internal.SharedCredential.encrypted_metadata_bytes_v1)
return _s;
}
inline const ::std::string& SharedCredential::_internal_encrypted_metadata_bytes_v1() const {
::google::protobuf::internal::TSanRead(&_impl_);
return _impl_.encrypted_metadata_bytes_v1_.Get();
}
inline void SharedCredential::_internal_set_encrypted_metadata_bytes_v1(const ::std::string& value) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.encrypted_metadata_bytes_v1_.Set(value, GetArena());
}
inline ::std::string* PROTOBUF_NONNULL SharedCredential::_internal_mutable_encrypted_metadata_bytes_v1() {
::google::protobuf::internal::TSanWrite(&_impl_);
return _impl_.encrypted_metadata_bytes_v1_.Mutable( GetArena());
}
inline ::std::string* PROTOBUF_NULLABLE SharedCredential::release_encrypted_metadata_bytes_v1() {
::google::protobuf::internal::TSanWrite(&_impl_);
// @@protoc_insertion_point(field_release:nearby.internal.SharedCredential.encrypted_metadata_bytes_v1)
if (!CheckHasBit(_impl_._has_bits_[0], 0x00000080U)) {
return nullptr;
}
ClearHasBit(_impl_._has_bits_[0], 0x00000080U);
auto* released = _impl_.encrypted_metadata_bytes_v1_.Release();
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
_impl_.encrypted_metadata_bytes_v1_.Set("", GetArena());
}
return released;
}
inline void SharedCredential::set_allocated_encrypted_metadata_bytes_v1(::std::string* PROTOBUF_NULLABLE value) {
::google::protobuf::internal::TSanWrite(&_impl_);
if (value != nullptr) {
SetHasBit(_impl_._has_bits_[0], 0x00000080U);
} else {
ClearHasBit(_impl_._has_bits_[0], 0x00000080U);
}
_impl_.encrypted_metadata_bytes_v1_.SetAllocated(value, GetArena());
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.encrypted_metadata_bytes_v1_.IsDefault()) {
_impl_.encrypted_metadata_bytes_v1_.Set("", GetArena());
}
// @@protoc_insertion_point(field_set_allocated:nearby.internal.SharedCredential.encrypted_metadata_bytes_v1)
}
// bytes identity_token_short_salt_adv_hmac_key_v1 = 13;
inline void SharedCredential::clear_identity_token_short_salt_adv_hmac_key_v1() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.identity_token_short_salt_adv_hmac_key_v1_.ClearToEmpty();
ClearHasBit(_impl_._has_bits_[0],
0x00000100U);
}
inline const ::std::string& SharedCredential::identity_token_short_salt_adv_hmac_key_v1() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_get:nearby.internal.SharedCredential.identity_token_short_salt_adv_hmac_key_v1)
return _internal_identity_token_short_salt_adv_hmac_key_v1();
}
template <typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void SharedCredential::set_identity_token_short_salt_adv_hmac_key_v1(Arg_&& arg, Args_... args) {
::google::protobuf::internal::TSanWrite(&_impl_);
SetHasBit(_impl_._has_bits_[0], 0x00000100U);
_impl_.identity_token_short_salt_adv_hmac_key_v1_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena());
// @@protoc_insertion_point(field_set:nearby.internal.SharedCredential.identity_token_short_salt_adv_hmac_key_v1)
}
inline ::std::string* PROTOBUF_NONNULL SharedCredential::mutable_identity_token_short_salt_adv_hmac_key_v1()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
SetHasBit(_impl_._has_bits_[0], 0x00000100U);
::std::string* _s = _internal_mutable_identity_token_short_salt_adv_hmac_key_v1();
// @@protoc_insertion_point(field_mutable:nearby.internal.SharedCredential.identity_token_short_salt_adv_hmac_key_v1)
return _s;
}
inline const ::std::string& SharedCredential::_internal_identity_token_short_salt_adv_hmac_key_v1() const {
::google::protobuf::internal::TSanRead(&_impl_);
return _impl_.identity_token_short_salt_adv_hmac_key_v1_.Get();
}
inline void SharedCredential::_internal_set_identity_token_short_salt_adv_hmac_key_v1(const ::std::string& value) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.identity_token_short_salt_adv_hmac_key_v1_.Set(value, GetArena());
}
inline ::std::string* PROTOBUF_NONNULL SharedCredential::_internal_mutable_identity_token_short_salt_adv_hmac_key_v1() {
::google::protobuf::internal::TSanWrite(&_impl_);
return _impl_.identity_token_short_salt_adv_hmac_key_v1_.Mutable( GetArena());
}
inline ::std::string* PROTOBUF_NULLABLE SharedCredential::release_identity_token_short_salt_adv_hmac_key_v1() {
::google::protobuf::internal::TSanWrite(&_impl_);
// @@protoc_insertion_point(field_release:nearby.internal.SharedCredential.identity_token_short_salt_adv_hmac_key_v1)
if (!CheckHasBit(_impl_._has_bits_[0], 0x00000100U)) {
return nullptr;
}
ClearHasBit(_impl_._has_bits_[0], 0x00000100U);
auto* released = _impl_.identity_token_short_salt_adv_hmac_key_v1_.Release();
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
_impl_.identity_token_short_salt_adv_hmac_key_v1_.Set("", GetArena());
}
return released;
}
inline void SharedCredential::set_allocated_identity_token_short_salt_adv_hmac_key_v1(::std::string* PROTOBUF_NULLABLE value) {
::google::protobuf::internal::TSanWrite(&_impl_);
if (value != nullptr) {
SetHasBit(_impl_._has_bits_[0], 0x00000100U);
} else {
ClearHasBit(_impl_._has_bits_[0], 0x00000100U);
}
_impl_.identity_token_short_salt_adv_hmac_key_v1_.SetAllocated(value, GetArena());
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.identity_token_short_salt_adv_hmac_key_v1_.IsDefault()) {
_impl_.identity_token_short_salt_adv_hmac_key_v1_.Set("", GetArena());
}
// @@protoc_insertion_point(field_set_allocated:nearby.internal.SharedCredential.identity_token_short_salt_adv_hmac_key_v1)
}
// int64 id = 14;
inline void SharedCredential::clear_id() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.id_ = ::int64_t{0};
ClearHasBit(_impl_._has_bits_[0],
0x00040000U);
}
inline ::int64_t SharedCredential::id() const {
// @@protoc_insertion_point(field_get:nearby.internal.SharedCredential.id)
return _internal_id();
}
inline void SharedCredential::set_id(::int64_t value) {
_internal_set_id(value);
SetHasBit(_impl_._has_bits_[0], 0x00040000U);
// @@protoc_insertion_point(field_set:nearby.internal.SharedCredential.id)
}
inline ::int64_t SharedCredential::_internal_id() const {
::google::protobuf::internal::TSanRead(&_impl_);
return _impl_.id_;
}
inline void SharedCredential::_internal_set_id(::int64_t value) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.id_ = value;
}
// string dusi = 15;
inline void SharedCredential::clear_dusi() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.dusi_.ClearToEmpty();
ClearHasBit(_impl_._has_bits_[0],
0x00000200U);
}
inline const ::std::string& SharedCredential::dusi() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_get:nearby.internal.SharedCredential.dusi)
return _internal_dusi();
}
template <typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void SharedCredential::set_dusi(Arg_&& arg, Args_... args) {
::google::protobuf::internal::TSanWrite(&_impl_);
SetHasBit(_impl_._has_bits_[0], 0x00000200U);
_impl_.dusi_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
// @@protoc_insertion_point(field_set:nearby.internal.SharedCredential.dusi)
}
inline ::std::string* PROTOBUF_NONNULL SharedCredential::mutable_dusi()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
SetHasBit(_impl_._has_bits_[0], 0x00000200U);
::std::string* _s = _internal_mutable_dusi();
// @@protoc_insertion_point(field_mutable:nearby.internal.SharedCredential.dusi)
return _s;
}
inline const ::std::string& SharedCredential::_internal_dusi() const {
::google::protobuf::internal::TSanRead(&_impl_);
return _impl_.dusi_.Get();
}
inline void SharedCredential::_internal_set_dusi(const ::std::string& value) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.dusi_.Set(value, GetArena());
}
inline ::std::string* PROTOBUF_NONNULL SharedCredential::_internal_mutable_dusi() {
::google::protobuf::internal::TSanWrite(&_impl_);
return _impl_.dusi_.Mutable( GetArena());
}
inline ::std::string* PROTOBUF_NULLABLE SharedCredential::release_dusi() {
::google::protobuf::internal::TSanWrite(&_impl_);
// @@protoc_insertion_point(field_release:nearby.internal.SharedCredential.dusi)
if (!CheckHasBit(_impl_._has_bits_[0], 0x00000200U)) {
return nullptr;
}
ClearHasBit(_impl_._has_bits_[0], 0x00000200U);
auto* released = _impl_.dusi_.Release();
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
_impl_.dusi_.Set("", GetArena());
}
return released;
}
inline void SharedCredential::set_allocated_dusi(::std::string* PROTOBUF_NULLABLE value) {
::google::protobuf::internal::TSanWrite(&_impl_);
if (value != nullptr) {
SetHasBit(_impl_._has_bits_[0], 0x00000200U);
} else {
ClearHasBit(_impl_._has_bits_[0], 0x00000200U);
}
_impl_.dusi_.SetAllocated(value, GetArena());
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.dusi_.IsDefault()) {
_impl_.dusi_.Set("", GetArena());
}
// @@protoc_insertion_point(field_set_allocated:nearby.internal.SharedCredential.dusi)
}
// string signature_version = 16 [deprecated = true];
inline void SharedCredential::clear_signature_version() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.signature_version_.ClearToEmpty();
ClearHasBit(_impl_._has_bits_[0],
0x00000400U);
}
inline const ::std::string& SharedCredential::signature_version() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_get:nearby.internal.SharedCredential.signature_version)
return _internal_signature_version();
}
template <typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void SharedCredential::set_signature_version(Arg_&& arg, Args_... args) {
::google::protobuf::internal::TSanWrite(&_impl_);
SetHasBit(_impl_._has_bits_[0], 0x00000400U);
_impl_.signature_version_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
// @@protoc_insertion_point(field_set:nearby.internal.SharedCredential.signature_version)
}
inline ::std::string* PROTOBUF_NONNULL SharedCredential::mutable_signature_version()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
SetHasBit(_impl_._has_bits_[0], 0x00000400U);
::std::string* _s = _internal_mutable_signature_version();
// @@protoc_insertion_point(field_mutable:nearby.internal.SharedCredential.signature_version)
return _s;
}
inline const ::std::string& SharedCredential::_internal_signature_version() const {
::google::protobuf::internal::TSanRead(&_impl_);
return _impl_.signature_version_.Get();
}
inline void SharedCredential::_internal_set_signature_version(const ::std::string& value) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.signature_version_.Set(value, GetArena());
}
inline ::std::string* PROTOBUF_NONNULL SharedCredential::_internal_mutable_signature_version() {
::google::protobuf::internal::TSanWrite(&_impl_);
return _impl_.signature_version_.Mutable( GetArena());
}
inline ::std::string* PROTOBUF_NULLABLE SharedCredential::release_signature_version() {
::google::protobuf::internal::TSanWrite(&_impl_);
// @@protoc_insertion_point(field_release:nearby.internal.SharedCredential.signature_version)
if (!CheckHasBit(_impl_._has_bits_[0], 0x00000400U)) {
return nullptr;
}
ClearHasBit(_impl_._has_bits_[0], 0x00000400U);
auto* released = _impl_.signature_version_.Release();
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
_impl_.signature_version_.Set("", GetArena());
}
return released;
}
inline void SharedCredential::set_allocated_signature_version(::std::string* PROTOBUF_NULLABLE value) {
::google::protobuf::internal::TSanWrite(&_impl_);
if (value != nullptr) {
SetHasBit(_impl_._has_bits_[0], 0x00000400U);
} else {
ClearHasBit(_impl_._has_bits_[0], 0x00000400U);
}
_impl_.signature_version_.SetAllocated(value, GetArena());
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.signature_version_.IsDefault()) {
_impl_.signature_version_.Set("", GetArena());
}
// @@protoc_insertion_point(field_set_allocated:nearby.internal.SharedCredential.signature_version)
}
// bytes identity_token_extended_salt_adv_hmac_key_v1 = 17;
inline void SharedCredential::clear_identity_token_extended_salt_adv_hmac_key_v1() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.identity_token_extended_salt_adv_hmac_key_v1_.ClearToEmpty();
ClearHasBit(_impl_._has_bits_[0],
0x00000800U);
}
inline const ::std::string& SharedCredential::identity_token_extended_salt_adv_hmac_key_v1() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_get:nearby.internal.SharedCredential.identity_token_extended_salt_adv_hmac_key_v1)
return _internal_identity_token_extended_salt_adv_hmac_key_v1();
}
template <typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void SharedCredential::set_identity_token_extended_salt_adv_hmac_key_v1(Arg_&& arg, Args_... args) {
::google::protobuf::internal::TSanWrite(&_impl_);
SetHasBit(_impl_._has_bits_[0], 0x00000800U);
_impl_.identity_token_extended_salt_adv_hmac_key_v1_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena());
// @@protoc_insertion_point(field_set:nearby.internal.SharedCredential.identity_token_extended_salt_adv_hmac_key_v1)
}
inline ::std::string* PROTOBUF_NONNULL SharedCredential::mutable_identity_token_extended_salt_adv_hmac_key_v1()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
SetHasBit(_impl_._has_bits_[0], 0x00000800U);
::std::string* _s = _internal_mutable_identity_token_extended_salt_adv_hmac_key_v1();
// @@protoc_insertion_point(field_mutable:nearby.internal.SharedCredential.identity_token_extended_salt_adv_hmac_key_v1)
return _s;
}
inline const ::std::string& SharedCredential::_internal_identity_token_extended_salt_adv_hmac_key_v1() const {
::google::protobuf::internal::TSanRead(&_impl_);
return _impl_.identity_token_extended_salt_adv_hmac_key_v1_.Get();
}
inline void SharedCredential::_internal_set_identity_token_extended_salt_adv_hmac_key_v1(const ::std::string& value) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.identity_token_extended_salt_adv_hmac_key_v1_.Set(value, GetArena());
}
inline ::std::string* PROTOBUF_NONNULL SharedCredential::_internal_mutable_identity_token_extended_salt_adv_hmac_key_v1() {
::google::protobuf::internal::TSanWrite(&_impl_);
return _impl_.identity_token_extended_salt_adv_hmac_key_v1_.Mutable( GetArena());
}
inline ::std::string* PROTOBUF_NULLABLE SharedCredential::release_identity_token_extended_salt_adv_hmac_key_v1() {
::google::protobuf::internal::TSanWrite(&_impl_);
// @@protoc_insertion_point(field_release:nearby.internal.SharedCredential.identity_token_extended_salt_adv_hmac_key_v1)
if (!CheckHasBit(_impl_._has_bits_[0], 0x00000800U)) {
return nullptr;
}
ClearHasBit(_impl_._has_bits_[0], 0x00000800U);
auto* released = _impl_.identity_token_extended_salt_adv_hmac_key_v1_.Release();
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
_impl_.identity_token_extended_salt_adv_hmac_key_v1_.Set("", GetArena());
}
return released;
}
inline void SharedCredential::set_allocated_identity_token_extended_salt_adv_hmac_key_v1(::std::string* PROTOBUF_NULLABLE value) {
::google::protobuf::internal::TSanWrite(&_impl_);
if (value != nullptr) {
SetHasBit(_impl_._has_bits_[0], 0x00000800U);
} else {
ClearHasBit(_impl_._has_bits_[0], 0x00000800U);
}
_impl_.identity_token_extended_salt_adv_hmac_key_v1_.SetAllocated(value, GetArena());
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.identity_token_extended_salt_adv_hmac_key_v1_.IsDefault()) {
_impl_.identity_token_extended_salt_adv_hmac_key_v1_.Set("", GetArena());
}
// @@protoc_insertion_point(field_set_allocated:nearby.internal.SharedCredential.identity_token_extended_salt_adv_hmac_key_v1)
}
// bytes identity_token_signed_adv_hmac_key_v1 = 18;
inline void SharedCredential::clear_identity_token_signed_adv_hmac_key_v1() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.identity_token_signed_adv_hmac_key_v1_.ClearToEmpty();
ClearHasBit(_impl_._has_bits_[0],
0x00001000U);
}
inline const ::std::string& SharedCredential::identity_token_signed_adv_hmac_key_v1() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_get:nearby.internal.SharedCredential.identity_token_signed_adv_hmac_key_v1)
return _internal_identity_token_signed_adv_hmac_key_v1();
}
template <typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void SharedCredential::set_identity_token_signed_adv_hmac_key_v1(Arg_&& arg, Args_... args) {
::google::protobuf::internal::TSanWrite(&_impl_);
SetHasBit(_impl_._has_bits_[0], 0x00001000U);
_impl_.identity_token_signed_adv_hmac_key_v1_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena());
// @@protoc_insertion_point(field_set:nearby.internal.SharedCredential.identity_token_signed_adv_hmac_key_v1)
}
inline ::std::string* PROTOBUF_NONNULL SharedCredential::mutable_identity_token_signed_adv_hmac_key_v1()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
SetHasBit(_impl_._has_bits_[0], 0x00001000U);
::std::string* _s = _internal_mutable_identity_token_signed_adv_hmac_key_v1();
// @@protoc_insertion_point(field_mutable:nearby.internal.SharedCredential.identity_token_signed_adv_hmac_key_v1)
return _s;
}
inline const ::std::string& SharedCredential::_internal_identity_token_signed_adv_hmac_key_v1() const {
::google::protobuf::internal::TSanRead(&_impl_);
return _impl_.identity_token_signed_adv_hmac_key_v1_.Get();
}
inline void SharedCredential::_internal_set_identity_token_signed_adv_hmac_key_v1(const ::std::string& value) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.identity_token_signed_adv_hmac_key_v1_.Set(value, GetArena());
}
inline ::std::string* PROTOBUF_NONNULL SharedCredential::_internal_mutable_identity_token_signed_adv_hmac_key_v1() {
::google::protobuf::internal::TSanWrite(&_impl_);
return _impl_.identity_token_signed_adv_hmac_key_v1_.Mutable( GetArena());
}
inline ::std::string* PROTOBUF_NULLABLE SharedCredential::release_identity_token_signed_adv_hmac_key_v1() {
::google::protobuf::internal::TSanWrite(&_impl_);
// @@protoc_insertion_point(field_release:nearby.internal.SharedCredential.identity_token_signed_adv_hmac_key_v1)
if (!CheckHasBit(_impl_._has_bits_[0], 0x00001000U)) {
return nullptr;
}
ClearHasBit(_impl_._has_bits_[0], 0x00001000U);
auto* released = _impl_.identity_token_signed_adv_hmac_key_v1_.Release();
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
_impl_.identity_token_signed_adv_hmac_key_v1_.Set("", GetArena());
}
return released;
}
inline void SharedCredential::set_allocated_identity_token_signed_adv_hmac_key_v1(::std::string* PROTOBUF_NULLABLE value) {
::google::protobuf::internal::TSanWrite(&_impl_);
if (value != nullptr) {
SetHasBit(_impl_._has_bits_[0], 0x00001000U);
} else {
ClearHasBit(_impl_._has_bits_[0], 0x00001000U);
}
_impl_.identity_token_signed_adv_hmac_key_v1_.SetAllocated(value, GetArena());
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.identity_token_signed_adv_hmac_key_v1_.IsDefault()) {
_impl_.identity_token_signed_adv_hmac_key_v1_.Set("", GetArena());
}
// @@protoc_insertion_point(field_set_allocated:nearby.internal.SharedCredential.identity_token_signed_adv_hmac_key_v1)
}
// int64 credential_version = 19;
inline void SharedCredential::clear_credential_version() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.credential_version_ = ::int64_t{0};
ClearHasBit(_impl_._has_bits_[0],
0x00080000U);
}
inline ::int64_t SharedCredential::credential_version() const {
// @@protoc_insertion_point(field_get:nearby.internal.SharedCredential.credential_version)
return _internal_credential_version();
}
inline void SharedCredential::set_credential_version(::int64_t value) {
_internal_set_credential_version(value);
SetHasBit(_impl_._has_bits_[0], 0x00080000U);
// @@protoc_insertion_point(field_set:nearby.internal.SharedCredential.credential_version)
}
inline ::int64_t SharedCredential::_internal_credential_version() const {
::google::protobuf::internal::TSanRead(&_impl_);
return _impl_.credential_version_;
}
inline void SharedCredential::_internal_set_credential_version(::int64_t value) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.credential_version_ = value;
}
// bytes rust_encrypted_metadata_bytes_v0 = 20;
inline void SharedCredential::clear_rust_encrypted_metadata_bytes_v0() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.rust_encrypted_metadata_bytes_v0_.ClearToEmpty();
ClearHasBit(_impl_._has_bits_[0],
0x00002000U);
}
inline const ::std::string& SharedCredential::rust_encrypted_metadata_bytes_v0() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_get:nearby.internal.SharedCredential.rust_encrypted_metadata_bytes_v0)
return _internal_rust_encrypted_metadata_bytes_v0();
}
template <typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void SharedCredential::set_rust_encrypted_metadata_bytes_v0(Arg_&& arg, Args_... args) {
::google::protobuf::internal::TSanWrite(&_impl_);
SetHasBit(_impl_._has_bits_[0], 0x00002000U);
_impl_.rust_encrypted_metadata_bytes_v0_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena());
// @@protoc_insertion_point(field_set:nearby.internal.SharedCredential.rust_encrypted_metadata_bytes_v0)
}
inline ::std::string* PROTOBUF_NONNULL SharedCredential::mutable_rust_encrypted_metadata_bytes_v0()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
SetHasBit(_impl_._has_bits_[0], 0x00002000U);
::std::string* _s = _internal_mutable_rust_encrypted_metadata_bytes_v0();
// @@protoc_insertion_point(field_mutable:nearby.internal.SharedCredential.rust_encrypted_metadata_bytes_v0)
return _s;
}
inline const ::std::string& SharedCredential::_internal_rust_encrypted_metadata_bytes_v0() const {
::google::protobuf::internal::TSanRead(&_impl_);
return _impl_.rust_encrypted_metadata_bytes_v0_.Get();
}
inline void SharedCredential::_internal_set_rust_encrypted_metadata_bytes_v0(const ::std::string& value) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.rust_encrypted_metadata_bytes_v0_.Set(value, GetArena());
}
inline ::std::string* PROTOBUF_NONNULL SharedCredential::_internal_mutable_rust_encrypted_metadata_bytes_v0() {
::google::protobuf::internal::TSanWrite(&_impl_);
return _impl_.rust_encrypted_metadata_bytes_v0_.Mutable( GetArena());
}
inline ::std::string* PROTOBUF_NULLABLE SharedCredential::release_rust_encrypted_metadata_bytes_v0() {
::google::protobuf::internal::TSanWrite(&_impl_);
// @@protoc_insertion_point(field_release:nearby.internal.SharedCredential.rust_encrypted_metadata_bytes_v0)
if (!CheckHasBit(_impl_._has_bits_[0], 0x00002000U)) {
return nullptr;
}
ClearHasBit(_impl_._has_bits_[0], 0x00002000U);
auto* released = _impl_.rust_encrypted_metadata_bytes_v0_.Release();
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
_impl_.rust_encrypted_metadata_bytes_v0_.Set("", GetArena());
}
return released;
}
inline void SharedCredential::set_allocated_rust_encrypted_metadata_bytes_v0(::std::string* PROTOBUF_NULLABLE value) {
::google::protobuf::internal::TSanWrite(&_impl_);
if (value != nullptr) {
SetHasBit(_impl_._has_bits_[0], 0x00002000U);
} else {
ClearHasBit(_impl_._has_bits_[0], 0x00002000U);
}
_impl_.rust_encrypted_metadata_bytes_v0_.SetAllocated(value, GetArena());
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.rust_encrypted_metadata_bytes_v0_.IsDefault()) {
_impl_.rust_encrypted_metadata_bytes_v0_.Set("", GetArena());
}
// @@protoc_insertion_point(field_set_allocated:nearby.internal.SharedCredential.rust_encrypted_metadata_bytes_v0)
}
#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::IdentityType> : std::true_type {};
template <>
struct is_proto_enum<::nearby::internal::CredentialType> : std::true_type {};
} // namespace protobuf
} // namespace google
// @@protoc_insertion_point(global_scope)
#include "google/protobuf/port_undef.inc"
#endif // internal_2fproto_2fcredential_2eproto_2epb_2eh