mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-15 07:06:11 -04:00
1176 lines
52 KiB
C++
1176 lines
52 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
|
|
|
|
#include "internal/proto/credential.pb.h"
|
|
|
|
#include <algorithm>
|
|
#include <type_traits>
|
|
#include "google/protobuf/io/coded_stream.h"
|
|
#include "google/protobuf/generated_message_tctable_impl.h"
|
|
#include "google/protobuf/extension_set.h"
|
|
#include "google/protobuf/generated_message_util.h"
|
|
#include "google/protobuf/wire_format_lite.h"
|
|
#include "google/protobuf/io/zero_copy_stream_impl_lite.h"
|
|
// @@protoc_insertion_point(includes)
|
|
|
|
// Must be included last.
|
|
#include "google/protobuf/port_def.inc"
|
|
PROTOBUF_PRAGMA_INIT_SEG
|
|
namespace _pb = ::google::protobuf;
|
|
namespace _pbi = ::google::protobuf::internal;
|
|
namespace _fl = ::google::protobuf::internal::field_layout;
|
|
namespace nearby {
|
|
namespace internal {
|
|
|
|
inline constexpr SharedCredential::Impl_::Impl_(
|
|
::_pbi::ConstantInitialized) noexcept
|
|
: _cached_size_{0},
|
|
secret_id_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()),
|
|
key_seed_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()),
|
|
encrypted_metadata_bytes_v0_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()),
|
|
metadata_encryption_key_tag_v0_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()),
|
|
connection_signature_verification_key_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()),
|
|
advertisement_signature_verification_key_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()),
|
|
version_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()),
|
|
encrypted_metadata_bytes_v1_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()),
|
|
identity_token_short_salt_adv_hmac_key_v1_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()),
|
|
dusi_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()),
|
|
signature_version_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()),
|
|
identity_token_extended_salt_adv_hmac_key_v1_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()),
|
|
identity_token_signed_adv_hmac_key_v1_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()),
|
|
rust_encrypted_metadata_bytes_v0_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()),
|
|
start_time_millis_{::int64_t{0}},
|
|
end_time_millis_{::int64_t{0}},
|
|
identity_type_{static_cast< ::nearby::internal::IdentityType >(0)},
|
|
credential_type_{static_cast< ::nearby::internal::CredentialType >(0)},
|
|
id_{::int64_t{0}},
|
|
credential_version_{::int64_t{0}} {}
|
|
|
|
template <typename>
|
|
PROTOBUF_CONSTEXPR SharedCredential::SharedCredential(::_pbi::ConstantInitialized)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(SharedCredential_class_data_.base()),
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(),
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
_impl_(::_pbi::ConstantInitialized()) {
|
|
}
|
|
struct SharedCredentialDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR SharedCredentialDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
|
|
~SharedCredentialDefaultTypeInternal() {}
|
|
union {
|
|
SharedCredential _instance;
|
|
};
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SharedCredentialDefaultTypeInternal _SharedCredential_default_instance_;
|
|
} // namespace internal
|
|
} // namespace nearby
|
|
namespace nearby {
|
|
namespace internal {
|
|
PROTOBUF_CONSTINIT const uint32_t IdentityType_internal_data_[] = {
|
|
262144u, 0u, };
|
|
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
|
|
IdentityType_strings[4] = {};
|
|
|
|
static const char IdentityType_names[] = {
|
|
"IDENTITY_TYPE_CONTACTS_GROUP"
|
|
"IDENTITY_TYPE_PRIVATE_GROUP"
|
|
"IDENTITY_TYPE_PUBLIC"
|
|
"IDENTITY_TYPE_UNSPECIFIED"
|
|
};
|
|
|
|
static const ::google::protobuf::internal::EnumEntry IdentityType_entries[] = {
|
|
{{&IdentityType_names[0], 28}, 2},
|
|
{{&IdentityType_names[28], 27}, 1},
|
|
{{&IdentityType_names[55], 20}, 3},
|
|
{{&IdentityType_names[75], 25}, 0},
|
|
};
|
|
|
|
static const int IdentityType_entries_by_number[] = {
|
|
3, // 0 -> IDENTITY_TYPE_UNSPECIFIED
|
|
1, // 1 -> IDENTITY_TYPE_PRIVATE_GROUP
|
|
0, // 2 -> IDENTITY_TYPE_CONTACTS_GROUP
|
|
2, // 3 -> IDENTITY_TYPE_PUBLIC
|
|
};
|
|
|
|
const ::std::string& IdentityType_Name(IdentityType value) {
|
|
static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
|
|
IdentityType_entries, IdentityType_entries_by_number, 4,
|
|
IdentityType_strings);
|
|
(void)kDummy;
|
|
|
|
int idx = ::google::protobuf::internal::LookUpEnumName(IdentityType_entries,
|
|
IdentityType_entries_by_number,
|
|
4, value);
|
|
return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : IdentityType_strings[idx].get();
|
|
}
|
|
|
|
bool IdentityType_Parse(::absl::string_view name, IdentityType* PROTOBUF_NONNULL value) {
|
|
int int_value;
|
|
bool success = ::google::protobuf::internal::LookUpEnumValue(
|
|
IdentityType_entries, 4, name, &int_value);
|
|
if (success) {
|
|
*value = static_cast<IdentityType>(int_value);
|
|
}
|
|
return success;
|
|
}
|
|
PROTOBUF_CONSTINIT const uint32_t CredentialType_internal_data_[] = {
|
|
196608u, 0u, };
|
|
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
|
|
CredentialType_strings[3] = {};
|
|
|
|
static const char CredentialType_names[] = {
|
|
"CREDENTIAL_TYPE_DEVICE"
|
|
"CREDENTIAL_TYPE_GAIA"
|
|
"CREDENTIAL_TYPE_UNKNOWN"
|
|
};
|
|
|
|
static const ::google::protobuf::internal::EnumEntry CredentialType_entries[] = {
|
|
{{&CredentialType_names[0], 22}, 1},
|
|
{{&CredentialType_names[22], 20}, 2},
|
|
{{&CredentialType_names[42], 23}, 0},
|
|
};
|
|
|
|
static const int CredentialType_entries_by_number[] = {
|
|
2, // 0 -> CREDENTIAL_TYPE_UNKNOWN
|
|
0, // 1 -> CREDENTIAL_TYPE_DEVICE
|
|
1, // 2 -> CREDENTIAL_TYPE_GAIA
|
|
};
|
|
|
|
const ::std::string& CredentialType_Name(CredentialType value) {
|
|
static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
|
|
CredentialType_entries, CredentialType_entries_by_number, 3,
|
|
CredentialType_strings);
|
|
(void)kDummy;
|
|
|
|
int idx = ::google::protobuf::internal::LookUpEnumName(CredentialType_entries,
|
|
CredentialType_entries_by_number,
|
|
3, value);
|
|
return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : CredentialType_strings[idx].get();
|
|
}
|
|
|
|
bool CredentialType_Parse(::absl::string_view name, CredentialType* PROTOBUF_NONNULL value) {
|
|
int int_value;
|
|
bool success = ::google::protobuf::internal::LookUpEnumValue(
|
|
CredentialType_entries, 3, name, &int_value);
|
|
if (success) {
|
|
*value = static_cast<CredentialType>(int_value);
|
|
}
|
|
return success;
|
|
}
|
|
// ===================================================================
|
|
|
|
class SharedCredential::_Internal {
|
|
public:
|
|
using HasBits =
|
|
decltype(::std::declval<SharedCredential>()._impl_._has_bits_);
|
|
static constexpr ::int32_t kHasBitsOffset =
|
|
8 * PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_._has_bits_);
|
|
};
|
|
|
|
SharedCredential::SharedCredential(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, SharedCredential_class_data_.base()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
SharedCtor(arena);
|
|
// @@protoc_insertion_point(arena_constructor:nearby.internal.SharedCredential)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE SharedCredential::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
|
|
[[maybe_unused]] const ::nearby::internal::SharedCredential& from_msg)
|
|
: _has_bits_{from._has_bits_},
|
|
_cached_size_{0},
|
|
secret_id_(arena, from.secret_id_),
|
|
key_seed_(arena, from.key_seed_),
|
|
encrypted_metadata_bytes_v0_(arena, from.encrypted_metadata_bytes_v0_),
|
|
metadata_encryption_key_tag_v0_(arena, from.metadata_encryption_key_tag_v0_),
|
|
connection_signature_verification_key_(arena, from.connection_signature_verification_key_),
|
|
advertisement_signature_verification_key_(arena, from.advertisement_signature_verification_key_),
|
|
version_(arena, from.version_),
|
|
encrypted_metadata_bytes_v1_(arena, from.encrypted_metadata_bytes_v1_),
|
|
identity_token_short_salt_adv_hmac_key_v1_(arena, from.identity_token_short_salt_adv_hmac_key_v1_),
|
|
dusi_(arena, from.dusi_),
|
|
signature_version_(arena, from.signature_version_),
|
|
identity_token_extended_salt_adv_hmac_key_v1_(arena, from.identity_token_extended_salt_adv_hmac_key_v1_),
|
|
identity_token_signed_adv_hmac_key_v1_(arena, from.identity_token_signed_adv_hmac_key_v1_),
|
|
rust_encrypted_metadata_bytes_v0_(arena, from.rust_encrypted_metadata_bytes_v0_) {}
|
|
|
|
SharedCredential::SharedCredential(
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
|
|
const SharedCredential& from)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: ::google::protobuf::MessageLite(arena, SharedCredential_class_data_.base()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: ::google::protobuf::MessageLite(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
SharedCredential* const _this = this;
|
|
(void)_this;
|
|
_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
|
|
::memcpy(reinterpret_cast<char*>(&_impl_) +
|
|
offsetof(Impl_, start_time_millis_),
|
|
reinterpret_cast<const char*>(&from._impl_) +
|
|
offsetof(Impl_, start_time_millis_),
|
|
offsetof(Impl_, credential_version_) -
|
|
offsetof(Impl_, start_time_millis_) +
|
|
sizeof(Impl_::credential_version_));
|
|
|
|
// @@protoc_insertion_point(copy_constructor:nearby.internal.SharedCredential)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE SharedCredential::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
: _cached_size_{0},
|
|
secret_id_(arena),
|
|
key_seed_(arena),
|
|
encrypted_metadata_bytes_v0_(arena),
|
|
metadata_encryption_key_tag_v0_(arena),
|
|
connection_signature_verification_key_(arena),
|
|
advertisement_signature_verification_key_(arena),
|
|
version_(arena),
|
|
encrypted_metadata_bytes_v1_(arena),
|
|
identity_token_short_salt_adv_hmac_key_v1_(arena),
|
|
dusi_(arena),
|
|
signature_version_(arena),
|
|
identity_token_extended_salt_adv_hmac_key_v1_(arena),
|
|
identity_token_signed_adv_hmac_key_v1_(arena),
|
|
rust_encrypted_metadata_bytes_v0_(arena) {}
|
|
|
|
inline void SharedCredential::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
|
|
new (&_impl_) Impl_(internal_visibility(), arena);
|
|
::memset(reinterpret_cast<char*>(&_impl_) +
|
|
offsetof(Impl_, start_time_millis_),
|
|
0,
|
|
offsetof(Impl_, credential_version_) -
|
|
offsetof(Impl_, start_time_millis_) +
|
|
sizeof(Impl_::credential_version_));
|
|
}
|
|
SharedCredential::~SharedCredential() {
|
|
// @@protoc_insertion_point(destructor:nearby.internal.SharedCredential)
|
|
SharedDtor(*this);
|
|
}
|
|
inline void SharedCredential::SharedDtor(MessageLite& self) {
|
|
SharedCredential& this_ = static_cast<SharedCredential&>(self);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
this_._internal_metadata_.Delete<::std::string>();
|
|
ABSL_DCHECK(this_.GetArena() == nullptr);
|
|
this_._impl_.secret_id_.Destroy();
|
|
this_._impl_.key_seed_.Destroy();
|
|
this_._impl_.encrypted_metadata_bytes_v0_.Destroy();
|
|
this_._impl_.metadata_encryption_key_tag_v0_.Destroy();
|
|
this_._impl_.connection_signature_verification_key_.Destroy();
|
|
this_._impl_.advertisement_signature_verification_key_.Destroy();
|
|
this_._impl_.version_.Destroy();
|
|
this_._impl_.encrypted_metadata_bytes_v1_.Destroy();
|
|
this_._impl_.identity_token_short_salt_adv_hmac_key_v1_.Destroy();
|
|
this_._impl_.dusi_.Destroy();
|
|
this_._impl_.signature_version_.Destroy();
|
|
this_._impl_.identity_token_extended_salt_adv_hmac_key_v1_.Destroy();
|
|
this_._impl_.identity_token_signed_adv_hmac_key_v1_.Destroy();
|
|
this_._impl_.rust_encrypted_metadata_bytes_v0_.Destroy();
|
|
this_._impl_.~Impl_();
|
|
}
|
|
|
|
inline void* PROTOBUF_NONNULL SharedCredential::PlacementNew_(
|
|
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
|
|
return ::new (mem) SharedCredential(arena);
|
|
}
|
|
constexpr auto SharedCredential::InternalNewImpl_() {
|
|
return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SharedCredential),
|
|
alignof(SharedCredential));
|
|
}
|
|
constexpr auto SharedCredential::InternalGenerateClassData_() {
|
|
return ::google::protobuf::internal::ClassDataLite<33>{
|
|
{
|
|
&_SharedCredential_default_instance_._instance,
|
|
&_table_.header,
|
|
nullptr, // OnDemandRegisterArenaDtor
|
|
nullptr, // IsInitialized
|
|
&SharedCredential::MergeImpl,
|
|
::google::protobuf::MessageLite::GetNewImpl<SharedCredential>(),
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
&SharedCredential::SharedDtor,
|
|
::google::protobuf::MessageLite::GetClearImpl<SharedCredential>(), &SharedCredential::ByteSizeLong,
|
|
&SharedCredential::_InternalSerialize,
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_._cached_size_),
|
|
true,
|
|
},
|
|
"nearby.internal.SharedCredential",
|
|
};
|
|
}
|
|
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::google::protobuf::internal::ClassDataLite<33> SharedCredential_class_data_ =
|
|
SharedCredential::InternalGenerateClassData_();
|
|
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
SharedCredential::GetClassData() const {
|
|
return SharedCredential_class_data_.base();
|
|
}
|
|
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::_pbi::TcParseTable<5, 20, 0, 78, 2>
|
|
SharedCredential::_table_ = {
|
|
{
|
|
PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_._has_bits_),
|
|
0, // no _extensions_
|
|
20, 248, // max_field_number, fast_idx_mask
|
|
offsetof(decltype(_table_), field_lookup_table),
|
|
4293918720, // skipmap
|
|
offsetof(decltype(_table_), field_entries),
|
|
20, // num_field_entries
|
|
0, // num_aux_entries
|
|
offsetof(decltype(_table_), field_names), // no aux_entries
|
|
SharedCredential_class_data_.base(),
|
|
nullptr, // post_loop_handler
|
|
::_pbi::TcParser::GenericFallbackLite, // fallback
|
|
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
|
|
::_pbi::TcParser::GetTable<::nearby::internal::SharedCredential>(), // to_prefetch
|
|
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
|
|
}, {{
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
// bytes secret_id = 1 [deprecated = true];
|
|
{::_pbi::TcParser::FastBS1,
|
|
{10, 0, 0,
|
|
PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.secret_id_)}},
|
|
// bytes key_seed = 2;
|
|
{::_pbi::TcParser::FastBS1,
|
|
{18, 1, 0,
|
|
PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.key_seed_)}},
|
|
// int64 start_time_millis = 3;
|
|
{::_pbi::TcParser::FastV64S1,
|
|
{24, 14, 0,
|
|
PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.start_time_millis_)}},
|
|
// int64 end_time_millis = 4;
|
|
{::_pbi::TcParser::FastV64S1,
|
|
{32, 15, 0,
|
|
PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.end_time_millis_)}},
|
|
// bytes encrypted_metadata_bytes_v0 = 5;
|
|
{::_pbi::TcParser::FastBS1,
|
|
{42, 2, 0,
|
|
PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.encrypted_metadata_bytes_v0_)}},
|
|
// bytes metadata_encryption_key_tag_v0 = 6;
|
|
{::_pbi::TcParser::FastBS1,
|
|
{50, 3, 0,
|
|
PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.metadata_encryption_key_tag_v0_)}},
|
|
// bytes connection_signature_verification_key = 7;
|
|
{::_pbi::TcParser::FastBS1,
|
|
{58, 4, 0,
|
|
PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.connection_signature_verification_key_)}},
|
|
// bytes advertisement_signature_verification_key = 8;
|
|
{::_pbi::TcParser::FastBS1,
|
|
{66, 5, 0,
|
|
PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.advertisement_signature_verification_key_)}},
|
|
// .nearby.internal.IdentityType identity_type = 9;
|
|
{::_pbi::TcParser::FastV32S1,
|
|
{72, 16, 0,
|
|
PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.identity_type_)}},
|
|
// bytes version = 10 [deprecated = true];
|
|
{::_pbi::TcParser::FastBS1,
|
|
{82, 6, 0,
|
|
PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.version_)}},
|
|
// .nearby.internal.CredentialType credential_type = 11;
|
|
{::_pbi::TcParser::FastV32S1,
|
|
{88, 17, 0,
|
|
PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.credential_type_)}},
|
|
// bytes encrypted_metadata_bytes_v1 = 12;
|
|
{::_pbi::TcParser::FastBS1,
|
|
{98, 7, 0,
|
|
PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.encrypted_metadata_bytes_v1_)}},
|
|
// bytes identity_token_short_salt_adv_hmac_key_v1 = 13;
|
|
{::_pbi::TcParser::FastBS1,
|
|
{106, 8, 0,
|
|
PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.identity_token_short_salt_adv_hmac_key_v1_)}},
|
|
// int64 id = 14;
|
|
{::_pbi::TcParser::FastV64S1,
|
|
{112, 18, 0,
|
|
PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.id_)}},
|
|
// string dusi = 15;
|
|
{::_pbi::TcParser::FastUS1,
|
|
{122, 9, 0,
|
|
PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.dusi_)}},
|
|
// string signature_version = 16 [deprecated = true];
|
|
{::_pbi::TcParser::FastUS2,
|
|
{386, 10, 0,
|
|
PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.signature_version_)}},
|
|
// bytes identity_token_extended_salt_adv_hmac_key_v1 = 17;
|
|
{::_pbi::TcParser::FastBS2,
|
|
{394, 11, 0,
|
|
PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.identity_token_extended_salt_adv_hmac_key_v1_)}},
|
|
// bytes identity_token_signed_adv_hmac_key_v1 = 18;
|
|
{::_pbi::TcParser::FastBS2,
|
|
{402, 12, 0,
|
|
PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.identity_token_signed_adv_hmac_key_v1_)}},
|
|
// int64 credential_version = 19;
|
|
{::_pbi::TcParser::FastV64S2,
|
|
{408, 19, 0,
|
|
PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.credential_version_)}},
|
|
// bytes rust_encrypted_metadata_bytes_v0 = 20;
|
|
{::_pbi::TcParser::FastBS2,
|
|
{418, 13, 0,
|
|
PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.rust_encrypted_metadata_bytes_v0_)}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// bytes secret_id = 1 [deprecated = true];
|
|
{PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.secret_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
// bytes key_seed = 2;
|
|
{PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.key_seed_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
// int64 start_time_millis = 3;
|
|
{PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.start_time_millis_), _Internal::kHasBitsOffset + 14, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
|
|
// int64 end_time_millis = 4;
|
|
{PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.end_time_millis_), _Internal::kHasBitsOffset + 15, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
|
|
// bytes encrypted_metadata_bytes_v0 = 5;
|
|
{PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.encrypted_metadata_bytes_v0_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
// bytes metadata_encryption_key_tag_v0 = 6;
|
|
{PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.metadata_encryption_key_tag_v0_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
// bytes connection_signature_verification_key = 7;
|
|
{PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.connection_signature_verification_key_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
// bytes advertisement_signature_verification_key = 8;
|
|
{PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.advertisement_signature_verification_key_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
// .nearby.internal.IdentityType identity_type = 9;
|
|
{PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.identity_type_), _Internal::kHasBitsOffset + 16, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
|
|
// bytes version = 10 [deprecated = true];
|
|
{PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.version_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
// .nearby.internal.CredentialType credential_type = 11;
|
|
{PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.credential_type_), _Internal::kHasBitsOffset + 17, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
|
|
// bytes encrypted_metadata_bytes_v1 = 12;
|
|
{PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.encrypted_metadata_bytes_v1_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
// bytes identity_token_short_salt_adv_hmac_key_v1 = 13;
|
|
{PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.identity_token_short_salt_adv_hmac_key_v1_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
// int64 id = 14;
|
|
{PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.id_), _Internal::kHasBitsOffset + 18, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
|
|
// string dusi = 15;
|
|
{PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.dusi_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
|
|
// string signature_version = 16 [deprecated = true];
|
|
{PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.signature_version_), _Internal::kHasBitsOffset + 10, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
|
|
// bytes identity_token_extended_salt_adv_hmac_key_v1 = 17;
|
|
{PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.identity_token_extended_salt_adv_hmac_key_v1_), _Internal::kHasBitsOffset + 11, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
// bytes identity_token_signed_adv_hmac_key_v1 = 18;
|
|
{PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.identity_token_signed_adv_hmac_key_v1_), _Internal::kHasBitsOffset + 12, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
// int64 credential_version = 19;
|
|
{PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.credential_version_), _Internal::kHasBitsOffset + 19, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
|
|
// bytes rust_encrypted_metadata_bytes_v0 = 20;
|
|
{PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.rust_encrypted_metadata_bytes_v0_), _Internal::kHasBitsOffset + 13, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
}},
|
|
// no aux_entries
|
|
{{
|
|
"\40\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\21\0\0\0\0\0\0\0"
|
|
"nearby.internal.SharedCredential"
|
|
"dusi"
|
|
"signature_version"
|
|
}},
|
|
};
|
|
PROTOBUF_NOINLINE void SharedCredential::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:nearby.internal.SharedCredential)
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
::uint32_t cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = _impl_._has_bits_[0];
|
|
if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) {
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
_impl_.secret_id_.ClearNonDefaultToEmpty();
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
_impl_.key_seed_.ClearNonDefaultToEmpty();
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
_impl_.encrypted_metadata_bytes_v0_.ClearNonDefaultToEmpty();
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
_impl_.metadata_encryption_key_tag_v0_.ClearNonDefaultToEmpty();
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
|
|
_impl_.connection_signature_verification_key_.ClearNonDefaultToEmpty();
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
|
|
_impl_.advertisement_signature_verification_key_.ClearNonDefaultToEmpty();
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
|
|
_impl_.version_.ClearNonDefaultToEmpty();
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
|
|
_impl_.encrypted_metadata_bytes_v1_.ClearNonDefaultToEmpty();
|
|
}
|
|
}
|
|
if (BatchCheckHasBit(cached_has_bits, 0x00003f00U)) {
|
|
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
|
|
_impl_.identity_token_short_salt_adv_hmac_key_v1_.ClearNonDefaultToEmpty();
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000200U)) {
|
|
_impl_.dusi_.ClearNonDefaultToEmpty();
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000400U)) {
|
|
_impl_.signature_version_.ClearNonDefaultToEmpty();
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000800U)) {
|
|
_impl_.identity_token_extended_salt_adv_hmac_key_v1_.ClearNonDefaultToEmpty();
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00001000U)) {
|
|
_impl_.identity_token_signed_adv_hmac_key_v1_.ClearNonDefaultToEmpty();
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00002000U)) {
|
|
_impl_.rust_encrypted_metadata_bytes_v0_.ClearNonDefaultToEmpty();
|
|
}
|
|
}
|
|
if (BatchCheckHasBit(cached_has_bits, 0x0000c000U)) {
|
|
::memset(&_impl_.start_time_millis_, 0, static_cast<::size_t>(
|
|
reinterpret_cast<char*>(&_impl_.end_time_millis_) -
|
|
reinterpret_cast<char*>(&_impl_.start_time_millis_)) + sizeof(_impl_.end_time_millis_));
|
|
}
|
|
if (BatchCheckHasBit(cached_has_bits, 0x000f0000U)) {
|
|
::memset(&_impl_.identity_type_, 0, static_cast<::size_t>(
|
|
reinterpret_cast<char*>(&_impl_.credential_version_) -
|
|
reinterpret_cast<char*>(&_impl_.identity_type_)) + sizeof(_impl_.credential_version_));
|
|
}
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::std::string>();
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::uint8_t* PROTOBUF_NONNULL SharedCredential::_InternalSerialize(
|
|
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
|
|
const SharedCredential& this_ = static_cast<const SharedCredential&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::uint8_t* PROTOBUF_NONNULL SharedCredential::_InternalSerialize(
|
|
::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
|
|
const SharedCredential& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_start:nearby.internal.SharedCredential)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
// bytes secret_id = 1 [deprecated = true];
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
if (!this_._internal_secret_id().empty()) {
|
|
const ::std::string& _s = this_._internal_secret_id();
|
|
target = stream->WriteBytesMaybeAliased(1, _s, target);
|
|
}
|
|
}
|
|
|
|
// bytes key_seed = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
if (!this_._internal_key_seed().empty()) {
|
|
const ::std::string& _s = this_._internal_key_seed();
|
|
target = stream->WriteBytesMaybeAliased(2, _s, target);
|
|
}
|
|
}
|
|
|
|
// int64 start_time_millis = 3;
|
|
if (CheckHasBit(cached_has_bits, 0x00004000U)) {
|
|
if (this_._internal_start_time_millis() != 0) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>(
|
|
stream, this_._internal_start_time_millis(), target);
|
|
}
|
|
}
|
|
|
|
// int64 end_time_millis = 4;
|
|
if (CheckHasBit(cached_has_bits, 0x00008000U)) {
|
|
if (this_._internal_end_time_millis() != 0) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<4>(
|
|
stream, this_._internal_end_time_millis(), target);
|
|
}
|
|
}
|
|
|
|
// bytes encrypted_metadata_bytes_v0 = 5;
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
if (!this_._internal_encrypted_metadata_bytes_v0().empty()) {
|
|
const ::std::string& _s = this_._internal_encrypted_metadata_bytes_v0();
|
|
target = stream->WriteBytesMaybeAliased(5, _s, target);
|
|
}
|
|
}
|
|
|
|
// bytes metadata_encryption_key_tag_v0 = 6;
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
if (!this_._internal_metadata_encryption_key_tag_v0().empty()) {
|
|
const ::std::string& _s = this_._internal_metadata_encryption_key_tag_v0();
|
|
target = stream->WriteBytesMaybeAliased(6, _s, target);
|
|
}
|
|
}
|
|
|
|
// bytes connection_signature_verification_key = 7;
|
|
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
|
|
if (!this_._internal_connection_signature_verification_key().empty()) {
|
|
const ::std::string& _s = this_._internal_connection_signature_verification_key();
|
|
target = stream->WriteBytesMaybeAliased(7, _s, target);
|
|
}
|
|
}
|
|
|
|
// bytes advertisement_signature_verification_key = 8;
|
|
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
|
|
if (!this_._internal_advertisement_signature_verification_key().empty()) {
|
|
const ::std::string& _s = this_._internal_advertisement_signature_verification_key();
|
|
target = stream->WriteBytesMaybeAliased(8, _s, target);
|
|
}
|
|
}
|
|
|
|
// .nearby.internal.IdentityType identity_type = 9;
|
|
if (CheckHasBit(cached_has_bits, 0x00010000U)) {
|
|
if (this_._internal_identity_type() != 0) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
9, this_._internal_identity_type(), target);
|
|
}
|
|
}
|
|
|
|
// bytes version = 10 [deprecated = true];
|
|
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
|
|
if (!this_._internal_version().empty()) {
|
|
const ::std::string& _s = this_._internal_version();
|
|
target = stream->WriteBytesMaybeAliased(10, _s, target);
|
|
}
|
|
}
|
|
|
|
// .nearby.internal.CredentialType credential_type = 11;
|
|
if (CheckHasBit(cached_has_bits, 0x00020000U)) {
|
|
if (this_._internal_credential_type() != 0) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
11, this_._internal_credential_type(), target);
|
|
}
|
|
}
|
|
|
|
// bytes encrypted_metadata_bytes_v1 = 12;
|
|
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
|
|
if (!this_._internal_encrypted_metadata_bytes_v1().empty()) {
|
|
const ::std::string& _s = this_._internal_encrypted_metadata_bytes_v1();
|
|
target = stream->WriteBytesMaybeAliased(12, _s, target);
|
|
}
|
|
}
|
|
|
|
// bytes identity_token_short_salt_adv_hmac_key_v1 = 13;
|
|
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
|
|
if (!this_._internal_identity_token_short_salt_adv_hmac_key_v1().empty()) {
|
|
const ::std::string& _s = this_._internal_identity_token_short_salt_adv_hmac_key_v1();
|
|
target = stream->WriteBytesMaybeAliased(13, _s, target);
|
|
}
|
|
}
|
|
|
|
// int64 id = 14;
|
|
if (CheckHasBit(cached_has_bits, 0x00040000U)) {
|
|
if (this_._internal_id() != 0) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<14>(
|
|
stream, this_._internal_id(), target);
|
|
}
|
|
}
|
|
|
|
// string dusi = 15;
|
|
if (CheckHasBit(cached_has_bits, 0x00000200U)) {
|
|
if (!this_._internal_dusi().empty()) {
|
|
const ::std::string& _s = this_._internal_dusi();
|
|
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
|
|
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "nearby.internal.SharedCredential.dusi");
|
|
target = stream->WriteStringMaybeAliased(15, _s, target);
|
|
}
|
|
}
|
|
|
|
// string signature_version = 16 [deprecated = true];
|
|
if (CheckHasBit(cached_has_bits, 0x00000400U)) {
|
|
if (!this_._internal_signature_version().empty()) {
|
|
const ::std::string& _s = this_._internal_signature_version();
|
|
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
|
|
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "nearby.internal.SharedCredential.signature_version");
|
|
target = stream->WriteStringMaybeAliased(16, _s, target);
|
|
}
|
|
}
|
|
|
|
// bytes identity_token_extended_salt_adv_hmac_key_v1 = 17;
|
|
if (CheckHasBit(cached_has_bits, 0x00000800U)) {
|
|
if (!this_._internal_identity_token_extended_salt_adv_hmac_key_v1().empty()) {
|
|
const ::std::string& _s = this_._internal_identity_token_extended_salt_adv_hmac_key_v1();
|
|
target = stream->WriteBytesMaybeAliased(17, _s, target);
|
|
}
|
|
}
|
|
|
|
// bytes identity_token_signed_adv_hmac_key_v1 = 18;
|
|
if (CheckHasBit(cached_has_bits, 0x00001000U)) {
|
|
if (!this_._internal_identity_token_signed_adv_hmac_key_v1().empty()) {
|
|
const ::std::string& _s = this_._internal_identity_token_signed_adv_hmac_key_v1();
|
|
target = stream->WriteBytesMaybeAliased(18, _s, target);
|
|
}
|
|
}
|
|
|
|
// int64 credential_version = 19;
|
|
if (CheckHasBit(cached_has_bits, 0x00080000U)) {
|
|
if (this_._internal_credential_version() != 0) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteInt64ToArray(
|
|
19, this_._internal_credential_version(), target);
|
|
}
|
|
}
|
|
|
|
// bytes rust_encrypted_metadata_bytes_v0 = 20;
|
|
if (CheckHasBit(cached_has_bits, 0x00002000U)) {
|
|
if (!this_._internal_rust_encrypted_metadata_bytes_v0().empty()) {
|
|
const ::std::string& _s = this_._internal_rust_encrypted_metadata_bytes_v0();
|
|
target = stream->WriteBytesMaybeAliased(20, _s, target);
|
|
}
|
|
}
|
|
|
|
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
|
|
target = stream->WriteRaw(
|
|
this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
|
|
static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:nearby.internal.SharedCredential)
|
|
return target;
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::size_t SharedCredential::ByteSizeLong(const MessageLite& base) {
|
|
const SharedCredential& this_ = static_cast<const SharedCredential&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::size_t SharedCredential::ByteSizeLong() const {
|
|
const SharedCredential& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
// @@protoc_insertion_point(message_byte_size_start:nearby.internal.SharedCredential)
|
|
::size_t total_size = 0;
|
|
|
|
::uint32_t cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void)cached_has_bits;
|
|
|
|
::_pbi::Prefetch5LinesFrom7Lines(&this_);
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) {
|
|
// bytes secret_id = 1 [deprecated = true];
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
if (!this_._internal_secret_id().empty()) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
|
|
this_._internal_secret_id());
|
|
}
|
|
}
|
|
// bytes key_seed = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
if (!this_._internal_key_seed().empty()) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
|
|
this_._internal_key_seed());
|
|
}
|
|
}
|
|
// bytes encrypted_metadata_bytes_v0 = 5;
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
if (!this_._internal_encrypted_metadata_bytes_v0().empty()) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
|
|
this_._internal_encrypted_metadata_bytes_v0());
|
|
}
|
|
}
|
|
// bytes metadata_encryption_key_tag_v0 = 6;
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
if (!this_._internal_metadata_encryption_key_tag_v0().empty()) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
|
|
this_._internal_metadata_encryption_key_tag_v0());
|
|
}
|
|
}
|
|
// bytes connection_signature_verification_key = 7;
|
|
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
|
|
if (!this_._internal_connection_signature_verification_key().empty()) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
|
|
this_._internal_connection_signature_verification_key());
|
|
}
|
|
}
|
|
// bytes advertisement_signature_verification_key = 8;
|
|
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
|
|
if (!this_._internal_advertisement_signature_verification_key().empty()) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
|
|
this_._internal_advertisement_signature_verification_key());
|
|
}
|
|
}
|
|
// bytes version = 10 [deprecated = true];
|
|
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
|
|
if (!this_._internal_version().empty()) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
|
|
this_._internal_version());
|
|
}
|
|
}
|
|
// bytes encrypted_metadata_bytes_v1 = 12;
|
|
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
|
|
if (!this_._internal_encrypted_metadata_bytes_v1().empty()) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
|
|
this_._internal_encrypted_metadata_bytes_v1());
|
|
}
|
|
}
|
|
}
|
|
if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) {
|
|
// bytes identity_token_short_salt_adv_hmac_key_v1 = 13;
|
|
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
|
|
if (!this_._internal_identity_token_short_salt_adv_hmac_key_v1().empty()) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
|
|
this_._internal_identity_token_short_salt_adv_hmac_key_v1());
|
|
}
|
|
}
|
|
// string dusi = 15;
|
|
if (CheckHasBit(cached_has_bits, 0x00000200U)) {
|
|
if (!this_._internal_dusi().empty()) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this_._internal_dusi());
|
|
}
|
|
}
|
|
// string signature_version = 16 [deprecated = true];
|
|
if (CheckHasBit(cached_has_bits, 0x00000400U)) {
|
|
if (!this_._internal_signature_version().empty()) {
|
|
total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this_._internal_signature_version());
|
|
}
|
|
}
|
|
// bytes identity_token_extended_salt_adv_hmac_key_v1 = 17;
|
|
if (CheckHasBit(cached_has_bits, 0x00000800U)) {
|
|
if (!this_._internal_identity_token_extended_salt_adv_hmac_key_v1().empty()) {
|
|
total_size += 2 + ::google::protobuf::internal::WireFormatLite::BytesSize(
|
|
this_._internal_identity_token_extended_salt_adv_hmac_key_v1());
|
|
}
|
|
}
|
|
// bytes identity_token_signed_adv_hmac_key_v1 = 18;
|
|
if (CheckHasBit(cached_has_bits, 0x00001000U)) {
|
|
if (!this_._internal_identity_token_signed_adv_hmac_key_v1().empty()) {
|
|
total_size += 2 + ::google::protobuf::internal::WireFormatLite::BytesSize(
|
|
this_._internal_identity_token_signed_adv_hmac_key_v1());
|
|
}
|
|
}
|
|
// bytes rust_encrypted_metadata_bytes_v0 = 20;
|
|
if (CheckHasBit(cached_has_bits, 0x00002000U)) {
|
|
if (!this_._internal_rust_encrypted_metadata_bytes_v0().empty()) {
|
|
total_size += 2 + ::google::protobuf::internal::WireFormatLite::BytesSize(
|
|
this_._internal_rust_encrypted_metadata_bytes_v0());
|
|
}
|
|
}
|
|
// int64 start_time_millis = 3;
|
|
if (CheckHasBit(cached_has_bits, 0x00004000U)) {
|
|
if (this_._internal_start_time_millis() != 0) {
|
|
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
|
|
this_._internal_start_time_millis());
|
|
}
|
|
}
|
|
// int64 end_time_millis = 4;
|
|
if (CheckHasBit(cached_has_bits, 0x00008000U)) {
|
|
if (this_._internal_end_time_millis() != 0) {
|
|
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
|
|
this_._internal_end_time_millis());
|
|
}
|
|
}
|
|
}
|
|
if (BatchCheckHasBit(cached_has_bits, 0x000f0000U)) {
|
|
// .nearby.internal.IdentityType identity_type = 9;
|
|
if (CheckHasBit(cached_has_bits, 0x00010000U)) {
|
|
if (this_._internal_identity_type() != 0) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_identity_type());
|
|
}
|
|
}
|
|
// .nearby.internal.CredentialType credential_type = 11;
|
|
if (CheckHasBit(cached_has_bits, 0x00020000U)) {
|
|
if (this_._internal_credential_type() != 0) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_credential_type());
|
|
}
|
|
}
|
|
// int64 id = 14;
|
|
if (CheckHasBit(cached_has_bits, 0x00040000U)) {
|
|
if (this_._internal_id() != 0) {
|
|
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
|
|
this_._internal_id());
|
|
}
|
|
}
|
|
// int64 credential_version = 19;
|
|
if (CheckHasBit(cached_has_bits, 0x00080000U)) {
|
|
if (this_._internal_credential_version() != 0) {
|
|
total_size += 2 + ::_pbi::WireFormatLite::Int64Size(
|
|
this_._internal_credential_version());
|
|
}
|
|
}
|
|
}
|
|
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
|
|
total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
|
|
}
|
|
this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
|
|
return total_size;
|
|
}
|
|
|
|
void SharedCredential::MergeImpl(::google::protobuf::MessageLite& to_msg,
|
|
const ::google::protobuf::MessageLite& from_msg) {
|
|
auto* const _this =
|
|
static_cast<SharedCredential*>(&to_msg);
|
|
auto& from = static_cast<const SharedCredential&>(from_msg);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
from.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.internal.SharedCredential)
|
|
ABSL_DCHECK_NE(&from, _this);
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = from._impl_._has_bits_[0];
|
|
if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) {
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
if (!from._internal_secret_id().empty()) {
|
|
_this->_internal_set_secret_id(from._internal_secret_id());
|
|
} else {
|
|
if (_this->_impl_.secret_id_.IsDefault()) {
|
|
_this->_internal_set_secret_id("");
|
|
}
|
|
}
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
if (!from._internal_key_seed().empty()) {
|
|
_this->_internal_set_key_seed(from._internal_key_seed());
|
|
} else {
|
|
if (_this->_impl_.key_seed_.IsDefault()) {
|
|
_this->_internal_set_key_seed("");
|
|
}
|
|
}
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
if (!from._internal_encrypted_metadata_bytes_v0().empty()) {
|
|
_this->_internal_set_encrypted_metadata_bytes_v0(from._internal_encrypted_metadata_bytes_v0());
|
|
} else {
|
|
if (_this->_impl_.encrypted_metadata_bytes_v0_.IsDefault()) {
|
|
_this->_internal_set_encrypted_metadata_bytes_v0("");
|
|
}
|
|
}
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
if (!from._internal_metadata_encryption_key_tag_v0().empty()) {
|
|
_this->_internal_set_metadata_encryption_key_tag_v0(from._internal_metadata_encryption_key_tag_v0());
|
|
} else {
|
|
if (_this->_impl_.metadata_encryption_key_tag_v0_.IsDefault()) {
|
|
_this->_internal_set_metadata_encryption_key_tag_v0("");
|
|
}
|
|
}
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
|
|
if (!from._internal_connection_signature_verification_key().empty()) {
|
|
_this->_internal_set_connection_signature_verification_key(from._internal_connection_signature_verification_key());
|
|
} else {
|
|
if (_this->_impl_.connection_signature_verification_key_.IsDefault()) {
|
|
_this->_internal_set_connection_signature_verification_key("");
|
|
}
|
|
}
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
|
|
if (!from._internal_advertisement_signature_verification_key().empty()) {
|
|
_this->_internal_set_advertisement_signature_verification_key(from._internal_advertisement_signature_verification_key());
|
|
} else {
|
|
if (_this->_impl_.advertisement_signature_verification_key_.IsDefault()) {
|
|
_this->_internal_set_advertisement_signature_verification_key("");
|
|
}
|
|
}
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
|
|
if (!from._internal_version().empty()) {
|
|
_this->_internal_set_version(from._internal_version());
|
|
} else {
|
|
if (_this->_impl_.version_.IsDefault()) {
|
|
_this->_internal_set_version("");
|
|
}
|
|
}
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
|
|
if (!from._internal_encrypted_metadata_bytes_v1().empty()) {
|
|
_this->_internal_set_encrypted_metadata_bytes_v1(from._internal_encrypted_metadata_bytes_v1());
|
|
} else {
|
|
if (_this->_impl_.encrypted_metadata_bytes_v1_.IsDefault()) {
|
|
_this->_internal_set_encrypted_metadata_bytes_v1("");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) {
|
|
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
|
|
if (!from._internal_identity_token_short_salt_adv_hmac_key_v1().empty()) {
|
|
_this->_internal_set_identity_token_short_salt_adv_hmac_key_v1(from._internal_identity_token_short_salt_adv_hmac_key_v1());
|
|
} else {
|
|
if (_this->_impl_.identity_token_short_salt_adv_hmac_key_v1_.IsDefault()) {
|
|
_this->_internal_set_identity_token_short_salt_adv_hmac_key_v1("");
|
|
}
|
|
}
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000200U)) {
|
|
if (!from._internal_dusi().empty()) {
|
|
_this->_internal_set_dusi(from._internal_dusi());
|
|
} else {
|
|
if (_this->_impl_.dusi_.IsDefault()) {
|
|
_this->_internal_set_dusi("");
|
|
}
|
|
}
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000400U)) {
|
|
if (!from._internal_signature_version().empty()) {
|
|
_this->_internal_set_signature_version(from._internal_signature_version());
|
|
} else {
|
|
if (_this->_impl_.signature_version_.IsDefault()) {
|
|
_this->_internal_set_signature_version("");
|
|
}
|
|
}
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000800U)) {
|
|
if (!from._internal_identity_token_extended_salt_adv_hmac_key_v1().empty()) {
|
|
_this->_internal_set_identity_token_extended_salt_adv_hmac_key_v1(from._internal_identity_token_extended_salt_adv_hmac_key_v1());
|
|
} else {
|
|
if (_this->_impl_.identity_token_extended_salt_adv_hmac_key_v1_.IsDefault()) {
|
|
_this->_internal_set_identity_token_extended_salt_adv_hmac_key_v1("");
|
|
}
|
|
}
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00001000U)) {
|
|
if (!from._internal_identity_token_signed_adv_hmac_key_v1().empty()) {
|
|
_this->_internal_set_identity_token_signed_adv_hmac_key_v1(from._internal_identity_token_signed_adv_hmac_key_v1());
|
|
} else {
|
|
if (_this->_impl_.identity_token_signed_adv_hmac_key_v1_.IsDefault()) {
|
|
_this->_internal_set_identity_token_signed_adv_hmac_key_v1("");
|
|
}
|
|
}
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00002000U)) {
|
|
if (!from._internal_rust_encrypted_metadata_bytes_v0().empty()) {
|
|
_this->_internal_set_rust_encrypted_metadata_bytes_v0(from._internal_rust_encrypted_metadata_bytes_v0());
|
|
} else {
|
|
if (_this->_impl_.rust_encrypted_metadata_bytes_v0_.IsDefault()) {
|
|
_this->_internal_set_rust_encrypted_metadata_bytes_v0("");
|
|
}
|
|
}
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00004000U)) {
|
|
if (from._internal_start_time_millis() != 0) {
|
|
_this->_impl_.start_time_millis_ = from._impl_.start_time_millis_;
|
|
}
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00008000U)) {
|
|
if (from._internal_end_time_millis() != 0) {
|
|
_this->_impl_.end_time_millis_ = from._impl_.end_time_millis_;
|
|
}
|
|
}
|
|
}
|
|
if (BatchCheckHasBit(cached_has_bits, 0x000f0000U)) {
|
|
if (CheckHasBit(cached_has_bits, 0x00010000U)) {
|
|
if (from._internal_identity_type() != 0) {
|
|
_this->_impl_.identity_type_ = from._impl_.identity_type_;
|
|
}
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00020000U)) {
|
|
if (from._internal_credential_type() != 0) {
|
|
_this->_impl_.credential_type_ = from._impl_.credential_type_;
|
|
}
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00040000U)) {
|
|
if (from._internal_id() != 0) {
|
|
_this->_impl_.id_ = from._impl_.id_;
|
|
}
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00080000U)) {
|
|
if (from._internal_credential_version() != 0) {
|
|
_this->_impl_.credential_version_ = from._impl_.credential_version_;
|
|
}
|
|
}
|
|
}
|
|
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
|
_this->_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
}
|
|
|
|
void SharedCredential::CopyFrom(const SharedCredential& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.internal.SharedCredential)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
|
|
void SharedCredential::InternalSwap(SharedCredential* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
|
|
using ::std::swap;
|
|
auto* arena = GetArena();
|
|
ABSL_DCHECK_EQ(arena, other->GetArena());
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
|
swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.secret_id_, &other->_impl_.secret_id_, arena);
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.key_seed_, &other->_impl_.key_seed_, arena);
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.encrypted_metadata_bytes_v0_, &other->_impl_.encrypted_metadata_bytes_v0_, arena);
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.metadata_encryption_key_tag_v0_, &other->_impl_.metadata_encryption_key_tag_v0_, arena);
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.connection_signature_verification_key_, &other->_impl_.connection_signature_verification_key_, arena);
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.advertisement_signature_verification_key_, &other->_impl_.advertisement_signature_verification_key_, arena);
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.version_, &other->_impl_.version_, arena);
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.encrypted_metadata_bytes_v1_, &other->_impl_.encrypted_metadata_bytes_v1_, arena);
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.identity_token_short_salt_adv_hmac_key_v1_, &other->_impl_.identity_token_short_salt_adv_hmac_key_v1_, arena);
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.dusi_, &other->_impl_.dusi_, arena);
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.signature_version_, &other->_impl_.signature_version_, arena);
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.identity_token_extended_salt_adv_hmac_key_v1_, &other->_impl_.identity_token_extended_salt_adv_hmac_key_v1_, arena);
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.identity_token_signed_adv_hmac_key_v1_, &other->_impl_.identity_token_signed_adv_hmac_key_v1_, arena);
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.rust_encrypted_metadata_bytes_v0_, &other->_impl_.rust_encrypted_metadata_bytes_v0_, arena);
|
|
::google::protobuf::internal::memswap<
|
|
PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.credential_version_)
|
|
+ sizeof(SharedCredential::_impl_.credential_version_)
|
|
- PROTOBUF_FIELD_OFFSET(SharedCredential, _impl_.start_time_millis_)>(
|
|
reinterpret_cast<char*>(&_impl_.start_time_millis_),
|
|
reinterpret_cast<char*>(&other->_impl_.start_time_millis_));
|
|
}
|
|
|
|
// @@protoc_insertion_point(namespace_scope)
|
|
} // namespace internal
|
|
} // namespace nearby
|
|
namespace google {
|
|
namespace protobuf {
|
|
} // namespace protobuf
|
|
} // namespace google
|
|
// @@protoc_insertion_point(global_scope)
|
|
#include "google/protobuf/port_undef.inc"
|