// Generated by the protocol buffer compiler.  DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: components/sync/protocol/nigori_specifics.proto
// Protobuf C++ Version: 7.35.1

#include "components/sync/protocol/nigori_specifics.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/internal_visibility.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 sync_pb {
class TrustedVaultAutoUpgradeExperimentGroup::_Internal {
 public:
  using HasBits = decltype(::std::declval<TrustedVaultAutoUpgradeExperimentGroup>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
      8 * PROTOBUF_FIELD_OFFSET(TrustedVaultAutoUpgradeExperimentGroup, _impl_._has_bits_);
};

constexpr TrustedVaultAutoUpgradeExperimentGroup::ParseTableT_ TrustedVaultAutoUpgradeExperimentGroup::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(TrustedVaultAutoUpgradeExperimentGroup, _impl_._has_bits_),
      0, // no _extensions_
      3, 24,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967288,  // skipmap
      offsetof(ParseTableT_, field_entries),
      3,  // num_field_entries
      1,  // num_aux_entries
      offsetof(ParseTableT_, aux_entries),
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::sync_pb::TrustedVaultAutoUpgradeExperimentGroup>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // optional int32 cohort = 1;
      {::_pbi::TcParser::FastV32S1,
       {8, 0, 0,
        PROTOBUF_FIELD_OFFSET(TrustedVaultAutoUpgradeExperimentGroup, _impl_.cohort_)}},
      // optional .sync_pb.TrustedVaultAutoUpgradeExperimentGroup.Type type = 2;
      {::_pbi::TcParser::FastEr0S1,
       {16, 1, 3,
        PROTOBUF_FIELD_OFFSET(TrustedVaultAutoUpgradeExperimentGroup, _impl_.type_)}},
      // optional int32 type_index = 3;
      {::_pbi::TcParser::FastV32S1,
       {24, 2, 0,
        PROTOBUF_FIELD_OFFSET(TrustedVaultAutoUpgradeExperimentGroup, _impl_.type_index_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional int32 cohort = 1;
      {PROTOBUF_FIELD_OFFSET(TrustedVaultAutoUpgradeExperimentGroup, _impl_.cohort_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // optional .sync_pb.TrustedVaultAutoUpgradeExperimentGroup.Type type = 2;
      {PROTOBUF_FIELD_OFFSET(TrustedVaultAutoUpgradeExperimentGroup, _impl_.type_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
      // optional int32 type_index = 3;
      {PROTOBUF_FIELD_OFFSET(TrustedVaultAutoUpgradeExperimentGroup, _impl_.type_index_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
    }},
    {{
        {0, 3},
    }},
    {{
    }},
  };
}


inline constexpr TrustedVaultAutoUpgradeExperimentGroup::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        cohort_{0},
        type_{static_cast< ::sync_pb::TrustedVaultAutoUpgradeExperimentGroup_Type >(0)},
        type_index_{0} {}

template <typename>
constexpr TrustedVaultAutoUpgradeExperimentGroup::TrustedVaultAutoUpgradeExperimentGroup(::_pbi::ConstantInitialized,
                       const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
    : ::google::protobuf::MessageLite(
#if defined(PROTOBUF_CUSTOM_VTABLE)
          class_data
#endif  // PROTOBUF_CUSTOM_VTABLE
          ),
      _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
}
inline void* PROTOBUF_NONNULL TrustedVaultAutoUpgradeExperimentGroup::PlacementNew_(
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
  return ::new (mem) TrustedVaultAutoUpgradeExperimentGroup(arena);
}
constexpr auto TrustedVaultAutoUpgradeExperimentGroup::InternalNewImpl_() {
  return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(TrustedVaultAutoUpgradeExperimentGroup), alignof(TrustedVaultAutoUpgradeExperimentGroup));
}
constexpr auto TrustedVaultAutoUpgradeExperimentGroup::InternalGenerateClassData_(
    const MessageLite& prototype,
    const ::google::protobuf::internal::TcParseTableBase* tc_table) {
  return ::google::protobuf::internal::ClassDataLite{
      {
          &prototype,
#ifndef PROTOBUF_MESSAGE_GLOBALS
          &_table_.header,
#else
          tc_table,
#endif
          nullptr,  // IsInitialized
          &TrustedVaultAutoUpgradeExperimentGroup::MergeImpl,
          ::google::protobuf::MessageLite::GetNewImpl<TrustedVaultAutoUpgradeExperimentGroup>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
          &TrustedVaultAutoUpgradeExperimentGroup::SharedDtor,
          ::google::protobuf::MessageLite::GetClearImpl<TrustedVaultAutoUpgradeExperimentGroup>(), &TrustedVaultAutoUpgradeExperimentGroup::ByteSizeLong,
              &TrustedVaultAutoUpgradeExperimentGroup::_InternalSerialize,
#endif  // PROTOBUF_CUSTOM_VTABLE
          PROTOBUF_FIELD_OFFSET(TrustedVaultAutoUpgradeExperimentGroup, _impl_._cached_size_),
          true,
      },
      "sync_pb.TrustedVaultAutoUpgradeExperimentGroup",
  };
}
struct TrustedVaultAutoUpgradeExperimentGroupGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
  constexpr TrustedVaultAutoUpgradeExperimentGroupGlobalsTypeInternal()
      :
#ifndef PROTOBUF_MESSAGE_GLOBALS
        _default(::_pbi::ConstantInitialized{},
                 TrustedVaultAutoUpgradeExperimentGroup_class_data_.base())
#else   // !PROTOBUF_MESSAGE_GLOBALS
        MessageGlobalsBase(TrustedVaultAutoUpgradeExperimentGroup::InternalGenerateClassData_(
            _default, &TrustedVaultAutoUpgradeExperimentGroup_globals_._table.header)),
        _default(::_pbi::ConstantInitialized{}, GetClassData()),
        _table(::_pbi::PrivateAccess::GenerateParseTable<TrustedVaultAutoUpgradeExperimentGroup>(
            GetClassData()))
#endif  // PROTOBUF_MESSAGE_GLOBALS
  {
  }
  ~TrustedVaultAutoUpgradeExperimentGroupGlobalsTypeInternal() {}
  union {
    alignas(::_pbi::kMaxMessageAlignment) TrustedVaultAutoUpgradeExperimentGroup _default;
  };
#ifdef PROTOBUF_MESSAGE_GLOBALS
  decltype(::_pbi::PrivateAccess::GenerateParseTable<TrustedVaultAutoUpgradeExperimentGroup>(
      ::std::declval<const ::_pbi::ClassData*>())) _table;
#endif
};
#ifdef PROTOBUF_MESSAGE_GLOBALS
static_assert(PROTOBUF_FIELD_OFFSET(TrustedVaultAutoUpgradeExperimentGroupGlobalsTypeInternal, _default) ==
              ::_pbi::MessageGlobalsBase::OffsetToDefault());
#endif  // PROTOBUF_MESSAGE_GLOBALS

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST TrustedVaultAutoUpgradeExperimentGroupGlobalsTypeInternal TrustedVaultAutoUpgradeExperimentGroup_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* TrustedVaultAutoUpgradeExperimentGroup_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return TrustedVaultAutoUpgradeExperimentGroup_globals_.GetClassData();
#else
  return TrustedVaultAutoUpgradeExperimentGroup_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
class NigoriKey::_Internal {
 public:
  using HasBits = decltype(::std::declval<NigoriKey>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
      8 * PROTOBUF_FIELD_OFFSET(NigoriKey, _impl_._has_bits_);
};

constexpr NigoriKey::ParseTableT_ NigoriKey::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(NigoriKey, _impl_._has_bits_),
      0, // no _extensions_
      4, 24,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967280,  // skipmap
      offsetof(ParseTableT_, field_entries),
      4,  // num_field_entries
      0,  // num_aux_entries
      offsetof(ParseTableT_, field_names),  // no aux_entries
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::sync_pb::NigoriKey>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // optional bytes mac_key = 4;
      {::_pbi::TcParser::FastBS1,
       {34, 3, 0,
        PROTOBUF_FIELD_OFFSET(NigoriKey, _impl_.mac_key_)}},
      // optional string deprecated_name = 1 [deprecated = true];
      {::_pbi::TcParser::FastBS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(NigoriKey, _impl_.deprecated_name_)}},
      // optional bytes deprecated_user_key = 2 [deprecated = true];
      {::_pbi::TcParser::FastBS1,
       {18, 1, 0,
        PROTOBUF_FIELD_OFFSET(NigoriKey, _impl_.deprecated_user_key_)}},
      // optional bytes encryption_key = 3;
      {::_pbi::TcParser::FastBS1,
       {26, 2, 0,
        PROTOBUF_FIELD_OFFSET(NigoriKey, _impl_.encryption_key_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional string deprecated_name = 1 [deprecated = true];
      {PROTOBUF_FIELD_OFFSET(NigoriKey, _impl_.deprecated_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional bytes deprecated_user_key = 2 [deprecated = true];
      {PROTOBUF_FIELD_OFFSET(NigoriKey, _impl_.deprecated_user_key_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional bytes encryption_key = 3;
      {PROTOBUF_FIELD_OFFSET(NigoriKey, _impl_.encryption_key_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional bytes mac_key = 4;
      {PROTOBUF_FIELD_OFFSET(NigoriKey, _impl_.mac_key_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
    }},
    // no aux_entries
    {{
    }},
  };
}


inline constexpr NigoriKey::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        deprecated_name_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        deprecated_user_key_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        encryption_key_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        mac_key_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()) {}

template <typename>
constexpr NigoriKey::NigoriKey(::_pbi::ConstantInitialized,
                       const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
    : ::google::protobuf::MessageLite(
#if defined(PROTOBUF_CUSTOM_VTABLE)
          class_data
#endif  // PROTOBUF_CUSTOM_VTABLE
          ),
      _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
}
inline void* PROTOBUF_NONNULL NigoriKey::PlacementNew_(
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
  return ::new (mem) NigoriKey(arena);
}
constexpr auto NigoriKey::InternalNewImpl_() {
  return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(NigoriKey), alignof(NigoriKey));
}
constexpr auto NigoriKey::InternalGenerateClassData_(
    const MessageLite& prototype,
    const ::google::protobuf::internal::TcParseTableBase* tc_table) {
  return ::google::protobuf::internal::ClassDataLite{
      {
          &prototype,
#ifndef PROTOBUF_MESSAGE_GLOBALS
          &_table_.header,
#else
          tc_table,
#endif
          nullptr,  // IsInitialized
          &NigoriKey::MergeImpl,
          ::google::protobuf::MessageLite::GetNewImpl<NigoriKey>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
          &NigoriKey::SharedDtor,
          ::google::protobuf::MessageLite::GetClearImpl<NigoriKey>(), &NigoriKey::ByteSizeLong,
              &NigoriKey::_InternalSerialize,
#endif  // PROTOBUF_CUSTOM_VTABLE
          PROTOBUF_FIELD_OFFSET(NigoriKey, _impl_._cached_size_),
          true,
      },
      "sync_pb.NigoriKey",
  };
}
struct NigoriKeyGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
  constexpr NigoriKeyGlobalsTypeInternal()
      :
#ifndef PROTOBUF_MESSAGE_GLOBALS
        _default(::_pbi::ConstantInitialized{},
                 NigoriKey_class_data_.base())
#else   // !PROTOBUF_MESSAGE_GLOBALS
        MessageGlobalsBase(NigoriKey::InternalGenerateClassData_(
            _default, &NigoriKey_globals_._table.header)),
        _default(::_pbi::ConstantInitialized{}, GetClassData()),
        _table(::_pbi::PrivateAccess::GenerateParseTable<NigoriKey>(
            GetClassData()))
#endif  // PROTOBUF_MESSAGE_GLOBALS
  {
  }
  ~NigoriKeyGlobalsTypeInternal() {}
  union {
    alignas(::_pbi::kMaxMessageAlignment) NigoriKey _default;
  };
#ifdef PROTOBUF_MESSAGE_GLOBALS
  decltype(::_pbi::PrivateAccess::GenerateParseTable<NigoriKey>(
      ::std::declval<const ::_pbi::ClassData*>())) _table;
#endif
};
#ifdef PROTOBUF_MESSAGE_GLOBALS
static_assert(PROTOBUF_FIELD_OFFSET(NigoriKeyGlobalsTypeInternal, _default) ==
              ::_pbi::MessageGlobalsBase::OffsetToDefault());
#endif  // PROTOBUF_MESSAGE_GLOBALS

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST NigoriKeyGlobalsTypeInternal NigoriKey_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* NigoriKey_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return NigoriKey_globals_.GetClassData();
#else
  return NigoriKey_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
class CrossUserSharingPublicKey::_Internal {
 public:
  using HasBits = decltype(::std::declval<CrossUserSharingPublicKey>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
      8 * PROTOBUF_FIELD_OFFSET(CrossUserSharingPublicKey, _impl_._has_bits_);
};

constexpr CrossUserSharingPublicKey::ParseTableT_ CrossUserSharingPublicKey::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(CrossUserSharingPublicKey, _impl_._has_bits_),
      0, // no _extensions_
      2, 8,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967292,  // skipmap
      offsetof(ParseTableT_, field_entries),
      2,  // num_field_entries
      0,  // num_aux_entries
      offsetof(ParseTableT_, field_names),  // no aux_entries
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::sync_pb::CrossUserSharingPublicKey>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // optional bytes x25519_public_key = 2;
      {::_pbi::TcParser::FastBS1,
       {18, 0, 0,
        PROTOBUF_FIELD_OFFSET(CrossUserSharingPublicKey, _impl_.x25519_public_key_)}},
      // optional int32 version = 1;
      {::_pbi::TcParser::FastV32S1,
       {8, 1, 0,
        PROTOBUF_FIELD_OFFSET(CrossUserSharingPublicKey, _impl_.version_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional int32 version = 1;
      {PROTOBUF_FIELD_OFFSET(CrossUserSharingPublicKey, _impl_.version_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // optional bytes x25519_public_key = 2;
      {PROTOBUF_FIELD_OFFSET(CrossUserSharingPublicKey, _impl_.x25519_public_key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
    }},
    // no aux_entries
    {{
    }},
  };
}


inline constexpr CrossUserSharingPublicKey::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        x25519_public_key_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        version_{0} {}

template <typename>
constexpr CrossUserSharingPublicKey::CrossUserSharingPublicKey(::_pbi::ConstantInitialized,
                       const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
    : ::google::protobuf::MessageLite(
#if defined(PROTOBUF_CUSTOM_VTABLE)
          class_data
#endif  // PROTOBUF_CUSTOM_VTABLE
          ),
      _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
}
inline void* PROTOBUF_NONNULL CrossUserSharingPublicKey::PlacementNew_(
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
  return ::new (mem) CrossUserSharingPublicKey(arena);
}
constexpr auto CrossUserSharingPublicKey::InternalNewImpl_() {
  return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(CrossUserSharingPublicKey), alignof(CrossUserSharingPublicKey));
}
constexpr auto CrossUserSharingPublicKey::InternalGenerateClassData_(
    const MessageLite& prototype,
    const ::google::protobuf::internal::TcParseTableBase* tc_table) {
  return ::google::protobuf::internal::ClassDataLite{
      {
          &prototype,
#ifndef PROTOBUF_MESSAGE_GLOBALS
          &_table_.header,
#else
          tc_table,
#endif
          nullptr,  // IsInitialized
          &CrossUserSharingPublicKey::MergeImpl,
          ::google::protobuf::MessageLite::GetNewImpl<CrossUserSharingPublicKey>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
          &CrossUserSharingPublicKey::SharedDtor,
          ::google::protobuf::MessageLite::GetClearImpl<CrossUserSharingPublicKey>(), &CrossUserSharingPublicKey::ByteSizeLong,
              &CrossUserSharingPublicKey::_InternalSerialize,
#endif  // PROTOBUF_CUSTOM_VTABLE
          PROTOBUF_FIELD_OFFSET(CrossUserSharingPublicKey, _impl_._cached_size_),
          true,
      },
      "sync_pb.CrossUserSharingPublicKey",
  };
}
struct CrossUserSharingPublicKeyGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
  constexpr CrossUserSharingPublicKeyGlobalsTypeInternal()
      :
#ifndef PROTOBUF_MESSAGE_GLOBALS
        _default(::_pbi::ConstantInitialized{},
                 CrossUserSharingPublicKey_class_data_.base())
#else   // !PROTOBUF_MESSAGE_GLOBALS
        MessageGlobalsBase(CrossUserSharingPublicKey::InternalGenerateClassData_(
            _default, &CrossUserSharingPublicKey_globals_._table.header)),
        _default(::_pbi::ConstantInitialized{}, GetClassData()),
        _table(::_pbi::PrivateAccess::GenerateParseTable<CrossUserSharingPublicKey>(
            GetClassData()))
#endif  // PROTOBUF_MESSAGE_GLOBALS
  {
  }
  ~CrossUserSharingPublicKeyGlobalsTypeInternal() {}
  union {
    alignas(::_pbi::kMaxMessageAlignment) CrossUserSharingPublicKey _default;
  };
#ifdef PROTOBUF_MESSAGE_GLOBALS
  decltype(::_pbi::PrivateAccess::GenerateParseTable<CrossUserSharingPublicKey>(
      ::std::declval<const ::_pbi::ClassData*>())) _table;
#endif
};
#ifdef PROTOBUF_MESSAGE_GLOBALS
static_assert(PROTOBUF_FIELD_OFFSET(CrossUserSharingPublicKeyGlobalsTypeInternal, _default) ==
              ::_pbi::MessageGlobalsBase::OffsetToDefault());
#endif  // PROTOBUF_MESSAGE_GLOBALS

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST CrossUserSharingPublicKeyGlobalsTypeInternal CrossUserSharingPublicKey_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* CrossUserSharingPublicKey_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return CrossUserSharingPublicKey_globals_.GetClassData();
#else
  return CrossUserSharingPublicKey_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
class CrossUserSharingPrivateKey::_Internal {
 public:
  using HasBits = decltype(::std::declval<CrossUserSharingPrivateKey>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
      8 * PROTOBUF_FIELD_OFFSET(CrossUserSharingPrivateKey, _impl_._has_bits_);
};

constexpr CrossUserSharingPrivateKey::ParseTableT_ CrossUserSharingPrivateKey::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(CrossUserSharingPrivateKey, _impl_._has_bits_),
      0, // no _extensions_
      2, 8,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967292,  // skipmap
      offsetof(ParseTableT_, field_entries),
      2,  // num_field_entries
      0,  // num_aux_entries
      offsetof(ParseTableT_, field_names),  // no aux_entries
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::sync_pb::CrossUserSharingPrivateKey>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // optional bytes x25519_private_key = 2;
      {::_pbi::TcParser::FastBS1,
       {18, 0, 0,
        PROTOBUF_FIELD_OFFSET(CrossUserSharingPrivateKey, _impl_.x25519_private_key_)}},
      // optional int32 version = 1;
      {::_pbi::TcParser::FastV32S1,
       {8, 1, 0,
        PROTOBUF_FIELD_OFFSET(CrossUserSharingPrivateKey, _impl_.version_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional int32 version = 1;
      {PROTOBUF_FIELD_OFFSET(CrossUserSharingPrivateKey, _impl_.version_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // optional bytes x25519_private_key = 2;
      {PROTOBUF_FIELD_OFFSET(CrossUserSharingPrivateKey, _impl_.x25519_private_key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
    }},
    // no aux_entries
    {{
    }},
  };
}


inline constexpr CrossUserSharingPrivateKey::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        x25519_private_key_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        version_{0} {}

template <typename>
constexpr CrossUserSharingPrivateKey::CrossUserSharingPrivateKey(::_pbi::ConstantInitialized,
                       const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
    : ::google::protobuf::MessageLite(
#if defined(PROTOBUF_CUSTOM_VTABLE)
          class_data
#endif  // PROTOBUF_CUSTOM_VTABLE
          ),
      _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
}
inline void* PROTOBUF_NONNULL CrossUserSharingPrivateKey::PlacementNew_(
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
  return ::new (mem) CrossUserSharingPrivateKey(arena);
}
constexpr auto CrossUserSharingPrivateKey::InternalNewImpl_() {
  return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(CrossUserSharingPrivateKey), alignof(CrossUserSharingPrivateKey));
}
constexpr auto CrossUserSharingPrivateKey::InternalGenerateClassData_(
    const MessageLite& prototype,
    const ::google::protobuf::internal::TcParseTableBase* tc_table) {
  return ::google::protobuf::internal::ClassDataLite{
      {
          &prototype,
#ifndef PROTOBUF_MESSAGE_GLOBALS
          &_table_.header,
#else
          tc_table,
#endif
          nullptr,  // IsInitialized
          &CrossUserSharingPrivateKey::MergeImpl,
          ::google::protobuf::MessageLite::GetNewImpl<CrossUserSharingPrivateKey>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
          &CrossUserSharingPrivateKey::SharedDtor,
          ::google::protobuf::MessageLite::GetClearImpl<CrossUserSharingPrivateKey>(), &CrossUserSharingPrivateKey::ByteSizeLong,
              &CrossUserSharingPrivateKey::_InternalSerialize,
#endif  // PROTOBUF_CUSTOM_VTABLE
          PROTOBUF_FIELD_OFFSET(CrossUserSharingPrivateKey, _impl_._cached_size_),
          true,
      },
      "sync_pb.CrossUserSharingPrivateKey",
  };
}
struct CrossUserSharingPrivateKeyGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
  constexpr CrossUserSharingPrivateKeyGlobalsTypeInternal()
      :
#ifndef PROTOBUF_MESSAGE_GLOBALS
        _default(::_pbi::ConstantInitialized{},
                 CrossUserSharingPrivateKey_class_data_.base())
#else   // !PROTOBUF_MESSAGE_GLOBALS
        MessageGlobalsBase(CrossUserSharingPrivateKey::InternalGenerateClassData_(
            _default, &CrossUserSharingPrivateKey_globals_._table.header)),
        _default(::_pbi::ConstantInitialized{}, GetClassData()),
        _table(::_pbi::PrivateAccess::GenerateParseTable<CrossUserSharingPrivateKey>(
            GetClassData()))
#endif  // PROTOBUF_MESSAGE_GLOBALS
  {
  }
  ~CrossUserSharingPrivateKeyGlobalsTypeInternal() {}
  union {
    alignas(::_pbi::kMaxMessageAlignment) CrossUserSharingPrivateKey _default;
  };
#ifdef PROTOBUF_MESSAGE_GLOBALS
  decltype(::_pbi::PrivateAccess::GenerateParseTable<CrossUserSharingPrivateKey>(
      ::std::declval<const ::_pbi::ClassData*>())) _table;
#endif
};
#ifdef PROTOBUF_MESSAGE_GLOBALS
static_assert(PROTOBUF_FIELD_OFFSET(CrossUserSharingPrivateKeyGlobalsTypeInternal, _default) ==
              ::_pbi::MessageGlobalsBase::OffsetToDefault());
#endif  // PROTOBUF_MESSAGE_GLOBALS

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST CrossUserSharingPrivateKeyGlobalsTypeInternal CrossUserSharingPrivateKey_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* CrossUserSharingPrivateKey_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return CrossUserSharingPrivateKey_globals_.GetClassData();
#else
  return CrossUserSharingPrivateKey_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
class NigoriSpecifics_TrustedVaultDebugInfo::_Internal {
 public:
  using HasBits = decltype(::std::declval<NigoriSpecifics_TrustedVaultDebugInfo>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
      8 * PROTOBUF_FIELD_OFFSET(NigoriSpecifics_TrustedVaultDebugInfo, _impl_._has_bits_);
};

constexpr NigoriSpecifics_TrustedVaultDebugInfo::ParseTableT_ NigoriSpecifics_TrustedVaultDebugInfo::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(NigoriSpecifics_TrustedVaultDebugInfo, _impl_._has_bits_),
      0, // no _extensions_
      6, 56,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967244,  // skipmap
      offsetof(ParseTableT_, field_entries),
      4,  // num_field_entries
      1,  // num_aux_entries
      offsetof(ParseTableT_, aux_entries),
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::sync_pb::NigoriSpecifics_TrustedVaultDebugInfo>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // optional int64 migration_time = 1;
      {::_pbi::TcParser::FastV64S1,
       {8, 1, 0,
        PROTOBUF_FIELD_OFFSET(NigoriSpecifics_TrustedVaultDebugInfo, _impl_.migration_time_)}},
      // optional int32 key_version = 2;
      {::_pbi::TcParser::FastV32S1,
       {16, 3, 0,
        PROTOBUF_FIELD_OFFSET(NigoriSpecifics_TrustedVaultDebugInfo, _impl_.key_version_)}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      // optional .sync_pb.TrustedVaultAutoUpgradeExperimentGroup auto_upgrade_experiment_group = 5;
      {::_pbi::TcParser::FastMtS1,
       {42, 0, 0,
        PROTOBUF_FIELD_OFFSET(NigoriSpecifics_TrustedVaultDebugInfo, _impl_.auto_upgrade_experiment_group_)}},
      // optional int64 auto_upgrade_experiment_group_modification_time_unix_epoch_millis = 6;
      {::_pbi::TcParser::FastV64S1,
       {48, 2, 0,
        PROTOBUF_FIELD_OFFSET(NigoriSpecifics_TrustedVaultDebugInfo, _impl_.auto_upgrade_experiment_group_modification_time_unix_epoch_millis_)}},
      {::_pbi::TcParser::MiniParse, {}},
    }}, {{
      65535, 65535
    }}, {{
      // optional int64 migration_time = 1;
      {PROTOBUF_FIELD_OFFSET(NigoriSpecifics_TrustedVaultDebugInfo, _impl_.migration_time_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // optional int32 key_version = 2;
      {PROTOBUF_FIELD_OFFSET(NigoriSpecifics_TrustedVaultDebugInfo, _impl_.key_version_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // optional .sync_pb.TrustedVaultAutoUpgradeExperimentGroup auto_upgrade_experiment_group = 5;
      {PROTOBUF_FIELD_OFFSET(NigoriSpecifics_TrustedVaultDebugInfo, _impl_.auto_upgrade_experiment_group_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional int64 auto_upgrade_experiment_group_modification_time_unix_epoch_millis = 6;
      {PROTOBUF_FIELD_OFFSET(NigoriSpecifics_TrustedVaultDebugInfo, _impl_.auto_upgrade_experiment_group_modification_time_unix_epoch_millis_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::sync_pb::TrustedVaultAutoUpgradeExperimentGroup>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::sync_pb::TrustedVaultAutoUpgradeExperimentGroup_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr NigoriSpecifics_TrustedVaultDebugInfo::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        auto_upgrade_experiment_group_{nullptr},
        migration_time_{::int64_t{0}},
        auto_upgrade_experiment_group_modification_time_unix_epoch_millis_{::int64_t{0}},
        key_version_{0} {}

template <typename>
constexpr NigoriSpecifics_TrustedVaultDebugInfo::NigoriSpecifics_TrustedVaultDebugInfo(::_pbi::ConstantInitialized,
                       const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
    : ::google::protobuf::MessageLite(
#if defined(PROTOBUF_CUSTOM_VTABLE)
          class_data
#endif  // PROTOBUF_CUSTOM_VTABLE
          ),
      _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
}
inline void* PROTOBUF_NONNULL NigoriSpecifics_TrustedVaultDebugInfo::PlacementNew_(
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
  return ::new (mem) NigoriSpecifics_TrustedVaultDebugInfo(arena);
}
constexpr auto NigoriSpecifics_TrustedVaultDebugInfo::InternalNewImpl_() {
  return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(NigoriSpecifics_TrustedVaultDebugInfo), alignof(NigoriSpecifics_TrustedVaultDebugInfo));
}
constexpr auto NigoriSpecifics_TrustedVaultDebugInfo::InternalGenerateClassData_(
    const MessageLite& prototype,
    const ::google::protobuf::internal::TcParseTableBase* tc_table) {
  return ::google::protobuf::internal::ClassDataLite{
      {
          &prototype,
#ifndef PROTOBUF_MESSAGE_GLOBALS
          &_table_.header,
#else
          tc_table,
#endif
          nullptr,  // IsInitialized
          &NigoriSpecifics_TrustedVaultDebugInfo::MergeImpl,
          ::google::protobuf::MessageLite::GetNewImpl<NigoriSpecifics_TrustedVaultDebugInfo>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
          &NigoriSpecifics_TrustedVaultDebugInfo::SharedDtor,
          ::google::protobuf::MessageLite::GetClearImpl<NigoriSpecifics_TrustedVaultDebugInfo>(), &NigoriSpecifics_TrustedVaultDebugInfo::ByteSizeLong,
              &NigoriSpecifics_TrustedVaultDebugInfo::_InternalSerialize,
#endif  // PROTOBUF_CUSTOM_VTABLE
          PROTOBUF_FIELD_OFFSET(NigoriSpecifics_TrustedVaultDebugInfo, _impl_._cached_size_),
          true,
      },
      "sync_pb.NigoriSpecifics.TrustedVaultDebugInfo",
  };
}
struct NigoriSpecifics_TrustedVaultDebugInfoGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
  constexpr NigoriSpecifics_TrustedVaultDebugInfoGlobalsTypeInternal()
      :
#ifndef PROTOBUF_MESSAGE_GLOBALS
        _default(::_pbi::ConstantInitialized{},
                 NigoriSpecifics_TrustedVaultDebugInfo_class_data_.base())
#else   // !PROTOBUF_MESSAGE_GLOBALS
        MessageGlobalsBase(NigoriSpecifics_TrustedVaultDebugInfo::InternalGenerateClassData_(
            _default, &NigoriSpecifics_TrustedVaultDebugInfo_globals_._table.header)),
        _default(::_pbi::ConstantInitialized{}, GetClassData()),
        _table(::_pbi::PrivateAccess::GenerateParseTable<NigoriSpecifics_TrustedVaultDebugInfo>(
            GetClassData()))
#endif  // PROTOBUF_MESSAGE_GLOBALS
  {
  }
  ~NigoriSpecifics_TrustedVaultDebugInfoGlobalsTypeInternal() {}
  union {
    alignas(::_pbi::kMaxMessageAlignment) NigoriSpecifics_TrustedVaultDebugInfo _default;
  };
#ifdef PROTOBUF_MESSAGE_GLOBALS
  decltype(::_pbi::PrivateAccess::GenerateParseTable<NigoriSpecifics_TrustedVaultDebugInfo>(
      ::std::declval<const ::_pbi::ClassData*>())) _table;
#endif
};
#ifdef PROTOBUF_MESSAGE_GLOBALS
static_assert(PROTOBUF_FIELD_OFFSET(NigoriSpecifics_TrustedVaultDebugInfoGlobalsTypeInternal, _default) ==
              ::_pbi::MessageGlobalsBase::OffsetToDefault());
#endif  // PROTOBUF_MESSAGE_GLOBALS

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST NigoriSpecifics_TrustedVaultDebugInfoGlobalsTypeInternal NigoriSpecifics_TrustedVaultDebugInfo_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* NigoriSpecifics_TrustedVaultDebugInfo_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return NigoriSpecifics_TrustedVaultDebugInfo_globals_.GetClassData();
#else
  return NigoriSpecifics_TrustedVaultDebugInfo_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
class NigoriKeyBag::_Internal {
 public:
  using HasBits = decltype(::std::declval<NigoriKeyBag>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
      8 * PROTOBUF_FIELD_OFFSET(NigoriKeyBag, _impl_._has_bits_);
};

constexpr NigoriKeyBag::ParseTableT_ NigoriKeyBag::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(NigoriKeyBag, _impl_._has_bits_),
      0, // no _extensions_
      2, 0,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967293,  // skipmap
      offsetof(ParseTableT_, field_entries),
      1,  // num_field_entries
      1,  // num_aux_entries
      offsetof(ParseTableT_, aux_entries),
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::sync_pb::NigoriKeyBag>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // repeated .sync_pb.NigoriKey key = 2;
      {::_pbi::TcParser::FastMtR1,
       {18, 0, 0,
        PROTOBUF_FIELD_OFFSET(NigoriKeyBag, _impl_.key_)}},
    }}, {{
      65535, 65535
    }}, {{
      // repeated .sync_pb.NigoriKey key = 2;
      {PROTOBUF_FIELD_OFFSET(NigoriKeyBag, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::sync_pb::NigoriKey>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::sync_pb::NigoriKey_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr NigoriKeyBag::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        key_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::sync_pb::NigoriKeyBag,
            PROTOBUF_FIELD_OFFSET(::sync_pb::NigoriKeyBag, _impl_.key_)>()
         }
     {}

template <typename>
constexpr NigoriKeyBag::NigoriKeyBag(::_pbi::ConstantInitialized,
                       const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
    : ::google::protobuf::MessageLite(
#if defined(PROTOBUF_CUSTOM_VTABLE)
          class_data
#endif  // PROTOBUF_CUSTOM_VTABLE
          ),
      _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
}
inline void* PROTOBUF_NONNULL NigoriKeyBag::PlacementNew_(
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
  return ::new (mem) NigoriKeyBag(arena);
}
constexpr auto NigoriKeyBag::InternalNewImpl_() {
  return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(NigoriKeyBag), alignof(NigoriKeyBag));
}
constexpr auto NigoriKeyBag::InternalGenerateClassData_(
    const MessageLite& prototype,
    const ::google::protobuf::internal::TcParseTableBase* tc_table) {
  return ::google::protobuf::internal::ClassDataLite{
      {
          &prototype,
#ifndef PROTOBUF_MESSAGE_GLOBALS
          &_table_.header,
#else
          tc_table,
#endif
          nullptr,  // IsInitialized
          &NigoriKeyBag::MergeImpl,
          ::google::protobuf::MessageLite::GetNewImpl<NigoriKeyBag>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
          &NigoriKeyBag::SharedDtor,
          ::google::protobuf::MessageLite::GetClearImpl<NigoriKeyBag>(), &NigoriKeyBag::ByteSizeLong,
              &NigoriKeyBag::_InternalSerialize,
#endif  // PROTOBUF_CUSTOM_VTABLE
          PROTOBUF_FIELD_OFFSET(NigoriKeyBag, _impl_._cached_size_),
          true,
      },
      "sync_pb.NigoriKeyBag",
  };
}
struct NigoriKeyBagGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
  constexpr NigoriKeyBagGlobalsTypeInternal()
      :
#ifndef PROTOBUF_MESSAGE_GLOBALS
        _default(::_pbi::ConstantInitialized{},
                 NigoriKeyBag_class_data_.base())
#else   // !PROTOBUF_MESSAGE_GLOBALS
        MessageGlobalsBase(NigoriKeyBag::InternalGenerateClassData_(
            _default, &NigoriKeyBag_globals_._table.header)),
        _default(::_pbi::ConstantInitialized{}, GetClassData()),
        _table(::_pbi::PrivateAccess::GenerateParseTable<NigoriKeyBag>(
            GetClassData()))
#endif  // PROTOBUF_MESSAGE_GLOBALS
  {
  }
  ~NigoriKeyBagGlobalsTypeInternal() {}
  union {
    alignas(::_pbi::kMaxMessageAlignment) NigoriKeyBag _default;
  };
#ifdef PROTOBUF_MESSAGE_GLOBALS
  decltype(::_pbi::PrivateAccess::GenerateParseTable<NigoriKeyBag>(
      ::std::declval<const ::_pbi::ClassData*>())) _table;
#endif
};
#ifdef PROTOBUF_MESSAGE_GLOBALS
static_assert(PROTOBUF_FIELD_OFFSET(NigoriKeyBagGlobalsTypeInternal, _default) ==
              ::_pbi::MessageGlobalsBase::OffsetToDefault());
#endif  // PROTOBUF_MESSAGE_GLOBALS

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST NigoriKeyBagGlobalsTypeInternal NigoriKeyBag_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* NigoriKeyBag_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return NigoriKeyBag_globals_.GetClassData();
#else
  return NigoriKeyBag_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
class EncryptionKeys::_Internal {
 public:
  using HasBits = decltype(::std::declval<EncryptionKeys>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
      8 * PROTOBUF_FIELD_OFFSET(EncryptionKeys, _impl_._has_bits_);
};

constexpr EncryptionKeys::ParseTableT_ EncryptionKeys::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(EncryptionKeys, _impl_._has_bits_),
      0, // no _extensions_
      3, 8,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967289,  // skipmap
      offsetof(ParseTableT_, field_entries),
      2,  // num_field_entries
      2,  // num_aux_entries
      offsetof(ParseTableT_, aux_entries),
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::sync_pb::EncryptionKeys>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // repeated .sync_pb.NigoriKey key = 2;
      {::_pbi::TcParser::FastMtR1,
       {18, 0, 0,
        PROTOBUF_FIELD_OFFSET(EncryptionKeys, _impl_.key_)}},
      // repeated .sync_pb.CrossUserSharingPrivateKey cross_user_sharing_private_key = 3;
      {::_pbi::TcParser::FastMtR1,
       {26, 1, 1,
        PROTOBUF_FIELD_OFFSET(EncryptionKeys, _impl_.cross_user_sharing_private_key_)}},
    }}, {{
      65535, 65535
    }}, {{
      // repeated .sync_pb.NigoriKey key = 2;
      {PROTOBUF_FIELD_OFFSET(EncryptionKeys, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
      // repeated .sync_pb.CrossUserSharingPrivateKey cross_user_sharing_private_key = 3;
      {PROTOBUF_FIELD_OFFSET(EncryptionKeys, _impl_.cross_user_sharing_private_key_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::sync_pb::NigoriKey>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::sync_pb::NigoriKey_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::sync_pb::CrossUserSharingPrivateKey>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::sync_pb::CrossUserSharingPrivateKey_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr EncryptionKeys::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        key_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::sync_pb::EncryptionKeys,
            PROTOBUF_FIELD_OFFSET(::sync_pb::EncryptionKeys, _impl_.key_)>()
         }
        ,
        cross_user_sharing_private_key_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::sync_pb::EncryptionKeys,
            PROTOBUF_FIELD_OFFSET(::sync_pb::EncryptionKeys, _impl_.cross_user_sharing_private_key_)>()
         }
     {}

template <typename>
constexpr EncryptionKeys::EncryptionKeys(::_pbi::ConstantInitialized,
                       const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
    : ::google::protobuf::MessageLite(
#if defined(PROTOBUF_CUSTOM_VTABLE)
          class_data
#endif  // PROTOBUF_CUSTOM_VTABLE
          ),
      _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
}
inline void* PROTOBUF_NONNULL EncryptionKeys::PlacementNew_(
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
  return ::new (mem) EncryptionKeys(arena);
}
constexpr auto EncryptionKeys::InternalNewImpl_() {
  return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(EncryptionKeys), alignof(EncryptionKeys));
}
constexpr auto EncryptionKeys::InternalGenerateClassData_(
    const MessageLite& prototype,
    const ::google::protobuf::internal::TcParseTableBase* tc_table) {
  return ::google::protobuf::internal::ClassDataLite{
      {
          &prototype,
#ifndef PROTOBUF_MESSAGE_GLOBALS
          &_table_.header,
#else
          tc_table,
#endif
          nullptr,  // IsInitialized
          &EncryptionKeys::MergeImpl,
          ::google::protobuf::MessageLite::GetNewImpl<EncryptionKeys>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
          &EncryptionKeys::SharedDtor,
          ::google::protobuf::MessageLite::GetClearImpl<EncryptionKeys>(), &EncryptionKeys::ByteSizeLong,
              &EncryptionKeys::_InternalSerialize,
#endif  // PROTOBUF_CUSTOM_VTABLE
          PROTOBUF_FIELD_OFFSET(EncryptionKeys, _impl_._cached_size_),
          true,
      },
      "sync_pb.EncryptionKeys",
  };
}
struct EncryptionKeysGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
  constexpr EncryptionKeysGlobalsTypeInternal()
      :
#ifndef PROTOBUF_MESSAGE_GLOBALS
        _default(::_pbi::ConstantInitialized{},
                 EncryptionKeys_class_data_.base())
#else   // !PROTOBUF_MESSAGE_GLOBALS
        MessageGlobalsBase(EncryptionKeys::InternalGenerateClassData_(
            _default, &EncryptionKeys_globals_._table.header)),
        _default(::_pbi::ConstantInitialized{}, GetClassData()),
        _table(::_pbi::PrivateAccess::GenerateParseTable<EncryptionKeys>(
            GetClassData()))
#endif  // PROTOBUF_MESSAGE_GLOBALS
  {
  }
  ~EncryptionKeysGlobalsTypeInternal() {}
  union {
    alignas(::_pbi::kMaxMessageAlignment) EncryptionKeys _default;
  };
#ifdef PROTOBUF_MESSAGE_GLOBALS
  decltype(::_pbi::PrivateAccess::GenerateParseTable<EncryptionKeys>(
      ::std::declval<const ::_pbi::ClassData*>())) _table;
#endif
};
#ifdef PROTOBUF_MESSAGE_GLOBALS
static_assert(PROTOBUF_FIELD_OFFSET(EncryptionKeysGlobalsTypeInternal, _default) ==
              ::_pbi::MessageGlobalsBase::OffsetToDefault());
#endif  // PROTOBUF_MESSAGE_GLOBALS

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST EncryptionKeysGlobalsTypeInternal EncryptionKeys_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* EncryptionKeys_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return EncryptionKeys_globals_.GetClassData();
#else
  return EncryptionKeys_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
class NigoriSpecifics::_Internal {
 public:
  using HasBits = decltype(::std::declval<NigoriSpecifics>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
      8 * PROTOBUF_FIELD_OFFSET(NigoriSpecifics, _impl_._has_bits_);
};

constexpr NigoriSpecifics::ParseTableT_ NigoriSpecifics::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(NigoriSpecifics, _impl_._has_bits_),
      0, // no _extensions_
      53, 120,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      260046844,  // skipmap
      offsetof(ParseTableT_, field_entries),
      13,  // num_field_entries
      4,  // num_aux_entries
      offsetof(ParseTableT_, aux_entries),
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::sync_pb::NigoriSpecifics>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // optional int64 keystore_migration_time = 32;
      {::_pbi::TcParser::FastV64S2,
       {640, 10, 0,
        PROTOBUF_FIELD_OFFSET(NigoriSpecifics, _impl_.keystore_migration_time_)}},
      // optional .sync_pb.EncryptedData encryption_keybag = 1;
      {::_pbi::TcParser::FastMtS1,
       {10, 1, 0,
        PROTOBUF_FIELD_OFFSET(NigoriSpecifics, _impl_.encryption_keybag_)}},
      // optional bool keybag_is_frozen = 2;
      {::_pbi::TcParser::FastV8S1,
       {16, 5, 0,
        PROTOBUF_FIELD_OFFSET(NigoriSpecifics, _impl_.keybag_is_frozen_)}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      // optional .sync_pb.CrossUserSharingPublicKey cross_user_sharing_public_key = 53;
      {::_pbi::TcParser::FastMtS2,
       {938, 4, 3,
        PROTOBUF_FIELD_OFFSET(NigoriSpecifics, _impl_.cross_user_sharing_public_key_)}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      // optional bool encrypt_everything = 24;
      {::_pbi::TcParser::FastV8S2,
       {448, 6, 0,
        PROTOBUF_FIELD_OFFSET(NigoriSpecifics, _impl_.encrypt_everything_)}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      // optional bool sync_tab_favicons = 29;
      {::_pbi::TcParser::FastV8S2,
       {488, 7, 0,
        PROTOBUF_FIELD_OFFSET(NigoriSpecifics, _impl_.sync_tab_favicons_)}},
      // optional int32 passphrase_type = 30 [default = 1];
      {::_pbi::TcParser::FastV32S2,
       {496, 12, 0,
        PROTOBUF_FIELD_OFFSET(NigoriSpecifics, _impl_.passphrase_type_)}},
      // optional .sync_pb.EncryptedData keystore_decryptor_token = 31;
      {::_pbi::TcParser::FastMtS2,
       {506, 2, 1,
        PROTOBUF_FIELD_OFFSET(NigoriSpecifics, _impl_.keystore_decryptor_token_)}},
    }}, {{
      33, 0, 2,
      53118, 7,
      65517, 11,
      65535, 65535
    }}, {{
      // optional .sync_pb.EncryptedData encryption_keybag = 1;
      {PROTOBUF_FIELD_OFFSET(NigoriSpecifics, _impl_.encryption_keybag_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional bool keybag_is_frozen = 2;
      {PROTOBUF_FIELD_OFFSET(NigoriSpecifics, _impl_.keybag_is_frozen_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // optional bool encrypt_everything = 24;
      {PROTOBUF_FIELD_OFFSET(NigoriSpecifics, _impl_.encrypt_everything_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // optional bool sync_tab_favicons = 29;
      {PROTOBUF_FIELD_OFFSET(NigoriSpecifics, _impl_.sync_tab_favicons_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // optional int32 passphrase_type = 30 [default = 1];
      {PROTOBUF_FIELD_OFFSET(NigoriSpecifics, _impl_.passphrase_type_), _Internal::kHasBitsOffset + 12, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // optional .sync_pb.EncryptedData keystore_decryptor_token = 31;
      {PROTOBUF_FIELD_OFFSET(NigoriSpecifics, _impl_.keystore_decryptor_token_), _Internal::kHasBitsOffset + 2, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional int64 keystore_migration_time = 32;
      {PROTOBUF_FIELD_OFFSET(NigoriSpecifics, _impl_.keystore_migration_time_), _Internal::kHasBitsOffset + 10, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // optional int64 custom_passphrase_time = 33;
      {PROTOBUF_FIELD_OFFSET(NigoriSpecifics, _impl_.custom_passphrase_time_), _Internal::kHasBitsOffset + 11, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // optional bool server_only_was_missing_keystore_migration_time = 40;
      {PROTOBUF_FIELD_OFFSET(NigoriSpecifics, _impl_.server_only_was_missing_keystore_migration_time_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // optional int32 custom_passphrase_key_derivation_method = 45 [default = 0];
      {PROTOBUF_FIELD_OFFSET(NigoriSpecifics, _impl_.custom_passphrase_key_derivation_method_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // optional string custom_passphrase_key_derivation_salt = 46;
      {PROTOBUF_FIELD_OFFSET(NigoriSpecifics, _impl_.custom_passphrase_key_derivation_salt_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional .sync_pb.NigoriSpecifics.TrustedVaultDebugInfo trusted_vault_debug_info = 50;
      {PROTOBUF_FIELD_OFFSET(NigoriSpecifics, _impl_.trusted_vault_debug_info_), _Internal::kHasBitsOffset + 3, 2, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional .sync_pb.CrossUserSharingPublicKey cross_user_sharing_public_key = 53;
      {PROTOBUF_FIELD_OFFSET(NigoriSpecifics, _impl_.cross_user_sharing_public_key_), _Internal::kHasBitsOffset + 4, 3, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::sync_pb::EncryptedData>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::sync_pb::EncryptedData_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::sync_pb::EncryptedData>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::sync_pb::EncryptedData_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::sync_pb::NigoriSpecifics_TrustedVaultDebugInfo>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::sync_pb::NigoriSpecifics_TrustedVaultDebugInfo_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::sync_pb::CrossUserSharingPublicKey>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::sync_pb::CrossUserSharingPublicKey_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr NigoriSpecifics::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        custom_passphrase_key_derivation_salt_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        encryption_keybag_{nullptr},
        keystore_decryptor_token_{nullptr},
        trusted_vault_debug_info_{nullptr},
        cross_user_sharing_public_key_{nullptr},
        keybag_is_frozen_{false},
        encrypt_everything_{false},
        sync_tab_favicons_{false},
        server_only_was_missing_keystore_migration_time_{false},
        custom_passphrase_key_derivation_method_{0},
        keystore_migration_time_{::int64_t{0}},
        custom_passphrase_time_{::int64_t{0}},
        passphrase_type_{1} {}

template <typename>
constexpr NigoriSpecifics::NigoriSpecifics(::_pbi::ConstantInitialized,
                       const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
    : ::google::protobuf::MessageLite(
#if defined(PROTOBUF_CUSTOM_VTABLE)
          class_data
#endif  // PROTOBUF_CUSTOM_VTABLE
          ),
      _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
}
inline void* PROTOBUF_NONNULL NigoriSpecifics::PlacementNew_(
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
  return ::new (mem) NigoriSpecifics(arena);
}
constexpr auto NigoriSpecifics::InternalNewImpl_() {
  return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(NigoriSpecifics), alignof(NigoriSpecifics));
}
constexpr auto NigoriSpecifics::InternalGenerateClassData_(
    const MessageLite& prototype,
    const ::google::protobuf::internal::TcParseTableBase* tc_table) {
  return ::google::protobuf::internal::ClassDataLite{
      {
          &prototype,
#ifndef PROTOBUF_MESSAGE_GLOBALS
          &_table_.header,
#else
          tc_table,
#endif
          nullptr,  // IsInitialized
          &NigoriSpecifics::MergeImpl,
          ::google::protobuf::MessageLite::GetNewImpl<NigoriSpecifics>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
          &NigoriSpecifics::SharedDtor,
          ::google::protobuf::MessageLite::GetClearImpl<NigoriSpecifics>(), &NigoriSpecifics::ByteSizeLong,
              &NigoriSpecifics::_InternalSerialize,
#endif  // PROTOBUF_CUSTOM_VTABLE
          PROTOBUF_FIELD_OFFSET(NigoriSpecifics, _impl_._cached_size_),
          true,
      },
      "sync_pb.NigoriSpecifics",
  };
}
struct NigoriSpecificsGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
  constexpr NigoriSpecificsGlobalsTypeInternal()
      :
#ifndef PROTOBUF_MESSAGE_GLOBALS
        _default(::_pbi::ConstantInitialized{},
                 NigoriSpecifics_class_data_.base())
#else   // !PROTOBUF_MESSAGE_GLOBALS
        MessageGlobalsBase(NigoriSpecifics::InternalGenerateClassData_(
            _default, &NigoriSpecifics_globals_._table.header)),
        _default(::_pbi::ConstantInitialized{}, GetClassData()),
        _table(::_pbi::PrivateAccess::GenerateParseTable<NigoriSpecifics>(
            GetClassData()))
#endif  // PROTOBUF_MESSAGE_GLOBALS
  {
  }
  ~NigoriSpecificsGlobalsTypeInternal() {}
  union {
    alignas(::_pbi::kMaxMessageAlignment) NigoriSpecifics _default;
  };
#ifdef PROTOBUF_MESSAGE_GLOBALS
  decltype(::_pbi::PrivateAccess::GenerateParseTable<NigoriSpecifics>(
      ::std::declval<const ::_pbi::ClassData*>())) _table;
#endif
};
#ifdef PROTOBUF_MESSAGE_GLOBALS
static_assert(PROTOBUF_FIELD_OFFSET(NigoriSpecificsGlobalsTypeInternal, _default) ==
              ::_pbi::MessageGlobalsBase::OffsetToDefault());
#endif  // PROTOBUF_MESSAGE_GLOBALS

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST NigoriSpecificsGlobalsTypeInternal NigoriSpecifics_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* NigoriSpecifics_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return NigoriSpecifics_globals_.GetClassData();
#else
  return NigoriSpecifics_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
}  // namespace sync_pb
namespace sync_pb {
PROTOBUF_CONSTINIT const uint32_t TrustedVaultAutoUpgradeExperimentGroup_Type_internal_data_[] = {
    262144u, 0u, };
static const char TrustedVaultAutoUpgradeExperimentGroup_Type_names[] = {
    "CONTROL"
    "TREATMENT"
    "TYPE_UNSPECIFIED"
    "VALIDATION"
};

static const ::google::protobuf::internal::EnumEntry TrustedVaultAutoUpgradeExperimentGroup_Type_entries[] = {
    {{&TrustedVaultAutoUpgradeExperimentGroup_Type_names[0], 7}, 2},
    {{&TrustedVaultAutoUpgradeExperimentGroup_Type_names[7], 9}, 1},
    {{&TrustedVaultAutoUpgradeExperimentGroup_Type_names[16], 16}, 0},
    {{&TrustedVaultAutoUpgradeExperimentGroup_Type_names[32], 10}, 3},
};

static const int TrustedVaultAutoUpgradeExperimentGroup_Type_entries_by_number[] = {
    2,  // 0 -> TYPE_UNSPECIFIED
    1,  // 1 -> TREATMENT
    0,  // 2 -> CONTROL
    3,  // 3 -> VALIDATION
};

bool TrustedVaultAutoUpgradeExperimentGroup_Type_Parse(::absl::string_view name,
                                  TrustedVaultAutoUpgradeExperimentGroup_Type* PROTOBUF_NONNULL value) {
  int int_value;
  bool success = ::google::protobuf::internal::LookUpEnumValue(
      TrustedVaultAutoUpgradeExperimentGroup_Type_entries, 4, name, &int_value);
  if (success) {
    *value = static_cast<TrustedVaultAutoUpgradeExperimentGroup_Type>(int_value);
  }
  return success;
}
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
    TrustedVaultAutoUpgradeExperimentGroup_Type_strings[4] = {};

const ::std::string& TrustedVaultAutoUpgradeExperimentGroup_Type_Name(TrustedVaultAutoUpgradeExperimentGroup_Type value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      TrustedVaultAutoUpgradeExperimentGroup_Type_entries, TrustedVaultAutoUpgradeExperimentGroup_Type_entries_by_number, 4,
      TrustedVaultAutoUpgradeExperimentGroup_Type_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(TrustedVaultAutoUpgradeExperimentGroup_Type_entries,
                                  TrustedVaultAutoUpgradeExperimentGroup_Type_entries_by_number,
                                  4, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : TrustedVaultAutoUpgradeExperimentGroup_Type_strings[idx].get();
}
PROTOBUF_CONSTINIT const uint32_t NigoriSpecifics_PassphraseType_internal_data_[] = {
    393216u, 0u, };
static const char NigoriSpecifics_PassphraseType_names[] = {
    "CUSTOM_PASSPHRASE"
    "FROZEN_IMPLICIT_PASSPHRASE"
    "IMPLICIT_PASSPHRASE"
    "KEYSTORE_PASSPHRASE"
    "TRUSTED_VAULT_PASSPHRASE"
    "UNKNOWN"
};

static const ::google::protobuf::internal::EnumEntry NigoriSpecifics_PassphraseType_entries[] = {
    {{&NigoriSpecifics_PassphraseType_names[0], 17}, 4},
    {{&NigoriSpecifics_PassphraseType_names[17], 26}, 3},
    {{&NigoriSpecifics_PassphraseType_names[43], 19}, 1},
    {{&NigoriSpecifics_PassphraseType_names[62], 19}, 2},
    {{&NigoriSpecifics_PassphraseType_names[81], 24}, 5},
    {{&NigoriSpecifics_PassphraseType_names[105], 7}, 0},
};

static const int NigoriSpecifics_PassphraseType_entries_by_number[] = {
    5,  // 0 -> UNKNOWN
    2,  // 1 -> IMPLICIT_PASSPHRASE
    3,  // 2 -> KEYSTORE_PASSPHRASE
    1,  // 3 -> FROZEN_IMPLICIT_PASSPHRASE
    0,  // 4 -> CUSTOM_PASSPHRASE
    4,  // 5 -> TRUSTED_VAULT_PASSPHRASE
};

bool NigoriSpecifics_PassphraseType_Parse(::absl::string_view name,
                                  NigoriSpecifics_PassphraseType* PROTOBUF_NONNULL value) {
  int int_value;
  bool success = ::google::protobuf::internal::LookUpEnumValue(
      NigoriSpecifics_PassphraseType_entries, 6, name, &int_value);
  if (success) {
    *value = static_cast<NigoriSpecifics_PassphraseType>(int_value);
  }
  return success;
}
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
    NigoriSpecifics_PassphraseType_strings[6] = {};

const ::std::string& NigoriSpecifics_PassphraseType_Name(NigoriSpecifics_PassphraseType value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      NigoriSpecifics_PassphraseType_entries, NigoriSpecifics_PassphraseType_entries_by_number, 6,
      NigoriSpecifics_PassphraseType_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(NigoriSpecifics_PassphraseType_entries,
                                  NigoriSpecifics_PassphraseType_entries_by_number,
                                  6, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : NigoriSpecifics_PassphraseType_strings[idx].get();
}
PROTOBUF_CONSTINIT const uint32_t NigoriSpecifics_KeyDerivationMethod_internal_data_[] = {
    196608u, 0u, };
static const char NigoriSpecifics_KeyDerivationMethod_names[] = {
    "PBKDF2_HMAC_SHA1_1003"
    "SCRYPT_8192_8_11"
    "UNSPECIFIED"
};

static const ::google::protobuf::internal::EnumEntry NigoriSpecifics_KeyDerivationMethod_entries[] = {
    {{&NigoriSpecifics_KeyDerivationMethod_names[0], 21}, 1},
    {{&NigoriSpecifics_KeyDerivationMethod_names[21], 16}, 2},
    {{&NigoriSpecifics_KeyDerivationMethod_names[37], 11}, 0},
};

static const int NigoriSpecifics_KeyDerivationMethod_entries_by_number[] = {
    2,  // 0 -> UNSPECIFIED
    0,  // 1 -> PBKDF2_HMAC_SHA1_1003
    1,  // 2 -> SCRYPT_8192_8_11
};

bool NigoriSpecifics_KeyDerivationMethod_Parse(::absl::string_view name,
                                  NigoriSpecifics_KeyDerivationMethod* PROTOBUF_NONNULL value) {
  int int_value;
  bool success = ::google::protobuf::internal::LookUpEnumValue(
      NigoriSpecifics_KeyDerivationMethod_entries, 3, name, &int_value);
  if (success) {
    *value = static_cast<NigoriSpecifics_KeyDerivationMethod>(int_value);
  }
  return success;
}
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
    NigoriSpecifics_KeyDerivationMethod_strings[3] = {};

const ::std::string& NigoriSpecifics_KeyDerivationMethod_Name(NigoriSpecifics_KeyDerivationMethod value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      NigoriSpecifics_KeyDerivationMethod_entries, NigoriSpecifics_KeyDerivationMethod_entries_by_number, 3,
      NigoriSpecifics_KeyDerivationMethod_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(NigoriSpecifics_KeyDerivationMethod_entries,
                                  NigoriSpecifics_KeyDerivationMethod_entries_by_number,
                                  3, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : NigoriSpecifics_KeyDerivationMethod_strings[idx].get();
}
// ===================================================================

NigoriKey::NigoriKey(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, NigoriKey_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:sync_pb.NigoriKey)
}
PROTOBUF_NDEBUG_INLINE NigoriKey::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::sync_pb::NigoriKey& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        deprecated_name_(arena, from.deprecated_name_),
        deprecated_user_key_(arena, from.deprecated_user_key_),
        encryption_key_(arena, from.encryption_key_),
        mac_key_(arena, from.mac_key_) {}

NigoriKey::NigoriKey(
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
    const NigoriKey& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, NigoriKey_get_class_data()) {

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  NigoriKey* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);

  // @@protoc_insertion_point(copy_constructor:sync_pb.NigoriKey)
}
PROTOBUF_NDEBUG_INLINE NigoriKey::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        deprecated_name_(arena),
        deprecated_user_key_(arena),
        encryption_key_(arena),
        mac_key_(arena) {}

inline void NigoriKey::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
}
NigoriKey::~NigoriKey() {
  // @@protoc_insertion_point(destructor:sync_pb.NigoriKey)
  SharedDtor(*this);
}
inline void NigoriKey::SharedDtor(MessageLite& self) {
  NigoriKey& this_ = static_cast<NigoriKey&>(self);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  this_._internal_metadata_.Delete<::std::string>();
  ABSL_DCHECK(this_.GetArena() == nullptr);
  this_._impl_.deprecated_name_.Destroy();
  this_._impl_.deprecated_user_key_.Destroy();
  this_._impl_.encryption_key_.Destroy();
  this_._impl_.mac_key_.Destroy();
  this_._impl_.~Impl_();
}

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite NigoriKey_class_data_ =
    NigoriKey::InternalGenerateClassData_(NigoriKey_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
NigoriKey::GetClassData() const {
  return NigoriKey_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
NigoriKey::GetClassData() const {
  return NigoriKey_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const NigoriKey::ParseTableT_
    NigoriKey::_table_ =
        NigoriKey::InternalGenerateParseTable_(NigoriKey_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void NigoriKey::Clear() {
// @@protoc_insertion_point(message_clear_start:sync_pb.NigoriKey)
  ::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, 0x0000000fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _impl_.deprecated_name_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.deprecated_user_key_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _impl_.encryption_key_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _impl_.mac_key_.ClearNonDefaultToEmpty();
    }
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL NigoriKey::_InternalSerialize(
    const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
  const NigoriKey& this_ = static_cast<const NigoriKey&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL NigoriKey::_InternalSerialize(
    ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
  const NigoriKey& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(serialize_to_array_start:sync_pb.NigoriKey)
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = this_._impl_._has_bits_[0];
  // optional string deprecated_name = 1 [deprecated = true];
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    const ::std::string& _s = this_._internal_deprecated_name();
    target = stream->WriteStringMaybeAliased(1, _s, target);
  }

  // optional bytes deprecated_user_key = 2 [deprecated = true];
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    const ::std::string& _s = this_._internal_deprecated_user_key();
    target = stream->WriteBytesMaybeAliased(2, _s, target);
  }

  // optional bytes encryption_key = 3;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    const ::std::string& _s = this_._internal_encryption_key();
    target = stream->WriteBytesMaybeAliased(3, _s, target);
  }

  // optional bytes mac_key = 4;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    const ::std::string& _s = this_._internal_mac_key();
    target = stream->WriteBytesMaybeAliased(4, _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:sync_pb.NigoriKey)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t NigoriKey::ByteSizeLong(const MessageLite& base) {
  const NigoriKey& this_ = static_cast<const NigoriKey&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t NigoriKey::ByteSizeLong() const {
  const NigoriKey& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:sync_pb.NigoriKey)
  ::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, 0x0000000fU)) {
    // optional string deprecated_name = 1 [deprecated = true];
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_deprecated_name());
    }
    // optional bytes deprecated_user_key = 2 [deprecated = true];
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
                                      this_._internal_deprecated_user_key());
    }
    // optional bytes encryption_key = 3;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
                                      this_._internal_encryption_key());
    }
    // optional bytes mac_key = 4;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
                                      this_._internal_mac_key());
    }
  }
  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 NigoriKey::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<NigoriKey*>(&to_msg);
  auto& from = static_cast<const NigoriKey&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:sync_pb.NigoriKey)
  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, 0x0000000fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_internal_set_deprecated_name(from._internal_deprecated_name());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_internal_set_deprecated_user_key(from._internal_deprecated_user_key());
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_internal_set_encryption_key(from._internal_encryption_key());
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _this->_internal_set_mac_key(from._internal_mac_key());
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

void NigoriKey::CopyFrom(const NigoriKey& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:sync_pb.NigoriKey)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


void NigoriKey::InternalSwap(NigoriKey* 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_.deprecated_name_, &other->_impl_.deprecated_name_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.deprecated_user_key_, &other->_impl_.deprecated_user_key_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.encryption_key_, &other->_impl_.encryption_key_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.mac_key_, &other->_impl_.mac_key_, arena);
}

// ===================================================================

CrossUserSharingPrivateKey::CrossUserSharingPrivateKey(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, CrossUserSharingPrivateKey_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:sync_pb.CrossUserSharingPrivateKey)
}
PROTOBUF_NDEBUG_INLINE CrossUserSharingPrivateKey::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::sync_pb::CrossUserSharingPrivateKey& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        x25519_private_key_(arena, from.x25519_private_key_) {}

CrossUserSharingPrivateKey::CrossUserSharingPrivateKey(
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
    const CrossUserSharingPrivateKey& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, CrossUserSharingPrivateKey_get_class_data()) {

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  CrossUserSharingPrivateKey* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
  _impl_.version_ = from._impl_.version_;

  // @@protoc_insertion_point(copy_constructor:sync_pb.CrossUserSharingPrivateKey)
}
PROTOBUF_NDEBUG_INLINE CrossUserSharingPrivateKey::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        x25519_private_key_(arena) {}

inline void CrossUserSharingPrivateKey::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
  _impl_.version_ = {};
}
CrossUserSharingPrivateKey::~CrossUserSharingPrivateKey() {
  // @@protoc_insertion_point(destructor:sync_pb.CrossUserSharingPrivateKey)
  SharedDtor(*this);
}
inline void CrossUserSharingPrivateKey::SharedDtor(MessageLite& self) {
  CrossUserSharingPrivateKey& this_ = static_cast<CrossUserSharingPrivateKey&>(self);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  this_._internal_metadata_.Delete<::std::string>();
  ABSL_DCHECK(this_.GetArena() == nullptr);
  this_._impl_.x25519_private_key_.Destroy();
  this_._impl_.~Impl_();
}

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite CrossUserSharingPrivateKey_class_data_ =
    CrossUserSharingPrivateKey::InternalGenerateClassData_(CrossUserSharingPrivateKey_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
CrossUserSharingPrivateKey::GetClassData() const {
  return CrossUserSharingPrivateKey_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
CrossUserSharingPrivateKey::GetClassData() const {
  return CrossUserSharingPrivateKey_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const CrossUserSharingPrivateKey::ParseTableT_
    CrossUserSharingPrivateKey::_table_ =
        CrossUserSharingPrivateKey::InternalGenerateParseTable_(CrossUserSharingPrivateKey_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void CrossUserSharingPrivateKey::Clear() {
// @@protoc_insertion_point(message_clear_start:sync_pb.CrossUserSharingPrivateKey)
  ::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 (CheckHasBit(cached_has_bits, 0x00000001U)) {
    _impl_.x25519_private_key_.ClearNonDefaultToEmpty();
  }
  _impl_.version_ = 0;
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL CrossUserSharingPrivateKey::_InternalSerialize(
    const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
  const CrossUserSharingPrivateKey& this_ = static_cast<const CrossUserSharingPrivateKey&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL CrossUserSharingPrivateKey::_InternalSerialize(
    ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
  const CrossUserSharingPrivateKey& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(serialize_to_array_start:sync_pb.CrossUserSharingPrivateKey)
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = this_._impl_._has_bits_[0];
  // optional int32 version = 1;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>(
            stream, this_._internal_version(), target);
  }

  // optional bytes x25519_private_key = 2;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    const ::std::string& _s = this_._internal_x25519_private_key();
    target = stream->WriteBytesMaybeAliased(2, _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:sync_pb.CrossUserSharingPrivateKey)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t CrossUserSharingPrivateKey::ByteSizeLong(const MessageLite& base) {
  const CrossUserSharingPrivateKey& this_ = static_cast<const CrossUserSharingPrivateKey&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t CrossUserSharingPrivateKey::ByteSizeLong() const {
  const CrossUserSharingPrivateKey& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:sync_pb.CrossUserSharingPrivateKey)
  ::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, 0x00000003U)) {
    // optional bytes x25519_private_key = 2;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
                                      this_._internal_x25519_private_key());
    }
    // optional int32 version = 1;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_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 CrossUserSharingPrivateKey::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<CrossUserSharingPrivateKey*>(&to_msg);
  auto& from = static_cast<const CrossUserSharingPrivateKey&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:sync_pb.CrossUserSharingPrivateKey)
  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, 0x00000003U)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_internal_set_x25519_private_key(from._internal_x25519_private_key());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.version_ = from._impl_.version_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

void CrossUserSharingPrivateKey::CopyFrom(const CrossUserSharingPrivateKey& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:sync_pb.CrossUserSharingPrivateKey)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


void CrossUserSharingPrivateKey::InternalSwap(CrossUserSharingPrivateKey* 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_.x25519_private_key_, &other->_impl_.x25519_private_key_, arena);
  swap(_impl_.version_, other->_impl_.version_);
}

// ===================================================================

CrossUserSharingPublicKey::CrossUserSharingPublicKey(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, CrossUserSharingPublicKey_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:sync_pb.CrossUserSharingPublicKey)
}
PROTOBUF_NDEBUG_INLINE CrossUserSharingPublicKey::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::sync_pb::CrossUserSharingPublicKey& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        x25519_public_key_(arena, from.x25519_public_key_) {}

CrossUserSharingPublicKey::CrossUserSharingPublicKey(
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
    const CrossUserSharingPublicKey& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, CrossUserSharingPublicKey_get_class_data()) {

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  CrossUserSharingPublicKey* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
  _impl_.version_ = from._impl_.version_;

  // @@protoc_insertion_point(copy_constructor:sync_pb.CrossUserSharingPublicKey)
}
PROTOBUF_NDEBUG_INLINE CrossUserSharingPublicKey::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        x25519_public_key_(arena) {}

inline void CrossUserSharingPublicKey::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
  _impl_.version_ = {};
}
CrossUserSharingPublicKey::~CrossUserSharingPublicKey() {
  // @@protoc_insertion_point(destructor:sync_pb.CrossUserSharingPublicKey)
  SharedDtor(*this);
}
inline void CrossUserSharingPublicKey::SharedDtor(MessageLite& self) {
  CrossUserSharingPublicKey& this_ = static_cast<CrossUserSharingPublicKey&>(self);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  this_._internal_metadata_.Delete<::std::string>();
  ABSL_DCHECK(this_.GetArena() == nullptr);
  this_._impl_.x25519_public_key_.Destroy();
  this_._impl_.~Impl_();
}

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite CrossUserSharingPublicKey_class_data_ =
    CrossUserSharingPublicKey::InternalGenerateClassData_(CrossUserSharingPublicKey_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
CrossUserSharingPublicKey::GetClassData() const {
  return CrossUserSharingPublicKey_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
CrossUserSharingPublicKey::GetClassData() const {
  return CrossUserSharingPublicKey_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const CrossUserSharingPublicKey::ParseTableT_
    CrossUserSharingPublicKey::_table_ =
        CrossUserSharingPublicKey::InternalGenerateParseTable_(CrossUserSharingPublicKey_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void CrossUserSharingPublicKey::Clear() {
// @@protoc_insertion_point(message_clear_start:sync_pb.CrossUserSharingPublicKey)
  ::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 (CheckHasBit(cached_has_bits, 0x00000001U)) {
    _impl_.x25519_public_key_.ClearNonDefaultToEmpty();
  }
  _impl_.version_ = 0;
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL CrossUserSharingPublicKey::_InternalSerialize(
    const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
  const CrossUserSharingPublicKey& this_ = static_cast<const CrossUserSharingPublicKey&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL CrossUserSharingPublicKey::_InternalSerialize(
    ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
  const CrossUserSharingPublicKey& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(serialize_to_array_start:sync_pb.CrossUserSharingPublicKey)
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = this_._impl_._has_bits_[0];
  // optional int32 version = 1;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>(
            stream, this_._internal_version(), target);
  }

  // optional bytes x25519_public_key = 2;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    const ::std::string& _s = this_._internal_x25519_public_key();
    target = stream->WriteBytesMaybeAliased(2, _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:sync_pb.CrossUserSharingPublicKey)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t CrossUserSharingPublicKey::ByteSizeLong(const MessageLite& base) {
  const CrossUserSharingPublicKey& this_ = static_cast<const CrossUserSharingPublicKey&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t CrossUserSharingPublicKey::ByteSizeLong() const {
  const CrossUserSharingPublicKey& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:sync_pb.CrossUserSharingPublicKey)
  ::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, 0x00000003U)) {
    // optional bytes x25519_public_key = 2;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
                                      this_._internal_x25519_public_key());
    }
    // optional int32 version = 1;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_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 CrossUserSharingPublicKey::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<CrossUserSharingPublicKey*>(&to_msg);
  auto& from = static_cast<const CrossUserSharingPublicKey&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:sync_pb.CrossUserSharingPublicKey)
  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, 0x00000003U)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_internal_set_x25519_public_key(from._internal_x25519_public_key());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.version_ = from._impl_.version_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

void CrossUserSharingPublicKey::CopyFrom(const CrossUserSharingPublicKey& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:sync_pb.CrossUserSharingPublicKey)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


void CrossUserSharingPublicKey::InternalSwap(CrossUserSharingPublicKey* 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_.x25519_public_key_, &other->_impl_.x25519_public_key_, arena);
  swap(_impl_.version_, other->_impl_.version_);
}

// ===================================================================

EncryptionKeys::EncryptionKeys(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, EncryptionKeys_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:sync_pb.EncryptionKeys)
}
PROTOBUF_NDEBUG_INLINE EncryptionKeys::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::sync_pb::EncryptionKeys& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        key_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::sync_pb::EncryptionKeys,
              PROTOBUF_FIELD_OFFSET(::sync_pb::EncryptionKeys, _impl_.key_)>()
          , from.key_
        }
        ,
        cross_user_sharing_private_key_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::sync_pb::EncryptionKeys,
              PROTOBUF_FIELD_OFFSET(::sync_pb::EncryptionKeys, _impl_.cross_user_sharing_private_key_)>()
          , from.cross_user_sharing_private_key_
        }
     {}

EncryptionKeys::EncryptionKeys(
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
    const EncryptionKeys& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, EncryptionKeys_get_class_data()) {

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  EncryptionKeys* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);

  // @@protoc_insertion_point(copy_constructor:sync_pb.EncryptionKeys)
}
PROTOBUF_NDEBUG_INLINE EncryptionKeys::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        key_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::sync_pb::EncryptionKeys,
            PROTOBUF_FIELD_OFFSET(::sync_pb::EncryptionKeys, _impl_.key_)>()
         }
        ,
        cross_user_sharing_private_key_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::sync_pb::EncryptionKeys,
            PROTOBUF_FIELD_OFFSET(::sync_pb::EncryptionKeys, _impl_.cross_user_sharing_private_key_)>()
         }
     {}

inline void EncryptionKeys::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
}
EncryptionKeys::~EncryptionKeys() {
  // @@protoc_insertion_point(destructor:sync_pb.EncryptionKeys)
  SharedDtor(*this);
}
inline void EncryptionKeys::SharedDtor(MessageLite& self) {
  EncryptionKeys& this_ = static_cast<EncryptionKeys&>(self);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  this_._internal_metadata_.Delete<::std::string>();
  ABSL_DCHECK(this_.GetArena() == nullptr);
  this_._impl_.~Impl_();
}

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite EncryptionKeys_class_data_ =
    EncryptionKeys::InternalGenerateClassData_(EncryptionKeys_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
EncryptionKeys::GetClassData() const {
  return EncryptionKeys_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
EncryptionKeys::GetClassData() const {
  return EncryptionKeys_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const EncryptionKeys::ParseTableT_
    EncryptionKeys::_table_ =
        EncryptionKeys::InternalGenerateParseTable_(EncryptionKeys_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void EncryptionKeys::Clear() {
// @@protoc_insertion_point(message_clear_start:sync_pb.EncryptionKeys)
  ::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, 0x00000003U)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _impl_.key_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.cross_user_sharing_private_key_.Clear();
    }
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL EncryptionKeys::_InternalSerialize(
    const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
  const EncryptionKeys& this_ = static_cast<const EncryptionKeys&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL EncryptionKeys::_InternalSerialize(
    ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
  const EncryptionKeys& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(serialize_to_array_start:sync_pb.EncryptionKeys)
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = this_._impl_._has_bits_[0];
  // repeated .sync_pb.NigoriKey key = 2;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_key_size());
         i < n; i++) {
      const auto& repfield = this_._internal_key().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              2, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  // repeated .sync_pb.CrossUserSharingPrivateKey cross_user_sharing_private_key = 3;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_cross_user_sharing_private_key_size());
         i < n; i++) {
      const auto& repfield = this_._internal_cross_user_sharing_private_key().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              3, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  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:sync_pb.EncryptionKeys)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t EncryptionKeys::ByteSizeLong(const MessageLite& base) {
  const EncryptionKeys& this_ = static_cast<const EncryptionKeys&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t EncryptionKeys::ByteSizeLong() const {
  const EncryptionKeys& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:sync_pb.EncryptionKeys)
  ::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, 0x00000003U)) {
    // repeated .sync_pb.NigoriKey key = 2;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1UL * this_._internal_key_size();
      for (const auto& msg : this_._internal_key()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // repeated .sync_pb.CrossUserSharingPrivateKey cross_user_sharing_private_key = 3;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1UL * this_._internal_cross_user_sharing_private_key_size();
      for (const auto& msg : this_._internal_cross_user_sharing_private_key()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
  }
  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 EncryptionKeys::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<EncryptionKeys*>(&to_msg);
  auto& from = static_cast<const EncryptionKeys&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:sync_pb.EncryptionKeys)
  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, 0x00000003U)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_internal_mutable_key()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_key());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_internal_mutable_cross_user_sharing_private_key()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_cross_user_sharing_private_key());
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

void EncryptionKeys::CopyFrom(const EncryptionKeys& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:sync_pb.EncryptionKeys)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


void EncryptionKeys::InternalSwap(EncryptionKeys* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
  using ::std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  _impl_.key_.InternalSwap(&other->_impl_.key_);
  _impl_.cross_user_sharing_private_key_.InternalSwap(&other->_impl_.cross_user_sharing_private_key_);
}

// ===================================================================

NigoriKeyBag::NigoriKeyBag(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, NigoriKeyBag_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:sync_pb.NigoriKeyBag)
}
PROTOBUF_NDEBUG_INLINE NigoriKeyBag::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::sync_pb::NigoriKeyBag& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        key_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::sync_pb::NigoriKeyBag,
              PROTOBUF_FIELD_OFFSET(::sync_pb::NigoriKeyBag, _impl_.key_)>()
          , from.key_
        }
     {}

NigoriKeyBag::NigoriKeyBag(
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
    const NigoriKeyBag& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, NigoriKeyBag_get_class_data()) {

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  NigoriKeyBag* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);

  // @@protoc_insertion_point(copy_constructor:sync_pb.NigoriKeyBag)
}
PROTOBUF_NDEBUG_INLINE NigoriKeyBag::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        key_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::sync_pb::NigoriKeyBag,
            PROTOBUF_FIELD_OFFSET(::sync_pb::NigoriKeyBag, _impl_.key_)>()
         }
     {}

inline void NigoriKeyBag::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
}
NigoriKeyBag::~NigoriKeyBag() {
  // @@protoc_insertion_point(destructor:sync_pb.NigoriKeyBag)
  SharedDtor(*this);
}
inline void NigoriKeyBag::SharedDtor(MessageLite& self) {
  NigoriKeyBag& this_ = static_cast<NigoriKeyBag&>(self);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  this_._internal_metadata_.Delete<::std::string>();
  ABSL_DCHECK(this_.GetArena() == nullptr);
  this_._impl_.~Impl_();
}

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite NigoriKeyBag_class_data_ =
    NigoriKeyBag::InternalGenerateClassData_(NigoriKeyBag_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
NigoriKeyBag::GetClassData() const {
  return NigoriKeyBag_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
NigoriKeyBag::GetClassData() const {
  return NigoriKeyBag_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const NigoriKeyBag::ParseTableT_
    NigoriKeyBag::_table_ =
        NigoriKeyBag::InternalGenerateParseTable_(NigoriKeyBag_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void NigoriKeyBag::Clear() {
// @@protoc_insertion_point(message_clear_start:sync_pb.NigoriKeyBag)
  ::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 (CheckHasBit(cached_has_bits, 0x00000001U)) {
    _impl_.key_.Clear();
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL NigoriKeyBag::_InternalSerialize(
    const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
  const NigoriKeyBag& this_ = static_cast<const NigoriKeyBag&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL NigoriKeyBag::_InternalSerialize(
    ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
  const NigoriKeyBag& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(serialize_to_array_start:sync_pb.NigoriKeyBag)
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = this_._impl_._has_bits_[0];
  // repeated .sync_pb.NigoriKey key = 2;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_key_size());
         i < n; i++) {
      const auto& repfield = this_._internal_key().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              2, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  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:sync_pb.NigoriKeyBag)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t NigoriKeyBag::ByteSizeLong(const MessageLite& base) {
  const NigoriKeyBag& this_ = static_cast<const NigoriKeyBag&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t NigoriKeyBag::ByteSizeLong() const {
  const NigoriKeyBag& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:sync_pb.NigoriKeyBag)
  ::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_);
   {
    // repeated .sync_pb.NigoriKey key = 2;
    cached_has_bits = this_._impl_._has_bits_[0];
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1UL * this_._internal_key_size();
      for (const auto& msg : this_._internal_key()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
  }
  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 NigoriKeyBag::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<NigoriKeyBag*>(&to_msg);
  auto& from = static_cast<const NigoriKeyBag&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:sync_pb.NigoriKeyBag)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    _this->_internal_mutable_key()->InternalMergeFromWithArena(
        ::google::protobuf::MessageLite::internal_visibility(), arena,
        from._internal_key());
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

void NigoriKeyBag::CopyFrom(const NigoriKeyBag& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:sync_pb.NigoriKeyBag)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


void NigoriKeyBag::InternalSwap(NigoriKeyBag* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
  using ::std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  _impl_.key_.InternalSwap(&other->_impl_.key_);
}

// ===================================================================

TrustedVaultAutoUpgradeExperimentGroup::TrustedVaultAutoUpgradeExperimentGroup(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, TrustedVaultAutoUpgradeExperimentGroup_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:sync_pb.TrustedVaultAutoUpgradeExperimentGroup)
}
TrustedVaultAutoUpgradeExperimentGroup::TrustedVaultAutoUpgradeExperimentGroup(
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const TrustedVaultAutoUpgradeExperimentGroup& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, TrustedVaultAutoUpgradeExperimentGroup_get_class_data()),
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena),
#endif  // PROTOBUF_CUSTOM_VTABLE
      _impl_(from._impl_) {
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}
PROTOBUF_NDEBUG_INLINE TrustedVaultAutoUpgradeExperimentGroup::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0} {}

inline void TrustedVaultAutoUpgradeExperimentGroup::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
  ::memset(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, cohort_),
           0,
           offsetof(Impl_, type_index_) -
               offsetof(Impl_, cohort_) +
               sizeof(Impl_::type_index_));
}
TrustedVaultAutoUpgradeExperimentGroup::~TrustedVaultAutoUpgradeExperimentGroup() {
  // @@protoc_insertion_point(destructor:sync_pb.TrustedVaultAutoUpgradeExperimentGroup)
  SharedDtor(*this);
}
inline void TrustedVaultAutoUpgradeExperimentGroup::SharedDtor(MessageLite& self) {
  TrustedVaultAutoUpgradeExperimentGroup& this_ = static_cast<TrustedVaultAutoUpgradeExperimentGroup&>(self);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  this_._internal_metadata_.Delete<::std::string>();
  ABSL_DCHECK(this_.GetArena() == nullptr);
  this_._impl_.~Impl_();
}

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite TrustedVaultAutoUpgradeExperimentGroup_class_data_ =
    TrustedVaultAutoUpgradeExperimentGroup::InternalGenerateClassData_(TrustedVaultAutoUpgradeExperimentGroup_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
TrustedVaultAutoUpgradeExperimentGroup::GetClassData() const {
  return TrustedVaultAutoUpgradeExperimentGroup_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
TrustedVaultAutoUpgradeExperimentGroup::GetClassData() const {
  return TrustedVaultAutoUpgradeExperimentGroup_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const TrustedVaultAutoUpgradeExperimentGroup::ParseTableT_
    TrustedVaultAutoUpgradeExperimentGroup::_table_ =
        TrustedVaultAutoUpgradeExperimentGroup::InternalGenerateParseTable_(TrustedVaultAutoUpgradeExperimentGroup_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void TrustedVaultAutoUpgradeExperimentGroup::Clear() {
// @@protoc_insertion_point(message_clear_start:sync_pb.TrustedVaultAutoUpgradeExperimentGroup)
  ::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, 0x00000007U)) {
    ::memset(&_impl_.cohort_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.type_index_) -
        reinterpret_cast<char*>(&_impl_.cohort_)) + sizeof(_impl_.type_index_));
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL TrustedVaultAutoUpgradeExperimentGroup::_InternalSerialize(
    const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
  const TrustedVaultAutoUpgradeExperimentGroup& this_ = static_cast<const TrustedVaultAutoUpgradeExperimentGroup&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL TrustedVaultAutoUpgradeExperimentGroup::_InternalSerialize(
    ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
  const TrustedVaultAutoUpgradeExperimentGroup& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(serialize_to_array_start:sync_pb.TrustedVaultAutoUpgradeExperimentGroup)
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = this_._impl_._has_bits_[0];
  // optional int32 cohort = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>(
            stream, this_._internal_cohort(), target);
  }

  // optional .sync_pb.TrustedVaultAutoUpgradeExperimentGroup.Type type = 2;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        2, this_._internal_type(), target);
  }

  // optional int32 type_index = 3;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>(
            stream, this_._internal_type_index(), 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:sync_pb.TrustedVaultAutoUpgradeExperimentGroup)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t TrustedVaultAutoUpgradeExperimentGroup::ByteSizeLong(const MessageLite& base) {
  const TrustedVaultAutoUpgradeExperimentGroup& this_ = static_cast<const TrustedVaultAutoUpgradeExperimentGroup&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t TrustedVaultAutoUpgradeExperimentGroup::ByteSizeLong() const {
  const TrustedVaultAutoUpgradeExperimentGroup& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:sync_pb.TrustedVaultAutoUpgradeExperimentGroup)
  ::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, 0x00000007U)) {
    // optional int32 cohort = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_cohort());
    }
    // optional .sync_pb.TrustedVaultAutoUpgradeExperimentGroup.Type type = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_type());
    }
    // optional int32 type_index = 3;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_type_index());
    }
  }
  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 TrustedVaultAutoUpgradeExperimentGroup::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<TrustedVaultAutoUpgradeExperimentGroup*>(&to_msg);
  auto& from = static_cast<const TrustedVaultAutoUpgradeExperimentGroup&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:sync_pb.TrustedVaultAutoUpgradeExperimentGroup)
  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, 0x00000007U)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_impl_.cohort_ = from._impl_.cohort_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.type_ = from._impl_.type_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_impl_.type_index_ = from._impl_.type_index_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

void TrustedVaultAutoUpgradeExperimentGroup::CopyFrom(const TrustedVaultAutoUpgradeExperimentGroup& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:sync_pb.TrustedVaultAutoUpgradeExperimentGroup)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


void TrustedVaultAutoUpgradeExperimentGroup::InternalSwap(TrustedVaultAutoUpgradeExperimentGroup* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
  using ::std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(TrustedVaultAutoUpgradeExperimentGroup, _impl_.type_index_)
      + sizeof(TrustedVaultAutoUpgradeExperimentGroup::_impl_.type_index_)
      - PROTOBUF_FIELD_OFFSET(TrustedVaultAutoUpgradeExperimentGroup, _impl_.cohort_)>(
          reinterpret_cast<char*>(&_impl_.cohort_),
          reinterpret_cast<char*>(&other->_impl_.cohort_));
}

// ===================================================================

NigoriSpecifics_TrustedVaultDebugInfo::NigoriSpecifics_TrustedVaultDebugInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, NigoriSpecifics_TrustedVaultDebugInfo_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:sync_pb.NigoriSpecifics.TrustedVaultDebugInfo)
}
PROTOBUF_NDEBUG_INLINE NigoriSpecifics_TrustedVaultDebugInfo::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::sync_pb::NigoriSpecifics_TrustedVaultDebugInfo& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0} {}

NigoriSpecifics_TrustedVaultDebugInfo::NigoriSpecifics_TrustedVaultDebugInfo(
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
    const NigoriSpecifics_TrustedVaultDebugInfo& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, NigoriSpecifics_TrustedVaultDebugInfo_get_class_data()) {

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  NigoriSpecifics_TrustedVaultDebugInfo* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
  ::uint32_t cached_has_bits = _impl_._has_bits_[0];
  _impl_.auto_upgrade_experiment_group_ = (CheckHasBit(cached_has_bits, 0x00000001U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.auto_upgrade_experiment_group_)
                : nullptr;
  ::memcpy(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, migration_time_),
           reinterpret_cast<const char*>(&from._impl_) +
               offsetof(Impl_, migration_time_),
           offsetof(Impl_, key_version_) -
               offsetof(Impl_, migration_time_) +
               sizeof(Impl_::key_version_));

  // @@protoc_insertion_point(copy_constructor:sync_pb.NigoriSpecifics.TrustedVaultDebugInfo)
}
PROTOBUF_NDEBUG_INLINE NigoriSpecifics_TrustedVaultDebugInfo::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0} {}

inline void NigoriSpecifics_TrustedVaultDebugInfo::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
  ::memset(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, auto_upgrade_experiment_group_),
           0,
           offsetof(Impl_, key_version_) -
               offsetof(Impl_, auto_upgrade_experiment_group_) +
               sizeof(Impl_::key_version_));
}
NigoriSpecifics_TrustedVaultDebugInfo::~NigoriSpecifics_TrustedVaultDebugInfo() {
  // @@protoc_insertion_point(destructor:sync_pb.NigoriSpecifics.TrustedVaultDebugInfo)
  SharedDtor(*this);
}
inline void NigoriSpecifics_TrustedVaultDebugInfo::SharedDtor(MessageLite& self) {
  NigoriSpecifics_TrustedVaultDebugInfo& this_ = static_cast<NigoriSpecifics_TrustedVaultDebugInfo&>(self);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  this_._internal_metadata_.Delete<::std::string>();
  ABSL_DCHECK(this_.GetArena() == nullptr);
  delete this_._impl_.auto_upgrade_experiment_group_;
  this_._impl_.~Impl_();
}

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite NigoriSpecifics_TrustedVaultDebugInfo_class_data_ =
    NigoriSpecifics_TrustedVaultDebugInfo::InternalGenerateClassData_(NigoriSpecifics_TrustedVaultDebugInfo_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
NigoriSpecifics_TrustedVaultDebugInfo::GetClassData() const {
  return NigoriSpecifics_TrustedVaultDebugInfo_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
NigoriSpecifics_TrustedVaultDebugInfo::GetClassData() const {
  return NigoriSpecifics_TrustedVaultDebugInfo_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const NigoriSpecifics_TrustedVaultDebugInfo::ParseTableT_
    NigoriSpecifics_TrustedVaultDebugInfo::_table_ =
        NigoriSpecifics_TrustedVaultDebugInfo::InternalGenerateParseTable_(NigoriSpecifics_TrustedVaultDebugInfo_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void NigoriSpecifics_TrustedVaultDebugInfo::Clear() {
// @@protoc_insertion_point(message_clear_start:sync_pb.NigoriSpecifics.TrustedVaultDebugInfo)
  ::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 (CheckHasBit(cached_has_bits, 0x00000001U)) {
    ABSL_DCHECK(_impl_.auto_upgrade_experiment_group_ != nullptr);
    _impl_.auto_upgrade_experiment_group_->Clear();
  }
  if (BatchCheckHasBit(cached_has_bits, 0x0000000eU)) {
    ::memset(&_impl_.migration_time_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.key_version_) -
        reinterpret_cast<char*>(&_impl_.migration_time_)) + sizeof(_impl_.key_version_));
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL NigoriSpecifics_TrustedVaultDebugInfo::_InternalSerialize(
    const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
  const NigoriSpecifics_TrustedVaultDebugInfo& this_ = static_cast<const NigoriSpecifics_TrustedVaultDebugInfo&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL NigoriSpecifics_TrustedVaultDebugInfo::_InternalSerialize(
    ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
  const NigoriSpecifics_TrustedVaultDebugInfo& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(serialize_to_array_start:sync_pb.NigoriSpecifics.TrustedVaultDebugInfo)
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = this_._impl_._has_bits_[0];
  // optional int64 migration_time = 1;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>(
            stream, this_._internal_migration_time(), target);
  }

  // optional int32 key_version = 2;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>(
            stream, this_._internal_key_version(), target);
  }

  // optional .sync_pb.TrustedVaultAutoUpgradeExperimentGroup auto_upgrade_experiment_group = 5;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        5, *this_._impl_.auto_upgrade_experiment_group_, this_._impl_.auto_upgrade_experiment_group_->GetCachedSize(), target,
        stream);
  }

  // optional int64 auto_upgrade_experiment_group_modification_time_unix_epoch_millis = 6;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<6>(
            stream, this_._internal_auto_upgrade_experiment_group_modification_time_unix_epoch_millis(), 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:sync_pb.NigoriSpecifics.TrustedVaultDebugInfo)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t NigoriSpecifics_TrustedVaultDebugInfo::ByteSizeLong(const MessageLite& base) {
  const NigoriSpecifics_TrustedVaultDebugInfo& this_ = static_cast<const NigoriSpecifics_TrustedVaultDebugInfo&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t NigoriSpecifics_TrustedVaultDebugInfo::ByteSizeLong() const {
  const NigoriSpecifics_TrustedVaultDebugInfo& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:sync_pb.NigoriSpecifics.TrustedVaultDebugInfo)
  ::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, 0x0000000fU)) {
    // optional .sync_pb.TrustedVaultAutoUpgradeExperimentGroup auto_upgrade_experiment_group = 5;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.auto_upgrade_experiment_group_);
    }
    // optional int64 migration_time = 1;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_migration_time());
    }
    // optional int64 auto_upgrade_experiment_group_modification_time_unix_epoch_millis = 6;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_auto_upgrade_experiment_group_modification_time_unix_epoch_millis());
    }
    // optional int32 key_version = 2;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_key_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 NigoriSpecifics_TrustedVaultDebugInfo::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<NigoriSpecifics_TrustedVaultDebugInfo*>(&to_msg);
  auto& from = static_cast<const NigoriSpecifics_TrustedVaultDebugInfo&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:sync_pb.NigoriSpecifics.TrustedVaultDebugInfo)
  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, 0x0000000fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      ABSL_DCHECK(from._impl_.auto_upgrade_experiment_group_ != nullptr);
      if (_this->_impl_.auto_upgrade_experiment_group_ == nullptr) {
        _this->_impl_.auto_upgrade_experiment_group_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.auto_upgrade_experiment_group_);
      } else {
        _this->_impl_.auto_upgrade_experiment_group_->MergeFrom(*from._impl_.auto_upgrade_experiment_group_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.migration_time_ = from._impl_.migration_time_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_impl_.auto_upgrade_experiment_group_modification_time_unix_epoch_millis_ = from._impl_.auto_upgrade_experiment_group_modification_time_unix_epoch_millis_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _this->_impl_.key_version_ = from._impl_.key_version_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

void NigoriSpecifics_TrustedVaultDebugInfo::CopyFrom(const NigoriSpecifics_TrustedVaultDebugInfo& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:sync_pb.NigoriSpecifics.TrustedVaultDebugInfo)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


void NigoriSpecifics_TrustedVaultDebugInfo::InternalSwap(NigoriSpecifics_TrustedVaultDebugInfo* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
  using ::std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(NigoriSpecifics_TrustedVaultDebugInfo, _impl_.key_version_)
      + sizeof(NigoriSpecifics_TrustedVaultDebugInfo::_impl_.key_version_)
      - PROTOBUF_FIELD_OFFSET(NigoriSpecifics_TrustedVaultDebugInfo, _impl_.auto_upgrade_experiment_group_)>(
          reinterpret_cast<char*>(&_impl_.auto_upgrade_experiment_group_),
          reinterpret_cast<char*>(&other->_impl_.auto_upgrade_experiment_group_));
}

// ===================================================================

void NigoriSpecifics::clear_encryption_keybag() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.encryption_keybag_ != nullptr) _impl_.encryption_keybag_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
}
void NigoriSpecifics::clear_keystore_decryptor_token() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.keystore_decryptor_token_ != nullptr) _impl_.keystore_decryptor_token_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
}
NigoriSpecifics::NigoriSpecifics(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, NigoriSpecifics_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:sync_pb.NigoriSpecifics)
}
PROTOBUF_NDEBUG_INLINE NigoriSpecifics::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::sync_pb::NigoriSpecifics& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        custom_passphrase_key_derivation_salt_(arena, from.custom_passphrase_key_derivation_salt_) {}

NigoriSpecifics::NigoriSpecifics(
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
    const NigoriSpecifics& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, NigoriSpecifics_get_class_data()) {

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  NigoriSpecifics* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
  ::uint32_t cached_has_bits = _impl_._has_bits_[0];
  _impl_.encryption_keybag_ = (CheckHasBit(cached_has_bits, 0x00000002U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.encryption_keybag_)
                : nullptr;
  _impl_.keystore_decryptor_token_ = (CheckHasBit(cached_has_bits, 0x00000004U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.keystore_decryptor_token_)
                : nullptr;
  _impl_.trusted_vault_debug_info_ = (CheckHasBit(cached_has_bits, 0x00000008U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.trusted_vault_debug_info_)
                : nullptr;
  _impl_.cross_user_sharing_public_key_ = (CheckHasBit(cached_has_bits, 0x00000010U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.cross_user_sharing_public_key_)
                : nullptr;
  ::memcpy(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, keybag_is_frozen_),
           reinterpret_cast<const char*>(&from._impl_) +
               offsetof(Impl_, keybag_is_frozen_),
           offsetof(Impl_, passphrase_type_) -
               offsetof(Impl_, keybag_is_frozen_) +
               sizeof(Impl_::passphrase_type_));

  // @@protoc_insertion_point(copy_constructor:sync_pb.NigoriSpecifics)
}
PROTOBUF_NDEBUG_INLINE NigoriSpecifics::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        custom_passphrase_key_derivation_salt_(arena),
        passphrase_type_{1} {}

inline void NigoriSpecifics::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
  ::memset(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, encryption_keybag_),
           0,
           offsetof(Impl_, custom_passphrase_time_) -
               offsetof(Impl_, encryption_keybag_) +
               sizeof(Impl_::custom_passphrase_time_));
}
NigoriSpecifics::~NigoriSpecifics() {
  // @@protoc_insertion_point(destructor:sync_pb.NigoriSpecifics)
  SharedDtor(*this);
}
inline void NigoriSpecifics::SharedDtor(MessageLite& self) {
  NigoriSpecifics& this_ = static_cast<NigoriSpecifics&>(self);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  this_._internal_metadata_.Delete<::std::string>();
  ABSL_DCHECK(this_.GetArena() == nullptr);
  this_._impl_.custom_passphrase_key_derivation_salt_.Destroy();
  delete this_._impl_.encryption_keybag_;
  delete this_._impl_.keystore_decryptor_token_;
  delete this_._impl_.trusted_vault_debug_info_;
  delete this_._impl_.cross_user_sharing_public_key_;
  this_._impl_.~Impl_();
}

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite NigoriSpecifics_class_data_ =
    NigoriSpecifics::InternalGenerateClassData_(NigoriSpecifics_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
NigoriSpecifics::GetClassData() const {
  return NigoriSpecifics_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
NigoriSpecifics::GetClassData() const {
  return NigoriSpecifics_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const NigoriSpecifics::ParseTableT_
    NigoriSpecifics::_table_ =
        NigoriSpecifics::InternalGenerateParseTable_(NigoriSpecifics_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void NigoriSpecifics::Clear() {
// @@protoc_insertion_point(message_clear_start:sync_pb.NigoriSpecifics)
  ::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, 0x0000001fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _impl_.custom_passphrase_key_derivation_salt_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ABSL_DCHECK(_impl_.encryption_keybag_ != nullptr);
      _impl_.encryption_keybag_->Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      ABSL_DCHECK(_impl_.keystore_decryptor_token_ != nullptr);
      _impl_.keystore_decryptor_token_->Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      ABSL_DCHECK(_impl_.trusted_vault_debug_info_ != nullptr);
      _impl_.trusted_vault_debug_info_->Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      ABSL_DCHECK(_impl_.cross_user_sharing_public_key_ != nullptr);
      _impl_.cross_user_sharing_public_key_->Clear();
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x000000e0U)) {
    ::memset(&_impl_.keybag_is_frozen_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.sync_tab_favicons_) -
        reinterpret_cast<char*>(&_impl_.keybag_is_frozen_)) + sizeof(_impl_.sync_tab_favicons_));
  }
  if (BatchCheckHasBit(cached_has_bits, 0x00001f00U)) {
    ::memset(&_impl_.server_only_was_missing_keystore_migration_time_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.custom_passphrase_time_) -
        reinterpret_cast<char*>(&_impl_.server_only_was_missing_keystore_migration_time_)) + sizeof(_impl_.custom_passphrase_time_));
    _impl_.passphrase_type_ = 1;
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL NigoriSpecifics::_InternalSerialize(
    const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
  const NigoriSpecifics& this_ = static_cast<const NigoriSpecifics&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL NigoriSpecifics::_InternalSerialize(
    ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
  const NigoriSpecifics& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(serialize_to_array_start:sync_pb.NigoriSpecifics)
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = this_._impl_._has_bits_[0];
  // optional .sync_pb.EncryptedData encryption_keybag = 1;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        1, *this_._impl_.encryption_keybag_, this_._impl_.encryption_keybag_->GetCachedSize(), target,
        stream);
  }

  // optional bool keybag_is_frozen = 2;
  if (CheckHasBit(cached_has_bits, 0x00000020U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        2, this_._internal_keybag_is_frozen(), target);
  }

  // optional bool encrypt_everything = 24;
  if (CheckHasBit(cached_has_bits, 0x00000040U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        24, this_._internal_encrypt_everything(), target);
  }

  // optional bool sync_tab_favicons = 29;
  if (CheckHasBit(cached_has_bits, 0x00000080U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        29, this_._internal_sync_tab_favicons(), target);
  }

  // optional int32 passphrase_type = 30 [default = 1];
  if (CheckHasBit(cached_has_bits, 0x00001000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteInt32ToArray(
        30, this_._internal_passphrase_type(), target);
  }

  // optional .sync_pb.EncryptedData keystore_decryptor_token = 31;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        31, *this_._impl_.keystore_decryptor_token_, this_._impl_.keystore_decryptor_token_->GetCachedSize(), target,
        stream);
  }

  // optional int64 keystore_migration_time = 32;
  if (CheckHasBit(cached_has_bits, 0x00000400U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteInt64ToArray(
        32, this_._internal_keystore_migration_time(), target);
  }

  // optional int64 custom_passphrase_time = 33;
  if (CheckHasBit(cached_has_bits, 0x00000800U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteInt64ToArray(
        33, this_._internal_custom_passphrase_time(), target);
  }

  // optional bool server_only_was_missing_keystore_migration_time = 40;
  if (CheckHasBit(cached_has_bits, 0x00000100U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        40, this_._internal_server_only_was_missing_keystore_migration_time(), target);
  }

  // optional int32 custom_passphrase_key_derivation_method = 45 [default = 0];
  if (CheckHasBit(cached_has_bits, 0x00000200U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteInt32ToArray(
        45, this_._internal_custom_passphrase_key_derivation_method(), target);
  }

  // optional string custom_passphrase_key_derivation_salt = 46;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    const ::std::string& _s = this_._internal_custom_passphrase_key_derivation_salt();
    target = stream->WriteStringMaybeAliased(46, _s, target);
  }

  // optional .sync_pb.NigoriSpecifics.TrustedVaultDebugInfo trusted_vault_debug_info = 50;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        50, *this_._impl_.trusted_vault_debug_info_, this_._impl_.trusted_vault_debug_info_->GetCachedSize(), target,
        stream);
  }

  // optional .sync_pb.CrossUserSharingPublicKey cross_user_sharing_public_key = 53;
  if (CheckHasBit(cached_has_bits, 0x00000010U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        53, *this_._impl_.cross_user_sharing_public_key_, this_._impl_.cross_user_sharing_public_key_->GetCachedSize(), target,
        stream);
  }

  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:sync_pb.NigoriSpecifics)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t NigoriSpecifics::ByteSizeLong(const MessageLite& base) {
  const NigoriSpecifics& this_ = static_cast<const NigoriSpecifics&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t NigoriSpecifics::ByteSizeLong() const {
  const NigoriSpecifics& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:sync_pb.NigoriSpecifics)
  ::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];
  total_size += ::absl::popcount(0x000001c0U & cached_has_bits) * 3;
  total_size += static_cast<bool>(0x00000020U & cached_has_bits) * 2;
  if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) {
    // optional string custom_passphrase_key_derivation_salt = 46;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_custom_passphrase_key_derivation_salt());
    }
    // optional .sync_pb.EncryptedData encryption_keybag = 1;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.encryption_keybag_);
    }
    // optional .sync_pb.EncryptedData keystore_decryptor_token = 31;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 2 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.keystore_decryptor_token_);
    }
    // optional .sync_pb.NigoriSpecifics.TrustedVaultDebugInfo trusted_vault_debug_info = 50;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += 2 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.trusted_vault_debug_info_);
    }
    // optional .sync_pb.CrossUserSharingPublicKey cross_user_sharing_public_key = 53;
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      total_size += 2 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.cross_user_sharing_public_key_);
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x00001e00U)) {
    // optional int32 custom_passphrase_key_derivation_method = 45 [default = 0];
    if (CheckHasBit(cached_has_bits, 0x00000200U)) {
      total_size += 2 + ::_pbi::WireFormatLite::Int32Size(
                                      this_._internal_custom_passphrase_key_derivation_method());
    }
    // optional int64 keystore_migration_time = 32;
    if (CheckHasBit(cached_has_bits, 0x00000400U)) {
      total_size += 2 + ::_pbi::WireFormatLite::Int64Size(
                                      this_._internal_keystore_migration_time());
    }
    // optional int64 custom_passphrase_time = 33;
    if (CheckHasBit(cached_has_bits, 0x00000800U)) {
      total_size += 2 + ::_pbi::WireFormatLite::Int64Size(
                                      this_._internal_custom_passphrase_time());
    }
    // optional int32 passphrase_type = 30 [default = 1];
    if (CheckHasBit(cached_has_bits, 0x00001000U)) {
      total_size += 2 + ::_pbi::WireFormatLite::Int32Size(
                                      this_._internal_passphrase_type());
    }
  }
  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 NigoriSpecifics::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<NigoriSpecifics*>(&to_msg);
  auto& from = static_cast<const NigoriSpecifics&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:sync_pb.NigoriSpecifics)
  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)) {
      _this->_internal_set_custom_passphrase_key_derivation_salt(from._internal_custom_passphrase_key_derivation_salt());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ABSL_DCHECK(from._impl_.encryption_keybag_ != nullptr);
      if (_this->_impl_.encryption_keybag_ == nullptr) {
        _this->_impl_.encryption_keybag_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.encryption_keybag_);
      } else {
        _this->_impl_.encryption_keybag_->MergeFrom(*from._impl_.encryption_keybag_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      ABSL_DCHECK(from._impl_.keystore_decryptor_token_ != nullptr);
      if (_this->_impl_.keystore_decryptor_token_ == nullptr) {
        _this->_impl_.keystore_decryptor_token_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.keystore_decryptor_token_);
      } else {
        _this->_impl_.keystore_decryptor_token_->MergeFrom(*from._impl_.keystore_decryptor_token_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      ABSL_DCHECK(from._impl_.trusted_vault_debug_info_ != nullptr);
      if (_this->_impl_.trusted_vault_debug_info_ == nullptr) {
        _this->_impl_.trusted_vault_debug_info_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.trusted_vault_debug_info_);
      } else {
        _this->_impl_.trusted_vault_debug_info_->MergeFrom(*from._impl_.trusted_vault_debug_info_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      ABSL_DCHECK(from._impl_.cross_user_sharing_public_key_ != nullptr);
      if (_this->_impl_.cross_user_sharing_public_key_ == nullptr) {
        _this->_impl_.cross_user_sharing_public_key_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.cross_user_sharing_public_key_);
      } else {
        _this->_impl_.cross_user_sharing_public_key_->MergeFrom(*from._impl_.cross_user_sharing_public_key_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      _this->_impl_.keybag_is_frozen_ = from._impl_.keybag_is_frozen_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      _this->_impl_.encrypt_everything_ = from._impl_.encrypt_everything_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      _this->_impl_.sync_tab_favicons_ = from._impl_.sync_tab_favicons_;
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x00001f00U)) {
    if (CheckHasBit(cached_has_bits, 0x00000100U)) {
      _this->_impl_.server_only_was_missing_keystore_migration_time_ = from._impl_.server_only_was_missing_keystore_migration_time_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000200U)) {
      _this->_impl_.custom_passphrase_key_derivation_method_ = from._impl_.custom_passphrase_key_derivation_method_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000400U)) {
      _this->_impl_.keystore_migration_time_ = from._impl_.keystore_migration_time_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000800U)) {
      _this->_impl_.custom_passphrase_time_ = from._impl_.custom_passphrase_time_;
    }
    if (CheckHasBit(cached_has_bits, 0x00001000U)) {
      _this->_impl_.passphrase_type_ = from._impl_.passphrase_type_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

void NigoriSpecifics::CopyFrom(const NigoriSpecifics& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:sync_pb.NigoriSpecifics)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


void NigoriSpecifics::InternalSwap(NigoriSpecifics* 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_.custom_passphrase_key_derivation_salt_, &other->_impl_.custom_passphrase_key_derivation_salt_, arena);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(NigoriSpecifics, _impl_.passphrase_type_)
      + sizeof(NigoriSpecifics::_impl_.passphrase_type_)
      - PROTOBUF_FIELD_OFFSET(NigoriSpecifics, _impl_.encryption_keybag_)>(
          reinterpret_cast<char*>(&_impl_.encryption_keybag_),
          reinterpret_cast<char*>(&other->_impl_.encryption_keybag_));
}

// @@protoc_insertion_point(namespace_scope)
}  // namespace sync_pb
namespace google {
namespace protobuf {
}  // namespace protobuf
}  // namespace google
// @@protoc_insertion_point(global_scope)
#include "google/protobuf/port_undef.inc"
