mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 14:46:12 -04:00
1570 lines
69 KiB
C++
1570 lines
69 KiB
C++
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// NO CHECKED-IN PROTOBUF GENCODE
|
|
// source: internal/proto/local_credential.proto
|
|
// Protobuf C++ Version: 6.33.3
|
|
|
|
#ifndef internal_2fproto_2flocal_5fcredential_2eproto_2epb_2eh
|
|
#define internal_2fproto_2flocal_5fcredential_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/map.h" // IWYU pragma: export
|
|
#include "google/protobuf/map_type_handler.h" // IWYU pragma: export
|
|
#include "google/protobuf/map_field_lite.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_2flocal_5fcredential_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_2flocal_5fcredential_2eproto {
|
|
static const ::uint32_t offsets[];
|
|
};
|
|
namespace nearby {
|
|
namespace internal {
|
|
class LocalCredential;
|
|
struct LocalCredentialDefaultTypeInternal;
|
|
extern LocalCredentialDefaultTypeInternal _LocalCredential_default_instance_;
|
|
extern const ::google::protobuf::internal::ClassDataLite<32> LocalCredential_class_data_;
|
|
class LocalCredential_PrivateKey;
|
|
struct LocalCredential_PrivateKeyDefaultTypeInternal;
|
|
extern LocalCredential_PrivateKeyDefaultTypeInternal _LocalCredential_PrivateKey_default_instance_;
|
|
extern const ::google::protobuf::internal::ClassDataLite<43> LocalCredential_PrivateKey_class_data_;
|
|
} // namespace internal
|
|
} // namespace nearby
|
|
namespace google {
|
|
namespace protobuf {
|
|
} // namespace protobuf
|
|
} // namespace google
|
|
|
|
namespace nearby {
|
|
namespace internal {
|
|
|
|
// ===================================================================
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
class LocalCredential_PrivateKey final : public ::google::protobuf::MessageLite
|
|
/* @@protoc_insertion_point(class_definition:nearby.internal.LocalCredential.PrivateKey) */ {
|
|
public:
|
|
inline LocalCredential_PrivateKey() : LocalCredential_PrivateKey(nullptr) {}
|
|
~LocalCredential_PrivateKey() PROTOBUF_FINAL;
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
void operator delete(LocalCredential_PrivateKey* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
|
|
SharedDtor(*msg);
|
|
::google::protobuf::internal::SizedDelete(msg, sizeof(LocalCredential_PrivateKey));
|
|
}
|
|
#endif
|
|
|
|
template <typename = void>
|
|
explicit PROTOBUF_CONSTEXPR LocalCredential_PrivateKey(::google::protobuf::internal::ConstantInitialized);
|
|
|
|
inline LocalCredential_PrivateKey(const LocalCredential_PrivateKey& from) : LocalCredential_PrivateKey(nullptr, from) {}
|
|
inline LocalCredential_PrivateKey(LocalCredential_PrivateKey&& from) noexcept
|
|
: LocalCredential_PrivateKey(nullptr, ::std::move(from)) {}
|
|
inline LocalCredential_PrivateKey& operator=(const LocalCredential_PrivateKey& from) {
|
|
CopyFrom(from);
|
|
return *this;
|
|
}
|
|
inline LocalCredential_PrivateKey& operator=(LocalCredential_PrivateKey&& 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 LocalCredential_PrivateKey& default_instance() {
|
|
return *reinterpret_cast<const LocalCredential_PrivateKey*>(
|
|
&_LocalCredential_PrivateKey_default_instance_);
|
|
}
|
|
static constexpr int kIndexInFileMessages = 0;
|
|
friend void swap(LocalCredential_PrivateKey& a, LocalCredential_PrivateKey& b) { a.Swap(&b); }
|
|
inline void Swap(LocalCredential_PrivateKey* 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(LocalCredential_PrivateKey* PROTOBUF_NONNULL other) {
|
|
if (other == this) return;
|
|
ABSL_DCHECK(GetArena() == other->GetArena());
|
|
InternalSwap(other);
|
|
}
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
LocalCredential_PrivateKey* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
|
|
return ::google::protobuf::MessageLite::DefaultConstruct<LocalCredential_PrivateKey>(arena);
|
|
}
|
|
void CopyFrom(const LocalCredential_PrivateKey& from);
|
|
void MergeFrom(const LocalCredential_PrivateKey& from) { LocalCredential_PrivateKey::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(LocalCredential_PrivateKey* PROTOBUF_NONNULL other);
|
|
private:
|
|
template <typename T>
|
|
friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
|
|
static ::absl::string_view FullMessageName() { return "nearby.internal.LocalCredential.PrivateKey"; }
|
|
|
|
explicit LocalCredential_PrivateKey(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
|
|
LocalCredential_PrivateKey(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const LocalCredential_PrivateKey& from);
|
|
LocalCredential_PrivateKey(
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, LocalCredential_PrivateKey&& from) noexcept
|
|
: LocalCredential_PrivateKey(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 {
|
|
kCertificateAliasFieldNumber = 1,
|
|
kKeyFieldNumber = 2,
|
|
kEncryptedKeyFieldNumber = 3,
|
|
};
|
|
// string certificate_alias = 1;
|
|
void clear_certificate_alias() ;
|
|
const ::std::string& certificate_alias() const;
|
|
template <typename Arg_ = const ::std::string&, typename... Args_>
|
|
void set_certificate_alias(Arg_&& arg, Args_... args);
|
|
::std::string* PROTOBUF_NONNULL mutable_certificate_alias();
|
|
[[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_certificate_alias();
|
|
void set_allocated_certificate_alias(::std::string* PROTOBUF_NULLABLE value);
|
|
|
|
private:
|
|
const ::std::string& _internal_certificate_alias() const;
|
|
PROTOBUF_ALWAYS_INLINE void _internal_set_certificate_alias(const ::std::string& value);
|
|
::std::string* PROTOBUF_NONNULL _internal_mutable_certificate_alias();
|
|
|
|
public:
|
|
// bytes key = 2;
|
|
void clear_key() ;
|
|
const ::std::string& key() const;
|
|
template <typename Arg_ = const ::std::string&, typename... Args_>
|
|
void set_key(Arg_&& arg, Args_... args);
|
|
::std::string* PROTOBUF_NONNULL mutable_key();
|
|
[[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_key();
|
|
void set_allocated_key(::std::string* PROTOBUF_NULLABLE value);
|
|
|
|
private:
|
|
const ::std::string& _internal_key() const;
|
|
PROTOBUF_ALWAYS_INLINE void _internal_set_key(const ::std::string& value);
|
|
::std::string* PROTOBUF_NONNULL _internal_mutable_key();
|
|
|
|
public:
|
|
// bytes encrypted_key = 3;
|
|
void clear_encrypted_key() ;
|
|
const ::std::string& encrypted_key() const;
|
|
template <typename Arg_ = const ::std::string&, typename... Args_>
|
|
void set_encrypted_key(Arg_&& arg, Args_... args);
|
|
::std::string* PROTOBUF_NONNULL mutable_encrypted_key();
|
|
[[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_encrypted_key();
|
|
void set_allocated_encrypted_key(::std::string* PROTOBUF_NULLABLE value);
|
|
|
|
private:
|
|
const ::std::string& _internal_encrypted_key() const;
|
|
PROTOBUF_ALWAYS_INLINE void _internal_set_encrypted_key(const ::std::string& value);
|
|
::std::string* PROTOBUF_NONNULL _internal_mutable_encrypted_key();
|
|
|
|
public:
|
|
// @@protoc_insertion_point(class_scope:nearby.internal.LocalCredential.PrivateKey)
|
|
private:
|
|
class _Internal;
|
|
friend class ::google::protobuf::internal::TcParser;
|
|
static const ::google::protobuf::internal::TcParseTable<2, 3,
|
|
0, 68,
|
|
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 LocalCredential_PrivateKey& from_msg);
|
|
::google::protobuf::internal::HasBits<1> _has_bits_;
|
|
::google::protobuf::internal::CachedSize _cached_size_;
|
|
::google::protobuf::internal::ArenaStringPtr certificate_alias_;
|
|
::google::protobuf::internal::ArenaStringPtr key_;
|
|
::google::protobuf::internal::ArenaStringPtr encrypted_key_;
|
|
PROTOBUF_TSAN_DECLARE_MEMBER
|
|
};
|
|
union { Impl_ _impl_; };
|
|
friend struct ::TableStruct_internal_2fproto_2flocal_5fcredential_2eproto;
|
|
};
|
|
|
|
extern const ::google::protobuf::internal::ClassDataLite<43> LocalCredential_PrivateKey_class_data_;
|
|
// -------------------------------------------------------------------
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
class LocalCredential final : public ::google::protobuf::MessageLite
|
|
/* @@protoc_insertion_point(class_definition:nearby.internal.LocalCredential) */ {
|
|
public:
|
|
inline LocalCredential() : LocalCredential(nullptr) {}
|
|
~LocalCredential() PROTOBUF_FINAL;
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
void operator delete(LocalCredential* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
|
|
SharedDtor(*msg);
|
|
::google::protobuf::internal::SizedDelete(msg, sizeof(LocalCredential));
|
|
}
|
|
#endif
|
|
|
|
template <typename = void>
|
|
explicit PROTOBUF_CONSTEXPR LocalCredential(::google::protobuf::internal::ConstantInitialized);
|
|
|
|
inline LocalCredential(const LocalCredential& from) : LocalCredential(nullptr, from) {}
|
|
inline LocalCredential(LocalCredential&& from) noexcept
|
|
: LocalCredential(nullptr, ::std::move(from)) {}
|
|
inline LocalCredential& operator=(const LocalCredential& from) {
|
|
CopyFrom(from);
|
|
return *this;
|
|
}
|
|
inline LocalCredential& operator=(LocalCredential&& 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 LocalCredential& default_instance() {
|
|
return *reinterpret_cast<const LocalCredential*>(
|
|
&_LocalCredential_default_instance_);
|
|
}
|
|
static constexpr int kIndexInFileMessages = 2;
|
|
friend void swap(LocalCredential& a, LocalCredential& b) { a.Swap(&b); }
|
|
inline void Swap(LocalCredential* 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(LocalCredential* PROTOBUF_NONNULL other) {
|
|
if (other == this) return;
|
|
ABSL_DCHECK(GetArena() == other->GetArena());
|
|
InternalSwap(other);
|
|
}
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
LocalCredential* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
|
|
return ::google::protobuf::MessageLite::DefaultConstruct<LocalCredential>(arena);
|
|
}
|
|
void CopyFrom(const LocalCredential& from);
|
|
void MergeFrom(const LocalCredential& from) { LocalCredential::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(LocalCredential* PROTOBUF_NONNULL other);
|
|
private:
|
|
template <typename T>
|
|
friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
|
|
static ::absl::string_view FullMessageName() { return "nearby.internal.LocalCredential"; }
|
|
|
|
explicit LocalCredential(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
|
|
LocalCredential(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const LocalCredential& from);
|
|
LocalCredential(
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, LocalCredential&& from) noexcept
|
|
: LocalCredential(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 ----------------------------------------------------
|
|
using PrivateKey = LocalCredential_PrivateKey;
|
|
|
|
// accessors -------------------------------------------------------
|
|
enum : int {
|
|
kSecretIdFieldNumber = 1,
|
|
kKeySeedFieldNumber = 2,
|
|
kMetadataEncryptionKeyV0FieldNumber = 5,
|
|
kIdentityTokenV1FieldNumber = 10,
|
|
kSignatureVersionFieldNumber = 12,
|
|
kAdvertisementSigningKeyFieldNumber = 6,
|
|
kConnectionSigningKeyFieldNumber = 7,
|
|
kStartTimeMillisFieldNumber = 3,
|
|
kEndTimeMillisFieldNumber = 4,
|
|
kIdFieldNumber = 11,
|
|
kCredentialVersionFieldNumber = 13,
|
|
kIdentityTypeFieldNumber = 8,
|
|
kConsumedSaltsFieldNumber = 9,
|
|
};
|
|
// 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 metadata_encryption_key_v0 = 5;
|
|
void clear_metadata_encryption_key_v0() ;
|
|
const ::std::string& metadata_encryption_key_v0() const;
|
|
template <typename Arg_ = const ::std::string&, typename... Args_>
|
|
void set_metadata_encryption_key_v0(Arg_&& arg, Args_... args);
|
|
::std::string* PROTOBUF_NONNULL mutable_metadata_encryption_key_v0();
|
|
[[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_metadata_encryption_key_v0();
|
|
void set_allocated_metadata_encryption_key_v0(::std::string* PROTOBUF_NULLABLE value);
|
|
|
|
private:
|
|
const ::std::string& _internal_metadata_encryption_key_v0() const;
|
|
PROTOBUF_ALWAYS_INLINE void _internal_set_metadata_encryption_key_v0(const ::std::string& value);
|
|
::std::string* PROTOBUF_NONNULL _internal_mutable_metadata_encryption_key_v0();
|
|
|
|
public:
|
|
// bytes identity_token_v1 = 10;
|
|
void clear_identity_token_v1() ;
|
|
const ::std::string& identity_token_v1() const;
|
|
template <typename Arg_ = const ::std::string&, typename... Args_>
|
|
void set_identity_token_v1(Arg_&& arg, Args_... args);
|
|
::std::string* PROTOBUF_NONNULL mutable_identity_token_v1();
|
|
[[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_identity_token_v1();
|
|
void set_allocated_identity_token_v1(::std::string* PROTOBUF_NULLABLE value);
|
|
|
|
private:
|
|
const ::std::string& _internal_identity_token_v1() const;
|
|
PROTOBUF_ALWAYS_INLINE void _internal_set_identity_token_v1(const ::std::string& value);
|
|
::std::string* PROTOBUF_NONNULL _internal_mutable_identity_token_v1();
|
|
|
|
public:
|
|
// string signature_version = 12 [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:
|
|
// .nearby.internal.LocalCredential.PrivateKey advertisement_signing_key = 6;
|
|
bool has_advertisement_signing_key() const;
|
|
void clear_advertisement_signing_key() ;
|
|
const ::nearby::internal::LocalCredential_PrivateKey& advertisement_signing_key() const;
|
|
[[nodiscard]] ::nearby::internal::LocalCredential_PrivateKey* PROTOBUF_NULLABLE release_advertisement_signing_key();
|
|
::nearby::internal::LocalCredential_PrivateKey* PROTOBUF_NONNULL mutable_advertisement_signing_key();
|
|
void set_allocated_advertisement_signing_key(::nearby::internal::LocalCredential_PrivateKey* PROTOBUF_NULLABLE value);
|
|
void unsafe_arena_set_allocated_advertisement_signing_key(::nearby::internal::LocalCredential_PrivateKey* PROTOBUF_NULLABLE value);
|
|
::nearby::internal::LocalCredential_PrivateKey* PROTOBUF_NULLABLE unsafe_arena_release_advertisement_signing_key();
|
|
|
|
private:
|
|
const ::nearby::internal::LocalCredential_PrivateKey& _internal_advertisement_signing_key() const;
|
|
::nearby::internal::LocalCredential_PrivateKey* PROTOBUF_NONNULL _internal_mutable_advertisement_signing_key();
|
|
|
|
public:
|
|
// .nearby.internal.LocalCredential.PrivateKey connection_signing_key = 7;
|
|
bool has_connection_signing_key() const;
|
|
void clear_connection_signing_key() ;
|
|
const ::nearby::internal::LocalCredential_PrivateKey& connection_signing_key() const;
|
|
[[nodiscard]] ::nearby::internal::LocalCredential_PrivateKey* PROTOBUF_NULLABLE release_connection_signing_key();
|
|
::nearby::internal::LocalCredential_PrivateKey* PROTOBUF_NONNULL mutable_connection_signing_key();
|
|
void set_allocated_connection_signing_key(::nearby::internal::LocalCredential_PrivateKey* PROTOBUF_NULLABLE value);
|
|
void unsafe_arena_set_allocated_connection_signing_key(::nearby::internal::LocalCredential_PrivateKey* PROTOBUF_NULLABLE value);
|
|
::nearby::internal::LocalCredential_PrivateKey* PROTOBUF_NULLABLE unsafe_arena_release_connection_signing_key();
|
|
|
|
private:
|
|
const ::nearby::internal::LocalCredential_PrivateKey& _internal_connection_signing_key() const;
|
|
::nearby::internal::LocalCredential_PrivateKey* PROTOBUF_NONNULL _internal_mutable_connection_signing_key();
|
|
|
|
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:
|
|
// int64 id = 11;
|
|
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 = 13;
|
|
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:
|
|
// .nearby.internal.IdentityType identity_type = 8;
|
|
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:
|
|
// map<uint32, bool> consumed_salts = 9;
|
|
int consumed_salts_size() const;
|
|
private:
|
|
int _internal_consumed_salts_size() const;
|
|
|
|
public:
|
|
void clear_consumed_salts() ;
|
|
const ::google::protobuf::Map<::uint32_t, bool>& consumed_salts() const;
|
|
::google::protobuf::Map<::uint32_t, bool>* PROTOBUF_NONNULL mutable_consumed_salts();
|
|
|
|
private:
|
|
const ::google::protobuf::Map<::uint32_t, bool>& _internal_consumed_salts() const;
|
|
::google::protobuf::Map<::uint32_t, bool>* PROTOBUF_NONNULL _internal_mutable_consumed_salts();
|
|
|
|
public:
|
|
// @@protoc_insertion_point(class_scope:nearby.internal.LocalCredential)
|
|
private:
|
|
class _Internal;
|
|
friend class ::google::protobuf::internal::TcParser;
|
|
static const ::google::protobuf::internal::TcParseTable<4, 13,
|
|
3, 65,
|
|
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 LocalCredential& 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 metadata_encryption_key_v0_;
|
|
::google::protobuf::internal::ArenaStringPtr identity_token_v1_;
|
|
::google::protobuf::internal::ArenaStringPtr signature_version_;
|
|
::nearby::internal::LocalCredential_PrivateKey* PROTOBUF_NULLABLE advertisement_signing_key_;
|
|
::nearby::internal::LocalCredential_PrivateKey* PROTOBUF_NULLABLE connection_signing_key_;
|
|
::int64_t start_time_millis_;
|
|
::int64_t end_time_millis_;
|
|
::int64_t id_;
|
|
::int64_t credential_version_;
|
|
int identity_type_;
|
|
::google::protobuf::internal::MapFieldLite<::uint32_t, bool> consumed_salts_;
|
|
PROTOBUF_TSAN_DECLARE_MEMBER
|
|
};
|
|
union { Impl_ _impl_; };
|
|
friend struct ::TableStruct_internal_2fproto_2flocal_5fcredential_2eproto;
|
|
};
|
|
|
|
extern const ::google::protobuf::internal::ClassDataLite<32> LocalCredential_class_data_;
|
|
|
|
// ===================================================================
|
|
|
|
|
|
|
|
|
|
// ===================================================================
|
|
|
|
|
|
#ifdef __GNUC__
|
|
#pragma GCC diagnostic push
|
|
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
|
#endif // __GNUC__
|
|
// -------------------------------------------------------------------
|
|
|
|
// LocalCredential_PrivateKey
|
|
|
|
// string certificate_alias = 1;
|
|
inline void LocalCredential_PrivateKey::clear_certificate_alias() {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
_impl_.certificate_alias_.ClearToEmpty();
|
|
ClearHasBit(_impl_._has_bits_[0],
|
|
0x00000001U);
|
|
}
|
|
inline const ::std::string& LocalCredential_PrivateKey::certificate_alias() const
|
|
ABSL_ATTRIBUTE_LIFETIME_BOUND {
|
|
// @@protoc_insertion_point(field_get:nearby.internal.LocalCredential.PrivateKey.certificate_alias)
|
|
return _internal_certificate_alias();
|
|
}
|
|
template <typename Arg_, typename... Args_>
|
|
PROTOBUF_ALWAYS_INLINE void LocalCredential_PrivateKey::set_certificate_alias(Arg_&& arg, Args_... args) {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
SetHasBit(_impl_._has_bits_[0], 0x00000001U);
|
|
_impl_.certificate_alias_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
|
|
// @@protoc_insertion_point(field_set:nearby.internal.LocalCredential.PrivateKey.certificate_alias)
|
|
}
|
|
inline ::std::string* PROTOBUF_NONNULL LocalCredential_PrivateKey::mutable_certificate_alias()
|
|
ABSL_ATTRIBUTE_LIFETIME_BOUND {
|
|
SetHasBit(_impl_._has_bits_[0], 0x00000001U);
|
|
::std::string* _s = _internal_mutable_certificate_alias();
|
|
// @@protoc_insertion_point(field_mutable:nearby.internal.LocalCredential.PrivateKey.certificate_alias)
|
|
return _s;
|
|
}
|
|
inline const ::std::string& LocalCredential_PrivateKey::_internal_certificate_alias() const {
|
|
::google::protobuf::internal::TSanRead(&_impl_);
|
|
return _impl_.certificate_alias_.Get();
|
|
}
|
|
inline void LocalCredential_PrivateKey::_internal_set_certificate_alias(const ::std::string& value) {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
_impl_.certificate_alias_.Set(value, GetArena());
|
|
}
|
|
inline ::std::string* PROTOBUF_NONNULL LocalCredential_PrivateKey::_internal_mutable_certificate_alias() {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
return _impl_.certificate_alias_.Mutable( GetArena());
|
|
}
|
|
inline ::std::string* PROTOBUF_NULLABLE LocalCredential_PrivateKey::release_certificate_alias() {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
// @@protoc_insertion_point(field_release:nearby.internal.LocalCredential.PrivateKey.certificate_alias)
|
|
if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) {
|
|
return nullptr;
|
|
}
|
|
ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
|
|
auto* released = _impl_.certificate_alias_.Release();
|
|
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
|
|
_impl_.certificate_alias_.Set("", GetArena());
|
|
}
|
|
return released;
|
|
}
|
|
inline void LocalCredential_PrivateKey::set_allocated_certificate_alias(::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_.certificate_alias_.SetAllocated(value, GetArena());
|
|
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.certificate_alias_.IsDefault()) {
|
|
_impl_.certificate_alias_.Set("", GetArena());
|
|
}
|
|
// @@protoc_insertion_point(field_set_allocated:nearby.internal.LocalCredential.PrivateKey.certificate_alias)
|
|
}
|
|
|
|
// bytes key = 2;
|
|
inline void LocalCredential_PrivateKey::clear_key() {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
_impl_.key_.ClearToEmpty();
|
|
ClearHasBit(_impl_._has_bits_[0],
|
|
0x00000002U);
|
|
}
|
|
inline const ::std::string& LocalCredential_PrivateKey::key() const
|
|
ABSL_ATTRIBUTE_LIFETIME_BOUND {
|
|
// @@protoc_insertion_point(field_get:nearby.internal.LocalCredential.PrivateKey.key)
|
|
return _internal_key();
|
|
}
|
|
template <typename Arg_, typename... Args_>
|
|
PROTOBUF_ALWAYS_INLINE void LocalCredential_PrivateKey::set_key(Arg_&& arg, Args_... args) {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
SetHasBit(_impl_._has_bits_[0], 0x00000002U);
|
|
_impl_.key_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena());
|
|
// @@protoc_insertion_point(field_set:nearby.internal.LocalCredential.PrivateKey.key)
|
|
}
|
|
inline ::std::string* PROTOBUF_NONNULL LocalCredential_PrivateKey::mutable_key()
|
|
ABSL_ATTRIBUTE_LIFETIME_BOUND {
|
|
SetHasBit(_impl_._has_bits_[0], 0x00000002U);
|
|
::std::string* _s = _internal_mutable_key();
|
|
// @@protoc_insertion_point(field_mutable:nearby.internal.LocalCredential.PrivateKey.key)
|
|
return _s;
|
|
}
|
|
inline const ::std::string& LocalCredential_PrivateKey::_internal_key() const {
|
|
::google::protobuf::internal::TSanRead(&_impl_);
|
|
return _impl_.key_.Get();
|
|
}
|
|
inline void LocalCredential_PrivateKey::_internal_set_key(const ::std::string& value) {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
_impl_.key_.Set(value, GetArena());
|
|
}
|
|
inline ::std::string* PROTOBUF_NONNULL LocalCredential_PrivateKey::_internal_mutable_key() {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
return _impl_.key_.Mutable( GetArena());
|
|
}
|
|
inline ::std::string* PROTOBUF_NULLABLE LocalCredential_PrivateKey::release_key() {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
// @@protoc_insertion_point(field_release:nearby.internal.LocalCredential.PrivateKey.key)
|
|
if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) {
|
|
return nullptr;
|
|
}
|
|
ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
|
|
auto* released = _impl_.key_.Release();
|
|
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
|
|
_impl_.key_.Set("", GetArena());
|
|
}
|
|
return released;
|
|
}
|
|
inline void LocalCredential_PrivateKey::set_allocated_key(::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_.SetAllocated(value, GetArena());
|
|
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.key_.IsDefault()) {
|
|
_impl_.key_.Set("", GetArena());
|
|
}
|
|
// @@protoc_insertion_point(field_set_allocated:nearby.internal.LocalCredential.PrivateKey.key)
|
|
}
|
|
|
|
// bytes encrypted_key = 3;
|
|
inline void LocalCredential_PrivateKey::clear_encrypted_key() {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
_impl_.encrypted_key_.ClearToEmpty();
|
|
ClearHasBit(_impl_._has_bits_[0],
|
|
0x00000004U);
|
|
}
|
|
inline const ::std::string& LocalCredential_PrivateKey::encrypted_key() const
|
|
ABSL_ATTRIBUTE_LIFETIME_BOUND {
|
|
// @@protoc_insertion_point(field_get:nearby.internal.LocalCredential.PrivateKey.encrypted_key)
|
|
return _internal_encrypted_key();
|
|
}
|
|
template <typename Arg_, typename... Args_>
|
|
PROTOBUF_ALWAYS_INLINE void LocalCredential_PrivateKey::set_encrypted_key(Arg_&& arg, Args_... args) {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
SetHasBit(_impl_._has_bits_[0], 0x00000004U);
|
|
_impl_.encrypted_key_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena());
|
|
// @@protoc_insertion_point(field_set:nearby.internal.LocalCredential.PrivateKey.encrypted_key)
|
|
}
|
|
inline ::std::string* PROTOBUF_NONNULL LocalCredential_PrivateKey::mutable_encrypted_key()
|
|
ABSL_ATTRIBUTE_LIFETIME_BOUND {
|
|
SetHasBit(_impl_._has_bits_[0], 0x00000004U);
|
|
::std::string* _s = _internal_mutable_encrypted_key();
|
|
// @@protoc_insertion_point(field_mutable:nearby.internal.LocalCredential.PrivateKey.encrypted_key)
|
|
return _s;
|
|
}
|
|
inline const ::std::string& LocalCredential_PrivateKey::_internal_encrypted_key() const {
|
|
::google::protobuf::internal::TSanRead(&_impl_);
|
|
return _impl_.encrypted_key_.Get();
|
|
}
|
|
inline void LocalCredential_PrivateKey::_internal_set_encrypted_key(const ::std::string& value) {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
_impl_.encrypted_key_.Set(value, GetArena());
|
|
}
|
|
inline ::std::string* PROTOBUF_NONNULL LocalCredential_PrivateKey::_internal_mutable_encrypted_key() {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
return _impl_.encrypted_key_.Mutable( GetArena());
|
|
}
|
|
inline ::std::string* PROTOBUF_NULLABLE LocalCredential_PrivateKey::release_encrypted_key() {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
// @@protoc_insertion_point(field_release:nearby.internal.LocalCredential.PrivateKey.encrypted_key)
|
|
if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) {
|
|
return nullptr;
|
|
}
|
|
ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
|
|
auto* released = _impl_.encrypted_key_.Release();
|
|
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
|
|
_impl_.encrypted_key_.Set("", GetArena());
|
|
}
|
|
return released;
|
|
}
|
|
inline void LocalCredential_PrivateKey::set_allocated_encrypted_key(::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_key_.SetAllocated(value, GetArena());
|
|
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.encrypted_key_.IsDefault()) {
|
|
_impl_.encrypted_key_.Set("", GetArena());
|
|
}
|
|
// @@protoc_insertion_point(field_set_allocated:nearby.internal.LocalCredential.PrivateKey.encrypted_key)
|
|
}
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
// LocalCredential
|
|
|
|
// bytes secret_id = 1 [deprecated = true];
|
|
inline void LocalCredential::clear_secret_id() {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
_impl_.secret_id_.ClearToEmpty();
|
|
ClearHasBit(_impl_._has_bits_[0],
|
|
0x00000001U);
|
|
}
|
|
inline const ::std::string& LocalCredential::secret_id() const
|
|
ABSL_ATTRIBUTE_LIFETIME_BOUND {
|
|
// @@protoc_insertion_point(field_get:nearby.internal.LocalCredential.secret_id)
|
|
return _internal_secret_id();
|
|
}
|
|
template <typename Arg_, typename... Args_>
|
|
PROTOBUF_ALWAYS_INLINE void LocalCredential::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.LocalCredential.secret_id)
|
|
}
|
|
inline ::std::string* PROTOBUF_NONNULL LocalCredential::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.LocalCredential.secret_id)
|
|
return _s;
|
|
}
|
|
inline const ::std::string& LocalCredential::_internal_secret_id() const {
|
|
::google::protobuf::internal::TSanRead(&_impl_);
|
|
return _impl_.secret_id_.Get();
|
|
}
|
|
inline void LocalCredential::_internal_set_secret_id(const ::std::string& value) {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
_impl_.secret_id_.Set(value, GetArena());
|
|
}
|
|
inline ::std::string* PROTOBUF_NONNULL LocalCredential::_internal_mutable_secret_id() {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
return _impl_.secret_id_.Mutable( GetArena());
|
|
}
|
|
inline ::std::string* PROTOBUF_NULLABLE LocalCredential::release_secret_id() {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
// @@protoc_insertion_point(field_release:nearby.internal.LocalCredential.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 LocalCredential::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.LocalCredential.secret_id)
|
|
}
|
|
|
|
// bytes key_seed = 2;
|
|
inline void LocalCredential::clear_key_seed() {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
_impl_.key_seed_.ClearToEmpty();
|
|
ClearHasBit(_impl_._has_bits_[0],
|
|
0x00000002U);
|
|
}
|
|
inline const ::std::string& LocalCredential::key_seed() const
|
|
ABSL_ATTRIBUTE_LIFETIME_BOUND {
|
|
// @@protoc_insertion_point(field_get:nearby.internal.LocalCredential.key_seed)
|
|
return _internal_key_seed();
|
|
}
|
|
template <typename Arg_, typename... Args_>
|
|
PROTOBUF_ALWAYS_INLINE void LocalCredential::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.LocalCredential.key_seed)
|
|
}
|
|
inline ::std::string* PROTOBUF_NONNULL LocalCredential::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.LocalCredential.key_seed)
|
|
return _s;
|
|
}
|
|
inline const ::std::string& LocalCredential::_internal_key_seed() const {
|
|
::google::protobuf::internal::TSanRead(&_impl_);
|
|
return _impl_.key_seed_.Get();
|
|
}
|
|
inline void LocalCredential::_internal_set_key_seed(const ::std::string& value) {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
_impl_.key_seed_.Set(value, GetArena());
|
|
}
|
|
inline ::std::string* PROTOBUF_NONNULL LocalCredential::_internal_mutable_key_seed() {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
return _impl_.key_seed_.Mutable( GetArena());
|
|
}
|
|
inline ::std::string* PROTOBUF_NULLABLE LocalCredential::release_key_seed() {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
// @@protoc_insertion_point(field_release:nearby.internal.LocalCredential.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 LocalCredential::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.LocalCredential.key_seed)
|
|
}
|
|
|
|
// int64 start_time_millis = 3;
|
|
inline void LocalCredential::clear_start_time_millis() {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
_impl_.start_time_millis_ = ::int64_t{0};
|
|
ClearHasBit(_impl_._has_bits_[0],
|
|
0x00000080U);
|
|
}
|
|
inline ::int64_t LocalCredential::start_time_millis() const {
|
|
// @@protoc_insertion_point(field_get:nearby.internal.LocalCredential.start_time_millis)
|
|
return _internal_start_time_millis();
|
|
}
|
|
inline void LocalCredential::set_start_time_millis(::int64_t value) {
|
|
_internal_set_start_time_millis(value);
|
|
SetHasBit(_impl_._has_bits_[0], 0x00000080U);
|
|
// @@protoc_insertion_point(field_set:nearby.internal.LocalCredential.start_time_millis)
|
|
}
|
|
inline ::int64_t LocalCredential::_internal_start_time_millis() const {
|
|
::google::protobuf::internal::TSanRead(&_impl_);
|
|
return _impl_.start_time_millis_;
|
|
}
|
|
inline void LocalCredential::_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 LocalCredential::clear_end_time_millis() {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
_impl_.end_time_millis_ = ::int64_t{0};
|
|
ClearHasBit(_impl_._has_bits_[0],
|
|
0x00000100U);
|
|
}
|
|
inline ::int64_t LocalCredential::end_time_millis() const {
|
|
// @@protoc_insertion_point(field_get:nearby.internal.LocalCredential.end_time_millis)
|
|
return _internal_end_time_millis();
|
|
}
|
|
inline void LocalCredential::set_end_time_millis(::int64_t value) {
|
|
_internal_set_end_time_millis(value);
|
|
SetHasBit(_impl_._has_bits_[0], 0x00000100U);
|
|
// @@protoc_insertion_point(field_set:nearby.internal.LocalCredential.end_time_millis)
|
|
}
|
|
inline ::int64_t LocalCredential::_internal_end_time_millis() const {
|
|
::google::protobuf::internal::TSanRead(&_impl_);
|
|
return _impl_.end_time_millis_;
|
|
}
|
|
inline void LocalCredential::_internal_set_end_time_millis(::int64_t value) {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
_impl_.end_time_millis_ = value;
|
|
}
|
|
|
|
// bytes metadata_encryption_key_v0 = 5;
|
|
inline void LocalCredential::clear_metadata_encryption_key_v0() {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
_impl_.metadata_encryption_key_v0_.ClearToEmpty();
|
|
ClearHasBit(_impl_._has_bits_[0],
|
|
0x00000004U);
|
|
}
|
|
inline const ::std::string& LocalCredential::metadata_encryption_key_v0() const
|
|
ABSL_ATTRIBUTE_LIFETIME_BOUND {
|
|
// @@protoc_insertion_point(field_get:nearby.internal.LocalCredential.metadata_encryption_key_v0)
|
|
return _internal_metadata_encryption_key_v0();
|
|
}
|
|
template <typename Arg_, typename... Args_>
|
|
PROTOBUF_ALWAYS_INLINE void LocalCredential::set_metadata_encryption_key_v0(Arg_&& arg, Args_... args) {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
SetHasBit(_impl_._has_bits_[0], 0x00000004U);
|
|
_impl_.metadata_encryption_key_v0_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena());
|
|
// @@protoc_insertion_point(field_set:nearby.internal.LocalCredential.metadata_encryption_key_v0)
|
|
}
|
|
inline ::std::string* PROTOBUF_NONNULL LocalCredential::mutable_metadata_encryption_key_v0()
|
|
ABSL_ATTRIBUTE_LIFETIME_BOUND {
|
|
SetHasBit(_impl_._has_bits_[0], 0x00000004U);
|
|
::std::string* _s = _internal_mutable_metadata_encryption_key_v0();
|
|
// @@protoc_insertion_point(field_mutable:nearby.internal.LocalCredential.metadata_encryption_key_v0)
|
|
return _s;
|
|
}
|
|
inline const ::std::string& LocalCredential::_internal_metadata_encryption_key_v0() const {
|
|
::google::protobuf::internal::TSanRead(&_impl_);
|
|
return _impl_.metadata_encryption_key_v0_.Get();
|
|
}
|
|
inline void LocalCredential::_internal_set_metadata_encryption_key_v0(const ::std::string& value) {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
_impl_.metadata_encryption_key_v0_.Set(value, GetArena());
|
|
}
|
|
inline ::std::string* PROTOBUF_NONNULL LocalCredential::_internal_mutable_metadata_encryption_key_v0() {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
return _impl_.metadata_encryption_key_v0_.Mutable( GetArena());
|
|
}
|
|
inline ::std::string* PROTOBUF_NULLABLE LocalCredential::release_metadata_encryption_key_v0() {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
// @@protoc_insertion_point(field_release:nearby.internal.LocalCredential.metadata_encryption_key_v0)
|
|
if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) {
|
|
return nullptr;
|
|
}
|
|
ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
|
|
auto* released = _impl_.metadata_encryption_key_v0_.Release();
|
|
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
|
|
_impl_.metadata_encryption_key_v0_.Set("", GetArena());
|
|
}
|
|
return released;
|
|
}
|
|
inline void LocalCredential::set_allocated_metadata_encryption_key_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_.metadata_encryption_key_v0_.SetAllocated(value, GetArena());
|
|
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.metadata_encryption_key_v0_.IsDefault()) {
|
|
_impl_.metadata_encryption_key_v0_.Set("", GetArena());
|
|
}
|
|
// @@protoc_insertion_point(field_set_allocated:nearby.internal.LocalCredential.metadata_encryption_key_v0)
|
|
}
|
|
|
|
// .nearby.internal.LocalCredential.PrivateKey advertisement_signing_key = 6;
|
|
inline bool LocalCredential::has_advertisement_signing_key() const {
|
|
bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U);
|
|
PROTOBUF_ASSUME(!value || _impl_.advertisement_signing_key_ != nullptr);
|
|
return value;
|
|
}
|
|
inline void LocalCredential::clear_advertisement_signing_key() {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
if (_impl_.advertisement_signing_key_ != nullptr) _impl_.advertisement_signing_key_->Clear();
|
|
ClearHasBit(_impl_._has_bits_[0],
|
|
0x00000020U);
|
|
}
|
|
inline const ::nearby::internal::LocalCredential_PrivateKey& LocalCredential::_internal_advertisement_signing_key() const {
|
|
::google::protobuf::internal::TSanRead(&_impl_);
|
|
const ::nearby::internal::LocalCredential_PrivateKey* p = _impl_.advertisement_signing_key_;
|
|
return p != nullptr ? *p : reinterpret_cast<const ::nearby::internal::LocalCredential_PrivateKey&>(::nearby::internal::_LocalCredential_PrivateKey_default_instance_);
|
|
}
|
|
inline const ::nearby::internal::LocalCredential_PrivateKey& LocalCredential::advertisement_signing_key() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
|
|
// @@protoc_insertion_point(field_get:nearby.internal.LocalCredential.advertisement_signing_key)
|
|
return _internal_advertisement_signing_key();
|
|
}
|
|
inline void LocalCredential::unsafe_arena_set_allocated_advertisement_signing_key(
|
|
::nearby::internal::LocalCredential_PrivateKey* PROTOBUF_NULLABLE value) {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
if (GetArena() == nullptr) {
|
|
delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.advertisement_signing_key_);
|
|
}
|
|
_impl_.advertisement_signing_key_ = reinterpret_cast<::nearby::internal::LocalCredential_PrivateKey*>(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.LocalCredential.advertisement_signing_key)
|
|
}
|
|
inline ::nearby::internal::LocalCredential_PrivateKey* PROTOBUF_NULLABLE LocalCredential::release_advertisement_signing_key() {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
|
|
ClearHasBit(_impl_._has_bits_[0], 0x00000020U);
|
|
::nearby::internal::LocalCredential_PrivateKey* released = _impl_.advertisement_signing_key_;
|
|
_impl_.advertisement_signing_key_ = 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::LocalCredential_PrivateKey* PROTOBUF_NULLABLE LocalCredential::unsafe_arena_release_advertisement_signing_key() {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
// @@protoc_insertion_point(field_release:nearby.internal.LocalCredential.advertisement_signing_key)
|
|
|
|
ClearHasBit(_impl_._has_bits_[0], 0x00000020U);
|
|
::nearby::internal::LocalCredential_PrivateKey* temp = _impl_.advertisement_signing_key_;
|
|
_impl_.advertisement_signing_key_ = nullptr;
|
|
return temp;
|
|
}
|
|
inline ::nearby::internal::LocalCredential_PrivateKey* PROTOBUF_NONNULL LocalCredential::_internal_mutable_advertisement_signing_key() {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
if (_impl_.advertisement_signing_key_ == nullptr) {
|
|
auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::internal::LocalCredential_PrivateKey>(GetArena());
|
|
_impl_.advertisement_signing_key_ = reinterpret_cast<::nearby::internal::LocalCredential_PrivateKey*>(p);
|
|
}
|
|
return _impl_.advertisement_signing_key_;
|
|
}
|
|
inline ::nearby::internal::LocalCredential_PrivateKey* PROTOBUF_NONNULL LocalCredential::mutable_advertisement_signing_key()
|
|
ABSL_ATTRIBUTE_LIFETIME_BOUND {
|
|
SetHasBit(_impl_._has_bits_[0], 0x00000020U);
|
|
::nearby::internal::LocalCredential_PrivateKey* _msg = _internal_mutable_advertisement_signing_key();
|
|
// @@protoc_insertion_point(field_mutable:nearby.internal.LocalCredential.advertisement_signing_key)
|
|
return _msg;
|
|
}
|
|
inline void LocalCredential::set_allocated_advertisement_signing_key(::nearby::internal::LocalCredential_PrivateKey* 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_.advertisement_signing_key_);
|
|
}
|
|
|
|
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_.advertisement_signing_key_ = reinterpret_cast<::nearby::internal::LocalCredential_PrivateKey*>(value);
|
|
// @@protoc_insertion_point(field_set_allocated:nearby.internal.LocalCredential.advertisement_signing_key)
|
|
}
|
|
|
|
// .nearby.internal.LocalCredential.PrivateKey connection_signing_key = 7;
|
|
inline bool LocalCredential::has_connection_signing_key() const {
|
|
bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000040U);
|
|
PROTOBUF_ASSUME(!value || _impl_.connection_signing_key_ != nullptr);
|
|
return value;
|
|
}
|
|
inline void LocalCredential::clear_connection_signing_key() {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
if (_impl_.connection_signing_key_ != nullptr) _impl_.connection_signing_key_->Clear();
|
|
ClearHasBit(_impl_._has_bits_[0],
|
|
0x00000040U);
|
|
}
|
|
inline const ::nearby::internal::LocalCredential_PrivateKey& LocalCredential::_internal_connection_signing_key() const {
|
|
::google::protobuf::internal::TSanRead(&_impl_);
|
|
const ::nearby::internal::LocalCredential_PrivateKey* p = _impl_.connection_signing_key_;
|
|
return p != nullptr ? *p : reinterpret_cast<const ::nearby::internal::LocalCredential_PrivateKey&>(::nearby::internal::_LocalCredential_PrivateKey_default_instance_);
|
|
}
|
|
inline const ::nearby::internal::LocalCredential_PrivateKey& LocalCredential::connection_signing_key() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
|
|
// @@protoc_insertion_point(field_get:nearby.internal.LocalCredential.connection_signing_key)
|
|
return _internal_connection_signing_key();
|
|
}
|
|
inline void LocalCredential::unsafe_arena_set_allocated_connection_signing_key(
|
|
::nearby::internal::LocalCredential_PrivateKey* PROTOBUF_NULLABLE value) {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
if (GetArena() == nullptr) {
|
|
delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.connection_signing_key_);
|
|
}
|
|
_impl_.connection_signing_key_ = reinterpret_cast<::nearby::internal::LocalCredential_PrivateKey*>(value);
|
|
if (value != nullptr) {
|
|
SetHasBit(_impl_._has_bits_[0], 0x00000040U);
|
|
} else {
|
|
ClearHasBit(_impl_._has_bits_[0], 0x00000040U);
|
|
}
|
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.internal.LocalCredential.connection_signing_key)
|
|
}
|
|
inline ::nearby::internal::LocalCredential_PrivateKey* PROTOBUF_NULLABLE LocalCredential::release_connection_signing_key() {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
|
|
ClearHasBit(_impl_._has_bits_[0], 0x00000040U);
|
|
::nearby::internal::LocalCredential_PrivateKey* released = _impl_.connection_signing_key_;
|
|
_impl_.connection_signing_key_ = 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::LocalCredential_PrivateKey* PROTOBUF_NULLABLE LocalCredential::unsafe_arena_release_connection_signing_key() {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
// @@protoc_insertion_point(field_release:nearby.internal.LocalCredential.connection_signing_key)
|
|
|
|
ClearHasBit(_impl_._has_bits_[0], 0x00000040U);
|
|
::nearby::internal::LocalCredential_PrivateKey* temp = _impl_.connection_signing_key_;
|
|
_impl_.connection_signing_key_ = nullptr;
|
|
return temp;
|
|
}
|
|
inline ::nearby::internal::LocalCredential_PrivateKey* PROTOBUF_NONNULL LocalCredential::_internal_mutable_connection_signing_key() {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
if (_impl_.connection_signing_key_ == nullptr) {
|
|
auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::nearby::internal::LocalCredential_PrivateKey>(GetArena());
|
|
_impl_.connection_signing_key_ = reinterpret_cast<::nearby::internal::LocalCredential_PrivateKey*>(p);
|
|
}
|
|
return _impl_.connection_signing_key_;
|
|
}
|
|
inline ::nearby::internal::LocalCredential_PrivateKey* PROTOBUF_NONNULL LocalCredential::mutable_connection_signing_key()
|
|
ABSL_ATTRIBUTE_LIFETIME_BOUND {
|
|
SetHasBit(_impl_._has_bits_[0], 0x00000040U);
|
|
::nearby::internal::LocalCredential_PrivateKey* _msg = _internal_mutable_connection_signing_key();
|
|
// @@protoc_insertion_point(field_mutable:nearby.internal.LocalCredential.connection_signing_key)
|
|
return _msg;
|
|
}
|
|
inline void LocalCredential::set_allocated_connection_signing_key(::nearby::internal::LocalCredential_PrivateKey* 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_.connection_signing_key_);
|
|
}
|
|
|
|
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], 0x00000040U);
|
|
} else {
|
|
ClearHasBit(_impl_._has_bits_[0], 0x00000040U);
|
|
}
|
|
|
|
_impl_.connection_signing_key_ = reinterpret_cast<::nearby::internal::LocalCredential_PrivateKey*>(value);
|
|
// @@protoc_insertion_point(field_set_allocated:nearby.internal.LocalCredential.connection_signing_key)
|
|
}
|
|
|
|
// .nearby.internal.IdentityType identity_type = 8;
|
|
inline void LocalCredential::clear_identity_type() {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
_impl_.identity_type_ = 0;
|
|
ClearHasBit(_impl_._has_bits_[0],
|
|
0x00000800U);
|
|
}
|
|
inline ::nearby::internal::IdentityType LocalCredential::identity_type() const {
|
|
// @@protoc_insertion_point(field_get:nearby.internal.LocalCredential.identity_type)
|
|
return _internal_identity_type();
|
|
}
|
|
inline void LocalCredential::set_identity_type(::nearby::internal::IdentityType value) {
|
|
_internal_set_identity_type(value);
|
|
SetHasBit(_impl_._has_bits_[0], 0x00000800U);
|
|
// @@protoc_insertion_point(field_set:nearby.internal.LocalCredential.identity_type)
|
|
}
|
|
inline ::nearby::internal::IdentityType LocalCredential::_internal_identity_type() const {
|
|
::google::protobuf::internal::TSanRead(&_impl_);
|
|
return static_cast<::nearby::internal::IdentityType>(_impl_.identity_type_);
|
|
}
|
|
inline void LocalCredential::_internal_set_identity_type(::nearby::internal::IdentityType value) {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
_impl_.identity_type_ = value;
|
|
}
|
|
|
|
// map<uint32, bool> consumed_salts = 9;
|
|
inline int LocalCredential::_internal_consumed_salts_size() const {
|
|
return _internal_consumed_salts().size();
|
|
}
|
|
inline int LocalCredential::consumed_salts_size() const {
|
|
return _internal_consumed_salts_size();
|
|
}
|
|
inline void LocalCredential::clear_consumed_salts() {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
_impl_.consumed_salts_.Clear();
|
|
ClearHasBitForRepeated(_impl_._has_bits_[0],
|
|
0x00001000U);
|
|
}
|
|
inline const ::google::protobuf::Map<::uint32_t, bool>& LocalCredential::_internal_consumed_salts() const {
|
|
::google::protobuf::internal::TSanRead(&_impl_);
|
|
return _impl_.consumed_salts_.GetMap();
|
|
}
|
|
inline const ::google::protobuf::Map<::uint32_t, bool>& LocalCredential::consumed_salts() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
|
|
// @@protoc_insertion_point(field_map:nearby.internal.LocalCredential.consumed_salts)
|
|
return _internal_consumed_salts();
|
|
}
|
|
inline ::google::protobuf::Map<::uint32_t, bool>* PROTOBUF_NONNULL LocalCredential::_internal_mutable_consumed_salts() {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
return _impl_.consumed_salts_.MutableMap();
|
|
}
|
|
inline ::google::protobuf::Map<::uint32_t, bool>* PROTOBUF_NONNULL LocalCredential::mutable_consumed_salts()
|
|
ABSL_ATTRIBUTE_LIFETIME_BOUND {
|
|
SetHasBitForRepeated(_impl_._has_bits_[0], 0x00001000U);
|
|
// @@protoc_insertion_point(field_mutable_map:nearby.internal.LocalCredential.consumed_salts)
|
|
return _internal_mutable_consumed_salts();
|
|
}
|
|
|
|
// bytes identity_token_v1 = 10;
|
|
inline void LocalCredential::clear_identity_token_v1() {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
_impl_.identity_token_v1_.ClearToEmpty();
|
|
ClearHasBit(_impl_._has_bits_[0],
|
|
0x00000008U);
|
|
}
|
|
inline const ::std::string& LocalCredential::identity_token_v1() const
|
|
ABSL_ATTRIBUTE_LIFETIME_BOUND {
|
|
// @@protoc_insertion_point(field_get:nearby.internal.LocalCredential.identity_token_v1)
|
|
return _internal_identity_token_v1();
|
|
}
|
|
template <typename Arg_, typename... Args_>
|
|
PROTOBUF_ALWAYS_INLINE void LocalCredential::set_identity_token_v1(Arg_&& arg, Args_... args) {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
SetHasBit(_impl_._has_bits_[0], 0x00000008U);
|
|
_impl_.identity_token_v1_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena());
|
|
// @@protoc_insertion_point(field_set:nearby.internal.LocalCredential.identity_token_v1)
|
|
}
|
|
inline ::std::string* PROTOBUF_NONNULL LocalCredential::mutable_identity_token_v1()
|
|
ABSL_ATTRIBUTE_LIFETIME_BOUND {
|
|
SetHasBit(_impl_._has_bits_[0], 0x00000008U);
|
|
::std::string* _s = _internal_mutable_identity_token_v1();
|
|
// @@protoc_insertion_point(field_mutable:nearby.internal.LocalCredential.identity_token_v1)
|
|
return _s;
|
|
}
|
|
inline const ::std::string& LocalCredential::_internal_identity_token_v1() const {
|
|
::google::protobuf::internal::TSanRead(&_impl_);
|
|
return _impl_.identity_token_v1_.Get();
|
|
}
|
|
inline void LocalCredential::_internal_set_identity_token_v1(const ::std::string& value) {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
_impl_.identity_token_v1_.Set(value, GetArena());
|
|
}
|
|
inline ::std::string* PROTOBUF_NONNULL LocalCredential::_internal_mutable_identity_token_v1() {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
return _impl_.identity_token_v1_.Mutable( GetArena());
|
|
}
|
|
inline ::std::string* PROTOBUF_NULLABLE LocalCredential::release_identity_token_v1() {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
// @@protoc_insertion_point(field_release:nearby.internal.LocalCredential.identity_token_v1)
|
|
if (!CheckHasBit(_impl_._has_bits_[0], 0x00000008U)) {
|
|
return nullptr;
|
|
}
|
|
ClearHasBit(_impl_._has_bits_[0], 0x00000008U);
|
|
auto* released = _impl_.identity_token_v1_.Release();
|
|
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
|
|
_impl_.identity_token_v1_.Set("", GetArena());
|
|
}
|
|
return released;
|
|
}
|
|
inline void LocalCredential::set_allocated_identity_token_v1(::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_.identity_token_v1_.SetAllocated(value, GetArena());
|
|
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.identity_token_v1_.IsDefault()) {
|
|
_impl_.identity_token_v1_.Set("", GetArena());
|
|
}
|
|
// @@protoc_insertion_point(field_set_allocated:nearby.internal.LocalCredential.identity_token_v1)
|
|
}
|
|
|
|
// int64 id = 11;
|
|
inline void LocalCredential::clear_id() {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
_impl_.id_ = ::int64_t{0};
|
|
ClearHasBit(_impl_._has_bits_[0],
|
|
0x00000200U);
|
|
}
|
|
inline ::int64_t LocalCredential::id() const {
|
|
// @@protoc_insertion_point(field_get:nearby.internal.LocalCredential.id)
|
|
return _internal_id();
|
|
}
|
|
inline void LocalCredential::set_id(::int64_t value) {
|
|
_internal_set_id(value);
|
|
SetHasBit(_impl_._has_bits_[0], 0x00000200U);
|
|
// @@protoc_insertion_point(field_set:nearby.internal.LocalCredential.id)
|
|
}
|
|
inline ::int64_t LocalCredential::_internal_id() const {
|
|
::google::protobuf::internal::TSanRead(&_impl_);
|
|
return _impl_.id_;
|
|
}
|
|
inline void LocalCredential::_internal_set_id(::int64_t value) {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
_impl_.id_ = value;
|
|
}
|
|
|
|
// string signature_version = 12 [deprecated = true];
|
|
inline void LocalCredential::clear_signature_version() {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
_impl_.signature_version_.ClearToEmpty();
|
|
ClearHasBit(_impl_._has_bits_[0],
|
|
0x00000010U);
|
|
}
|
|
inline const ::std::string& LocalCredential::signature_version() const
|
|
ABSL_ATTRIBUTE_LIFETIME_BOUND {
|
|
// @@protoc_insertion_point(field_get:nearby.internal.LocalCredential.signature_version)
|
|
return _internal_signature_version();
|
|
}
|
|
template <typename Arg_, typename... Args_>
|
|
PROTOBUF_ALWAYS_INLINE void LocalCredential::set_signature_version(Arg_&& arg, Args_... args) {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
SetHasBit(_impl_._has_bits_[0], 0x00000010U);
|
|
_impl_.signature_version_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
|
|
// @@protoc_insertion_point(field_set:nearby.internal.LocalCredential.signature_version)
|
|
}
|
|
inline ::std::string* PROTOBUF_NONNULL LocalCredential::mutable_signature_version()
|
|
ABSL_ATTRIBUTE_LIFETIME_BOUND {
|
|
SetHasBit(_impl_._has_bits_[0], 0x00000010U);
|
|
::std::string* _s = _internal_mutable_signature_version();
|
|
// @@protoc_insertion_point(field_mutable:nearby.internal.LocalCredential.signature_version)
|
|
return _s;
|
|
}
|
|
inline const ::std::string& LocalCredential::_internal_signature_version() const {
|
|
::google::protobuf::internal::TSanRead(&_impl_);
|
|
return _impl_.signature_version_.Get();
|
|
}
|
|
inline void LocalCredential::_internal_set_signature_version(const ::std::string& value) {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
_impl_.signature_version_.Set(value, GetArena());
|
|
}
|
|
inline ::std::string* PROTOBUF_NONNULL LocalCredential::_internal_mutable_signature_version() {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
return _impl_.signature_version_.Mutable( GetArena());
|
|
}
|
|
inline ::std::string* PROTOBUF_NULLABLE LocalCredential::release_signature_version() {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
// @@protoc_insertion_point(field_release:nearby.internal.LocalCredential.signature_version)
|
|
if (!CheckHasBit(_impl_._has_bits_[0], 0x00000010U)) {
|
|
return nullptr;
|
|
}
|
|
ClearHasBit(_impl_._has_bits_[0], 0x00000010U);
|
|
auto* released = _impl_.signature_version_.Release();
|
|
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
|
|
_impl_.signature_version_.Set("", GetArena());
|
|
}
|
|
return released;
|
|
}
|
|
inline void LocalCredential::set_allocated_signature_version(::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_.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.LocalCredential.signature_version)
|
|
}
|
|
|
|
// int64 credential_version = 13;
|
|
inline void LocalCredential::clear_credential_version() {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
_impl_.credential_version_ = ::int64_t{0};
|
|
ClearHasBit(_impl_._has_bits_[0],
|
|
0x00000400U);
|
|
}
|
|
inline ::int64_t LocalCredential::credential_version() const {
|
|
// @@protoc_insertion_point(field_get:nearby.internal.LocalCredential.credential_version)
|
|
return _internal_credential_version();
|
|
}
|
|
inline void LocalCredential::set_credential_version(::int64_t value) {
|
|
_internal_set_credential_version(value);
|
|
SetHasBit(_impl_._has_bits_[0], 0x00000400U);
|
|
// @@protoc_insertion_point(field_set:nearby.internal.LocalCredential.credential_version)
|
|
}
|
|
inline ::int64_t LocalCredential::_internal_credential_version() const {
|
|
::google::protobuf::internal::TSanRead(&_impl_);
|
|
return _impl_.credential_version_;
|
|
}
|
|
inline void LocalCredential::_internal_set_credential_version(::int64_t value) {
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
_impl_.credential_version_ = value;
|
|
}
|
|
|
|
#ifdef __GNUC__
|
|
#pragma GCC diagnostic pop
|
|
#endif // __GNUC__
|
|
|
|
// @@protoc_insertion_point(namespace_scope)
|
|
} // namespace internal
|
|
} // namespace nearby
|
|
|
|
|
|
// @@protoc_insertion_point(global_scope)
|
|
|
|
#include "google/protobuf/port_undef.inc"
|
|
|
|
#endif // internal_2fproto_2flocal_5fcredential_2eproto_2epb_2eh
|