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

#include "client_certificates_database.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 client_certificates_pb {
class PrivateKey::_Internal {
 public:
  using HasBits = decltype(::std::declval<PrivateKey>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
      8 * PROTOBUF_FIELD_OFFSET(PrivateKey, _impl_._has_bits_);
};

constexpr PrivateKey::ParseTableT_ PrivateKey::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(PrivateKey, _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<::client_certificates_pb::PrivateKey>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // optional bytes wrapped_key = 2;
      {::_pbi::TcParser::FastBS1,
       {18, 0, 0,
        PROTOBUF_FIELD_OFFSET(PrivateKey, _impl_.wrapped_key_)}},
      // optional .client_certificates_pb.PrivateKey.PrivateKeySource source = 1;
      {::_pbi::TcParser::FastV32S1,
       {8, 1, 0,
        PROTOBUF_FIELD_OFFSET(PrivateKey, _impl_.source_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional .client_certificates_pb.PrivateKey.PrivateKeySource source = 1;
      {PROTOBUF_FIELD_OFFSET(PrivateKey, _impl_.source_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
      // optional bytes wrapped_key = 2;
      {PROTOBUF_FIELD_OFFSET(PrivateKey, _impl_.wrapped_key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
    }},
    // no aux_entries
    {{
    }},
  };
}


inline constexpr PrivateKey::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        wrapped_key_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        source_{static_cast< ::client_certificates_pb::PrivateKey_PrivateKeySource >(0)} {}

template <typename>
constexpr PrivateKey::PrivateKey(::_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 PrivateKey::PlacementNew_(
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
  return ::new (mem) PrivateKey(arena);
}
constexpr auto PrivateKey::InternalNewImpl_() {
  return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(PrivateKey), alignof(PrivateKey));
}
constexpr auto PrivateKey::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
          &PrivateKey::MergeImpl,
          ::google::protobuf::MessageLite::GetNewImpl<PrivateKey>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
          &PrivateKey::SharedDtor,
          ::google::protobuf::MessageLite::GetClearImpl<PrivateKey>(), &PrivateKey::ByteSizeLong,
              &PrivateKey::_InternalSerialize,
#endif  // PROTOBUF_CUSTOM_VTABLE
          PROTOBUF_FIELD_OFFSET(PrivateKey, _impl_._cached_size_),
          true,
      },
      "client_certificates_pb.PrivateKey",
  };
}
struct PrivateKeyGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
  constexpr PrivateKeyGlobalsTypeInternal()
      :
#ifndef PROTOBUF_MESSAGE_GLOBALS
        _default(::_pbi::ConstantInitialized{},
                 PrivateKey_class_data_.base())
#else   // !PROTOBUF_MESSAGE_GLOBALS
        MessageGlobalsBase(PrivateKey::InternalGenerateClassData_(
            _default, &PrivateKey_globals_._table.header)),
        _default(::_pbi::ConstantInitialized{}, GetClassData()),
        _table(::_pbi::PrivateAccess::GenerateParseTable<PrivateKey>(
            GetClassData()))
#endif  // PROTOBUF_MESSAGE_GLOBALS
  {
  }
  ~PrivateKeyGlobalsTypeInternal() {}
  union {
    alignas(::_pbi::kMaxMessageAlignment) PrivateKey _default;
  };
#ifdef PROTOBUF_MESSAGE_GLOBALS
  decltype(::_pbi::PrivateAccess::GenerateParseTable<PrivateKey>(
      ::std::declval<const ::_pbi::ClassData*>())) _table;
#endif
};
#ifdef PROTOBUF_MESSAGE_GLOBALS
static_assert(PROTOBUF_FIELD_OFFSET(PrivateKeyGlobalsTypeInternal, _default) ==
              ::_pbi::MessageGlobalsBase::OffsetToDefault());
#endif  // PROTOBUF_MESSAGE_GLOBALS

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

constexpr ClientIdentity::ParseTableT_ ClientIdentity::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(ClientIdentity, _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
      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<::client_certificates_pb::ClientIdentity>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // optional .client_certificates_pb.PrivateKey private_key = 2;
      {::_pbi::TcParser::FastMtS1,
       {18, 1, 0,
        PROTOBUF_FIELD_OFFSET(ClientIdentity, _impl_.private_key_)}},
      // optional bytes certificate = 1;
      {::_pbi::TcParser::FastBS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(ClientIdentity, _impl_.certificate_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional bytes certificate = 1;
      {PROTOBUF_FIELD_OFFSET(ClientIdentity, _impl_.certificate_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional .client_certificates_pb.PrivateKey private_key = 2;
      {PROTOBUF_FIELD_OFFSET(ClientIdentity, _impl_.private_key_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::client_certificates_pb::PrivateKey>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::client_certificates_pb::PrivateKey_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr ClientIdentity::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        certificate_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        private_key_{nullptr} {}

template <typename>
constexpr ClientIdentity::ClientIdentity(::_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 ClientIdentity::PlacementNew_(
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
  return ::new (mem) ClientIdentity(arena);
}
constexpr auto ClientIdentity::InternalNewImpl_() {
  return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ClientIdentity), alignof(ClientIdentity));
}
constexpr auto ClientIdentity::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
          &ClientIdentity::MergeImpl,
          ::google::protobuf::MessageLite::GetNewImpl<ClientIdentity>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
          &ClientIdentity::SharedDtor,
          ::google::protobuf::MessageLite::GetClearImpl<ClientIdentity>(), &ClientIdentity::ByteSizeLong,
              &ClientIdentity::_InternalSerialize,
#endif  // PROTOBUF_CUSTOM_VTABLE
          PROTOBUF_FIELD_OFFSET(ClientIdentity, _impl_._cached_size_),
          true,
      },
      "client_certificates_pb.ClientIdentity",
  };
}
struct ClientIdentityGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
  constexpr ClientIdentityGlobalsTypeInternal()
      :
#ifndef PROTOBUF_MESSAGE_GLOBALS
        _default(::_pbi::ConstantInitialized{},
                 ClientIdentity_class_data_.base())
#else   // !PROTOBUF_MESSAGE_GLOBALS
        MessageGlobalsBase(ClientIdentity::InternalGenerateClassData_(
            _default, &ClientIdentity_globals_._table.header)),
        _default(::_pbi::ConstantInitialized{}, GetClassData()),
        _table(::_pbi::PrivateAccess::GenerateParseTable<ClientIdentity>(
            GetClassData()))
#endif  // PROTOBUF_MESSAGE_GLOBALS
  {
  }
  ~ClientIdentityGlobalsTypeInternal() {}
  union {
    alignas(::_pbi::kMaxMessageAlignment) ClientIdentity _default;
  };
#ifdef PROTOBUF_MESSAGE_GLOBALS
  decltype(::_pbi::PrivateAccess::GenerateParseTable<ClientIdentity>(
      ::std::declval<const ::_pbi::ClassData*>())) _table;
#endif
};
#ifdef PROTOBUF_MESSAGE_GLOBALS
static_assert(PROTOBUF_FIELD_OFFSET(ClientIdentityGlobalsTypeInternal, _default) ==
              ::_pbi::MessageGlobalsBase::OffsetToDefault());
#endif  // PROTOBUF_MESSAGE_GLOBALS

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST ClientIdentityGlobalsTypeInternal ClientIdentity_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* ClientIdentity_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return ClientIdentity_globals_.GetClassData();
#else
  return ClientIdentity_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
}  // namespace client_certificates_pb
namespace client_certificates_pb {
PROTOBUF_CONSTINIT const uint32_t PrivateKey_PrivateKeySource_internal_data_[] = {
    458752u, 0u, };
static const char PrivateKey_PrivateKeySource_names[] = {
    "PRIVATE_ANDROID_KEY"
    "PRIVATE_CHROME_OS_HW_KEY"
    "PRIVATE_CHROME_OS_SW_KEY"
    "PRIVATE_KEY_SOURCE_UNSPECIFIED"
    "PRIVATE_OS_SOFTWARE_KEY"
    "PRIVATE_SOFTWARE_KEY"
    "PRIVATE_UNEXPORTABLE_KEY"
};

static const ::google::protobuf::internal::EnumEntry PrivateKey_PrivateKeySource_entries[] = {
    {{&PrivateKey_PrivateKeySource_names[0], 19}, 4},
    {{&PrivateKey_PrivateKeySource_names[19], 24}, 5},
    {{&PrivateKey_PrivateKeySource_names[43], 24}, 6},
    {{&PrivateKey_PrivateKeySource_names[67], 30}, 0},
    {{&PrivateKey_PrivateKeySource_names[97], 23}, 3},
    {{&PrivateKey_PrivateKeySource_names[120], 20}, 2},
    {{&PrivateKey_PrivateKeySource_names[140], 24}, 1},
};

static const int PrivateKey_PrivateKeySource_entries_by_number[] = {
    3,  // 0 -> PRIVATE_KEY_SOURCE_UNSPECIFIED
    6,  // 1 -> PRIVATE_UNEXPORTABLE_KEY
    5,  // 2 -> PRIVATE_SOFTWARE_KEY
    4,  // 3 -> PRIVATE_OS_SOFTWARE_KEY
    0,  // 4 -> PRIVATE_ANDROID_KEY
    1,  // 5 -> PRIVATE_CHROME_OS_HW_KEY
    2,  // 6 -> PRIVATE_CHROME_OS_SW_KEY
};

bool PrivateKey_PrivateKeySource_Parse(::absl::string_view name,
                                  PrivateKey_PrivateKeySource* PROTOBUF_NONNULL value) {
  int int_value;
  bool success = ::google::protobuf::internal::LookUpEnumValue(
      PrivateKey_PrivateKeySource_entries, 7, name, &int_value);
  if (success) {
    *value = static_cast<PrivateKey_PrivateKeySource>(int_value);
  }
  return success;
}
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
    PrivateKey_PrivateKeySource_strings[7] = {};

const ::std::string& PrivateKey_PrivateKeySource_Name(PrivateKey_PrivateKeySource value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      PrivateKey_PrivateKeySource_entries, PrivateKey_PrivateKeySource_entries_by_number, 7,
      PrivateKey_PrivateKeySource_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(PrivateKey_PrivateKeySource_entries,
                                  PrivateKey_PrivateKeySource_entries_by_number,
                                  7, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : PrivateKey_PrivateKeySource_strings[idx].get();
}
// ===================================================================

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

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

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

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite PrivateKey_class_data_ =
    PrivateKey::InternalGenerateClassData_(PrivateKey_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
PrivateKey::GetClassData() const {
  return PrivateKey_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
PrivateKey::GetClassData() const {
  return PrivateKey_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const PrivateKey::ParseTableT_
    PrivateKey::_table_ =
        PrivateKey::InternalGenerateParseTable_(PrivateKey_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void PrivateKey::Clear() {
// @@protoc_insertion_point(message_clear_start:client_certificates_pb.PrivateKey)
  ::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_.wrapped_key_.ClearNonDefaultToEmpty();
  }
  _impl_.source_ = 0;
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // optional .client_certificates_pb.PrivateKey.PrivateKeySource source = 1;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        1, this_._internal_source(), target);
  }

  // optional bytes wrapped_key = 2;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    const ::std::string& _s = this_._internal_wrapped_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:client_certificates_pb.PrivateKey)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t PrivateKey::ByteSizeLong(const MessageLite& base) {
  const PrivateKey& this_ = static_cast<const PrivateKey&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t PrivateKey::ByteSizeLong() const {
  const PrivateKey& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:client_certificates_pb.PrivateKey)
  ::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 wrapped_key = 2;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
                                      this_._internal_wrapped_key());
    }
    // optional .client_certificates_pb.PrivateKey.PrivateKeySource source = 1;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_source());
    }
  }
  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 PrivateKey::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<PrivateKey*>(&to_msg);
  auto& from = static_cast<const PrivateKey&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:client_certificates_pb.PrivateKey)
  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_wrapped_key(from._internal_wrapped_key());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.source_ = from._impl_.source_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


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

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

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

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  ClientIdentity* 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_.private_key_ = (CheckHasBit(cached_has_bits, 0x00000002U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.private_key_)
                : nullptr;

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite ClientIdentity_class_data_ =
    ClientIdentity::InternalGenerateClassData_(ClientIdentity_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
ClientIdentity::GetClassData() const {
  return ClientIdentity_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
ClientIdentity::GetClassData() const {
  return ClientIdentity_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ClientIdentity::ParseTableT_
    ClientIdentity::_table_ =
        ClientIdentity::InternalGenerateParseTable_(ClientIdentity_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void ClientIdentity::Clear() {
// @@protoc_insertion_point(message_clear_start:client_certificates_pb.ClientIdentity)
  ::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_.certificate_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ABSL_DCHECK(_impl_.private_key_ != nullptr);
      _impl_.private_key_->Clear();
    }
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // optional bytes certificate = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    const ::std::string& _s = this_._internal_certificate();
    target = stream->WriteBytesMaybeAliased(1, _s, target);
  }

  // optional .client_certificates_pb.PrivateKey private_key = 2;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        2, *this_._impl_.private_key_, this_._impl_.private_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:client_certificates_pb.ClientIdentity)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t ClientIdentity::ByteSizeLong(const MessageLite& base) {
  const ClientIdentity& this_ = static_cast<const ClientIdentity&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t ClientIdentity::ByteSizeLong() const {
  const ClientIdentity& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:client_certificates_pb.ClientIdentity)
  ::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 certificate = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
                                      this_._internal_certificate());
    }
    // optional .client_certificates_pb.PrivateKey private_key = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.private_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 ClientIdentity::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<ClientIdentity*>(&to_msg);
  auto& from = static_cast<const ClientIdentity&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:client_certificates_pb.ClientIdentity)
  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_certificate(from._internal_certificate());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ABSL_DCHECK(from._impl_.private_key_ != nullptr);
      if (_this->_impl_.private_key_ == nullptr) {
        _this->_impl_.private_key_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.private_key_);
      } else {
        _this->_impl_.private_key_->MergeFrom(*from._impl_.private_key_);
      }
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


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

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