// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: keyapis/jwks/v1/keyapis_jwks_key_v1.proto

#include "keyapis/jwks/v1/keyapis_jwks_key_v1.pb.h"

#include <algorithm>
#include "google/protobuf/io/coded_stream.h"
#include "google/protobuf/extension_set.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 = ::PROTOBUF_NAMESPACE_ID;
namespace _pbi = ::PROTOBUF_NAMESPACE_ID::internal;
namespace keyapis {
namespace jwks {
namespace v1 {
template <typename>
PROTOBUF_CONSTEXPR KeyInfo_PublicKey::KeyInfo_PublicKey(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.x5c_)*/{}
  , /*decltype(_impl_.use_)*/ {
    &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  }

  , /*decltype(_impl_.kty_)*/ {
    &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  }

  , /*decltype(_impl_.kid_)*/ {
    &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  }

  , /*decltype(_impl_.alg_)*/ {
    &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  }

  , /*decltype(_impl_.n_)*/ {
    &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  }

  , /*decltype(_impl_.e_)*/ {
    &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  }

  , /*decltype(_impl_._cached_size_)*/{}} {}
struct KeyInfo_PublicKeyDefaultTypeInternal {
  PROTOBUF_CONSTEXPR KeyInfo_PublicKeyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~KeyInfo_PublicKeyDefaultTypeInternal() {}
  union {
    KeyInfo_PublicKey _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KeyInfo_PublicKeyDefaultTypeInternal _KeyInfo_PublicKey_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR KeyInfo_SavingError_KeyAlreadyExists::KeyInfo_SavingError_KeyAlreadyExists(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_._cached_size_)*/{}} {}
struct KeyInfo_SavingError_KeyAlreadyExistsDefaultTypeInternal {
  PROTOBUF_CONSTEXPR KeyInfo_SavingError_KeyAlreadyExistsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~KeyInfo_SavingError_KeyAlreadyExistsDefaultTypeInternal() {}
  union {
    KeyInfo_SavingError_KeyAlreadyExists _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KeyInfo_SavingError_KeyAlreadyExistsDefaultTypeInternal _KeyInfo_SavingError_KeyAlreadyExists_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR KeyInfo_SavingError::KeyInfo_SavingError(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.reason_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_._oneof_case_)*/{}} {}
struct KeyInfo_SavingErrorDefaultTypeInternal {
  PROTOBUF_CONSTEXPR KeyInfo_SavingErrorDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~KeyInfo_SavingErrorDefaultTypeInternal() {}
  union {
    KeyInfo_SavingError _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KeyInfo_SavingErrorDefaultTypeInternal _KeyInfo_SavingError_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR KeyInfo::KeyInfo(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_._has_bits_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_.id_)*/ {
    &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  }

  , /*decltype(_impl_.public_key_)*/nullptr
  , /*decltype(_impl_.created_at_)*/nullptr} {}
struct KeyInfoDefaultTypeInternal {
  PROTOBUF_CONSTEXPR KeyInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~KeyInfoDefaultTypeInternal() {}
  union {
    KeyInfo _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KeyInfoDefaultTypeInternal _KeyInfo_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR PostKeyRequest::PostKeyRequest(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_._has_bits_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_.data_)*/nullptr} {}
struct PostKeyRequestDefaultTypeInternal {
  PROTOBUF_CONSTEXPR PostKeyRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~PostKeyRequestDefaultTypeInternal() {}
  union {
    PostKeyRequest _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PostKeyRequestDefaultTypeInternal _PostKeyRequest_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR PostKeyResponse_Error::PostKeyResponse_Error(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.reason_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_._oneof_case_)*/{}} {}
struct PostKeyResponse_ErrorDefaultTypeInternal {
  PROTOBUF_CONSTEXPR PostKeyResponse_ErrorDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~PostKeyResponse_ErrorDefaultTypeInternal() {}
  union {
    PostKeyResponse_Error _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PostKeyResponse_ErrorDefaultTypeInternal _PostKeyResponse_Error_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR PostKeyResponse::PostKeyResponse(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.type_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_._oneof_case_)*/{}} {}
struct PostKeyResponseDefaultTypeInternal {
  PROTOBUF_CONSTEXPR PostKeyResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~PostKeyResponseDefaultTypeInternal() {}
  union {
    PostKeyResponse _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PostKeyResponseDefaultTypeInternal _PostKeyResponse_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR DeleteKeyRequest::DeleteKeyRequest(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.id_)*/ {
    &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  }

  , /*decltype(_impl_._cached_size_)*/{}} {}
struct DeleteKeyRequestDefaultTypeInternal {
  PROTOBUF_CONSTEXPR DeleteKeyRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~DeleteKeyRequestDefaultTypeInternal() {}
  union {
    DeleteKeyRequest _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteKeyRequestDefaultTypeInternal _DeleteKeyRequest_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR DeleteKeyResponse_Error::DeleteKeyResponse_Error(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.reason_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_._oneof_case_)*/{}} {}
struct DeleteKeyResponse_ErrorDefaultTypeInternal {
  PROTOBUF_CONSTEXPR DeleteKeyResponse_ErrorDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~DeleteKeyResponse_ErrorDefaultTypeInternal() {}
  union {
    DeleteKeyResponse_Error _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteKeyResponse_ErrorDefaultTypeInternal _DeleteKeyResponse_Error_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR DeleteKeyResponse::DeleteKeyResponse(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.type_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_._oneof_case_)*/{}} {}
struct DeleteKeyResponseDefaultTypeInternal {
  PROTOBUF_CONSTEXPR DeleteKeyResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~DeleteKeyResponseDefaultTypeInternal() {}
  union {
    DeleteKeyResponse _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteKeyResponseDefaultTypeInternal _DeleteKeyResponse_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR GetKeyWellKnownJwksJsonRequest::GetKeyWellKnownJwksJsonRequest(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_._cached_size_)*/{}} {}
struct GetKeyWellKnownJwksJsonRequestDefaultTypeInternal {
  PROTOBUF_CONSTEXPR GetKeyWellKnownJwksJsonRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~GetKeyWellKnownJwksJsonRequestDefaultTypeInternal() {}
  union {
    GetKeyWellKnownJwksJsonRequest _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetKeyWellKnownJwksJsonRequestDefaultTypeInternal _GetKeyWellKnownJwksJsonRequest_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR GetKeyWellKnownJwksJsonResponse::GetKeyWellKnownJwksJsonResponse(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.data_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}} {}
struct GetKeyWellKnownJwksJsonResponseDefaultTypeInternal {
  PROTOBUF_CONSTEXPR GetKeyWellKnownJwksJsonResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~GetKeyWellKnownJwksJsonResponseDefaultTypeInternal() {}
  union {
    GetKeyWellKnownJwksJsonResponse _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetKeyWellKnownJwksJsonResponseDefaultTypeInternal _GetKeyWellKnownJwksJsonResponse_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR ValidationError::ValidationError(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.path_)*/ {
    &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  }

  , /*decltype(_impl_.message_)*/ {
    &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  }

  , /*decltype(_impl_._cached_size_)*/{}} {}
struct ValidationErrorDefaultTypeInternal {
  PROTOBUF_CONSTEXPR ValidationErrorDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~ValidationErrorDefaultTypeInternal() {}
  union {
    ValidationError _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ValidationErrorDefaultTypeInternal _ValidationError_default_instance_;
}  // namespace v1
}  // namespace jwks
}  // namespace keyapis
namespace keyapis {
namespace jwks {
namespace v1 {
// ===================================================================

class KeyInfo_PublicKey::_Internal {
 public:
};

KeyInfo_PublicKey::KeyInfo_PublicKey(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.jwks.v1.KeyInfo.PublicKey)
}
KeyInfo_PublicKey::KeyInfo_PublicKey(const KeyInfo_PublicKey& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  KeyInfo_PublicKey* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_.x5c_){from._impl_.x5c_}
    , decltype(_impl_.use_) {}

    , decltype(_impl_.kty_) {}

    , decltype(_impl_.kid_) {}

    , decltype(_impl_.alg_) {}

    , decltype(_impl_.n_) {}

    , decltype(_impl_.e_) {}

    , /*decltype(_impl_._cached_size_)*/{}};

  _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
  _impl_.use_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.use_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_use().empty()) {
    _this->_impl_.use_.Set(from._internal_use(), _this->GetArenaForAllocation());
  }
  _impl_.kty_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.kty_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_kty().empty()) {
    _this->_impl_.kty_.Set(from._internal_kty(), _this->GetArenaForAllocation());
  }
  _impl_.kid_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.kid_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_kid().empty()) {
    _this->_impl_.kid_.Set(from._internal_kid(), _this->GetArenaForAllocation());
  }
  _impl_.alg_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.alg_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_alg().empty()) {
    _this->_impl_.alg_.Set(from._internal_alg(), _this->GetArenaForAllocation());
  }
  _impl_.n_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.n_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_n().empty()) {
    _this->_impl_.n_.Set(from._internal_n(), _this->GetArenaForAllocation());
  }
  _impl_.e_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.e_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_e().empty()) {
    _this->_impl_.e_.Set(from._internal_e(), _this->GetArenaForAllocation());
  }
  // @@protoc_insertion_point(copy_constructor:keyapis.jwks.v1.KeyInfo.PublicKey)
}

inline void KeyInfo_PublicKey::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      decltype(_impl_.x5c_){arena}
    , decltype(_impl_.use_) {}

    , decltype(_impl_.kty_) {}

    , decltype(_impl_.kid_) {}

    , decltype(_impl_.alg_) {}

    , decltype(_impl_.n_) {}

    , decltype(_impl_.e_) {}

    , /*decltype(_impl_._cached_size_)*/{}
  };
  _impl_.use_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.use_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  _impl_.kty_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.kty_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  _impl_.kid_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.kid_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  _impl_.alg_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.alg_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  _impl_.n_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.n_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  _impl_.e_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.e_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}

KeyInfo_PublicKey::~KeyInfo_PublicKey() {
  // @@protoc_insertion_point(destructor:keyapis.jwks.v1.KeyInfo.PublicKey)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void KeyInfo_PublicKey::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  _internal_mutable_x5c()->~RepeatedPtrField();
  _impl_.use_.Destroy();
  _impl_.kty_.Destroy();
  _impl_.kid_.Destroy();
  _impl_.alg_.Destroy();
  _impl_.n_.Destroy();
  _impl_.e_.Destroy();
}

void KeyInfo_PublicKey::SetCachedSize(int size) const {
  _impl_._cached_size_.Set(size);
}

void KeyInfo_PublicKey::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.jwks.v1.KeyInfo.PublicKey)
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  _internal_mutable_x5c()->Clear();
  _impl_.use_.ClearToEmpty();
  _impl_.kty_.ClearToEmpty();
  _impl_.kid_.ClearToEmpty();
  _impl_.alg_.ClearToEmpty();
  _impl_.n_.ClearToEmpty();
  _impl_.e_.ClearToEmpty();
  _internal_metadata_.Clear<std::string>();
}

const char* KeyInfo_PublicKey::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    ::uint32_t tag;
    ptr = ::_pbi::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // string use = 1 [(.google.api.field_behavior) = REQUIRED];
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
          auto str = _internal_mutable_use();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, nullptr));
        } else {
          goto handle_unusual;
        }
        continue;
      // string kty = 2 [(.google.api.field_behavior) = REQUIRED];
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
          auto str = _internal_mutable_kty();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, nullptr));
        } else {
          goto handle_unusual;
        }
        continue;
      // string kid = 3 [(.google.api.field_behavior) = REQUIRED];
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
          auto str = _internal_mutable_kid();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, nullptr));
        } else {
          goto handle_unusual;
        }
        continue;
      // string alg = 4;
      case 4:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
          auto str = _internal_mutable_alg();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, nullptr));
        } else {
          goto handle_unusual;
        }
        continue;
      // string n = 5 [(.google.api.field_behavior) = REQUIRED];
      case 5:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) {
          auto str = _internal_mutable_n();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, nullptr));
        } else {
          goto handle_unusual;
        }
        continue;
      // string e = 6 [(.google.api.field_behavior) = REQUIRED];
      case 6:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) {
          auto str = _internal_mutable_e();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, nullptr));
        } else {
          goto handle_unusual;
        }
        continue;
      // repeated string x5c = 7;
      case 7:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 58)) {
          ptr -= 1;
          do {
            ptr += 1;
            auto str = _internal_add_x5c();
            ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
            CHK_(ptr);
            CHK_(::_pbi::VerifyUTF8(str, nullptr));
            if (!ctx->DataAvailable(ptr)) break;
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<58>(ptr));
        } else {
          goto handle_unusual;
        }
        continue;
      default:
        goto handle_unusual;
    }  // switch
  handle_unusual:
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<std::string>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

::uint8_t* KeyInfo_PublicKey::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.jwks.v1.KeyInfo.PublicKey)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // string use = 1 [(.google.api.field_behavior) = REQUIRED];
  if (!this->_internal_use().empty()) {
    const std::string& _s = this->_internal_use();
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
        _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "keyapis.jwks.v1.KeyInfo.PublicKey.use");
    target = stream->WriteStringMaybeAliased(1, _s, target);
  }

  // string kty = 2 [(.google.api.field_behavior) = REQUIRED];
  if (!this->_internal_kty().empty()) {
    const std::string& _s = this->_internal_kty();
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
        _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "keyapis.jwks.v1.KeyInfo.PublicKey.kty");
    target = stream->WriteStringMaybeAliased(2, _s, target);
  }

  // string kid = 3 [(.google.api.field_behavior) = REQUIRED];
  if (!this->_internal_kid().empty()) {
    const std::string& _s = this->_internal_kid();
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
        _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "keyapis.jwks.v1.KeyInfo.PublicKey.kid");
    target = stream->WriteStringMaybeAliased(3, _s, target);
  }

  // string alg = 4;
  if (!this->_internal_alg().empty()) {
    const std::string& _s = this->_internal_alg();
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
        _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "keyapis.jwks.v1.KeyInfo.PublicKey.alg");
    target = stream->WriteStringMaybeAliased(4, _s, target);
  }

  // string n = 5 [(.google.api.field_behavior) = REQUIRED];
  if (!this->_internal_n().empty()) {
    const std::string& _s = this->_internal_n();
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
        _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "keyapis.jwks.v1.KeyInfo.PublicKey.n");
    target = stream->WriteStringMaybeAliased(5, _s, target);
  }

  // string e = 6 [(.google.api.field_behavior) = REQUIRED];
  if (!this->_internal_e().empty()) {
    const std::string& _s = this->_internal_e();
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
        _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "keyapis.jwks.v1.KeyInfo.PublicKey.e");
    target = stream->WriteStringMaybeAliased(6, _s, target);
  }

  // repeated string x5c = 7;
  for (int i = 0, n = this->_internal_x5c_size(); i < n; ++i) {
    const auto& s = this->_internal_x5c(i);
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
        s.data(), static_cast<int>(s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "keyapis.jwks.v1.KeyInfo.PublicKey.x5c");
    target = stream->WriteString(7, s, target);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
        static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:keyapis.jwks.v1.KeyInfo.PublicKey)
  return target;
}

::size_t KeyInfo_PublicKey::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.jwks.v1.KeyInfo.PublicKey)
  ::size_t total_size = 0;

  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  // repeated string x5c = 7;
  total_size += 1 * ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_internal_x5c().size());
  for (int i = 0, n = _internal_x5c().size(); i < n; ++i) {
    total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
        _internal_x5c().Get(i));
  }

  // string use = 1 [(.google.api.field_behavior) = REQUIRED];
  if (!this->_internal_use().empty()) {
    total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
                                    this->_internal_use());
  }

  // string kty = 2 [(.google.api.field_behavior) = REQUIRED];
  if (!this->_internal_kty().empty()) {
    total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
                                    this->_internal_kty());
  }

  // string kid = 3 [(.google.api.field_behavior) = REQUIRED];
  if (!this->_internal_kid().empty()) {
    total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
                                    this->_internal_kid());
  }

  // string alg = 4;
  if (!this->_internal_alg().empty()) {
    total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
                                    this->_internal_alg());
  }

  // string n = 5 [(.google.api.field_behavior) = REQUIRED];
  if (!this->_internal_n().empty()) {
    total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
                                    this->_internal_n());
  }

  // string e = 6 [(.google.api.field_behavior) = REQUIRED];
  if (!this->_internal_e().empty()) {
    total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
                                    this->_internal_e());
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
  }
  int cached_size = ::_pbi::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void KeyInfo_PublicKey::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const KeyInfo_PublicKey*>(
      &from));
}

void KeyInfo_PublicKey::MergeFrom(const KeyInfo_PublicKey& from) {
  KeyInfo_PublicKey* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.jwks.v1.KeyInfo.PublicKey)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  _this->_internal_mutable_x5c()->MergeFrom(from._internal_x5c());
  if (!from._internal_use().empty()) {
    _this->_internal_set_use(from._internal_use());
  }
  if (!from._internal_kty().empty()) {
    _this->_internal_set_kty(from._internal_kty());
  }
  if (!from._internal_kid().empty()) {
    _this->_internal_set_kid(from._internal_kid());
  }
  if (!from._internal_alg().empty()) {
    _this->_internal_set_alg(from._internal_alg());
  }
  if (!from._internal_n().empty()) {
    _this->_internal_set_n(from._internal_n());
  }
  if (!from._internal_e().empty()) {
    _this->_internal_set_e(from._internal_e());
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

void KeyInfo_PublicKey::CopyFrom(const KeyInfo_PublicKey& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:keyapis.jwks.v1.KeyInfo.PublicKey)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool KeyInfo_PublicKey::IsInitialized() const {
  return true;
}

void KeyInfo_PublicKey::InternalSwap(KeyInfo_PublicKey* other) {
  using std::swap;
  auto* lhs_arena = GetArenaForAllocation();
  auto* rhs_arena = other->GetArenaForAllocation();
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  _internal_mutable_x5c()->InternalSwap(
      other->_internal_mutable_x5c());
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.use_, lhs_arena,
                                       &other->_impl_.use_, rhs_arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.kty_, lhs_arena,
                                       &other->_impl_.kty_, rhs_arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.kid_, lhs_arena,
                                       &other->_impl_.kid_, rhs_arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.alg_, lhs_arena,
                                       &other->_impl_.alg_, rhs_arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.n_, lhs_arena,
                                       &other->_impl_.n_, rhs_arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.e_, lhs_arena,
                                       &other->_impl_.e_, rhs_arena);
}

std::string KeyInfo_PublicKey::GetTypeName() const {
  return "keyapis.jwks.v1.KeyInfo.PublicKey";
}

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

class KeyInfo_SavingError_KeyAlreadyExists::_Internal {
 public:
};

KeyInfo_SavingError_KeyAlreadyExists::KeyInfo_SavingError_KeyAlreadyExists(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.jwks.v1.KeyInfo.SavingError.KeyAlreadyExists)
}
KeyInfo_SavingError_KeyAlreadyExists::KeyInfo_SavingError_KeyAlreadyExists(const KeyInfo_SavingError_KeyAlreadyExists& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _impl_(from._impl_) {
  _internal_metadata_.MergeFrom<std::string>(
      from._internal_metadata_);
  // @@protoc_insertion_point(copy_constructor:keyapis.jwks.v1.KeyInfo.SavingError.KeyAlreadyExists)
}

inline void KeyInfo_SavingError_KeyAlreadyExists::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      /*decltype(_impl_._cached_size_)*/{}
  };
}

KeyInfo_SavingError_KeyAlreadyExists::~KeyInfo_SavingError_KeyAlreadyExists() {
  // @@protoc_insertion_point(destructor:keyapis.jwks.v1.KeyInfo.SavingError.KeyAlreadyExists)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void KeyInfo_SavingError_KeyAlreadyExists::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
}

void KeyInfo_SavingError_KeyAlreadyExists::SetCachedSize(int size) const {
  _impl_._cached_size_.Set(size);
}

void KeyInfo_SavingError_KeyAlreadyExists::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.jwks.v1.KeyInfo.SavingError.KeyAlreadyExists)
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  _internal_metadata_.Clear<std::string>();
}

const char* KeyInfo_SavingError_KeyAlreadyExists::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    ::uint32_t tag;
    ptr = ::_pbi::ReadTag(ptr, &tag);
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<std::string>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

::uint8_t* KeyInfo_SavingError_KeyAlreadyExists::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.jwks.v1.KeyInfo.SavingError.KeyAlreadyExists)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
        static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:keyapis.jwks.v1.KeyInfo.SavingError.KeyAlreadyExists)
  return target;
}

::size_t KeyInfo_SavingError_KeyAlreadyExists::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.jwks.v1.KeyInfo.SavingError.KeyAlreadyExists)
  ::size_t total_size = 0;

  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
  }
  int cached_size = ::_pbi::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void KeyInfo_SavingError_KeyAlreadyExists::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const KeyInfo_SavingError_KeyAlreadyExists*>(
      &from));
}

void KeyInfo_SavingError_KeyAlreadyExists::MergeFrom(const KeyInfo_SavingError_KeyAlreadyExists& from) {
  KeyInfo_SavingError_KeyAlreadyExists* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.jwks.v1.KeyInfo.SavingError.KeyAlreadyExists)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

void KeyInfo_SavingError_KeyAlreadyExists::CopyFrom(const KeyInfo_SavingError_KeyAlreadyExists& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:keyapis.jwks.v1.KeyInfo.SavingError.KeyAlreadyExists)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool KeyInfo_SavingError_KeyAlreadyExists::IsInitialized() const {
  return true;
}

void KeyInfo_SavingError_KeyAlreadyExists::InternalSwap(KeyInfo_SavingError_KeyAlreadyExists* other) {
  using std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
}

std::string KeyInfo_SavingError_KeyAlreadyExists::GetTypeName() const {
  return "keyapis.jwks.v1.KeyInfo.SavingError.KeyAlreadyExists";
}

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

class KeyInfo_SavingError::_Internal {
 public:
  static constexpr ::int32_t kOneofCaseOffset =
    PROTOBUF_FIELD_OFFSET(::keyapis::jwks::v1::KeyInfo_SavingError, _impl_._oneof_case_);
  static const ::keyapis::jwks::v1::KeyInfo_SavingError_KeyAlreadyExists& key_already_exists(const KeyInfo_SavingError* msg);
};

const ::keyapis::jwks::v1::KeyInfo_SavingError_KeyAlreadyExists&
KeyInfo_SavingError::_Internal::key_already_exists(const KeyInfo_SavingError* msg) {
  return *msg->_impl_.reason_.key_already_exists_;
}
void KeyInfo_SavingError::set_allocated_key_already_exists(::keyapis::jwks::v1::KeyInfo_SavingError_KeyAlreadyExists* key_already_exists) {
  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  clear_reason();
  if (key_already_exists) {
    ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
      ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(key_already_exists);
    if (message_arena != submessage_arena) {
      key_already_exists = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
          message_arena, key_already_exists, submessage_arena);
    }
    set_has_key_already_exists();
    _impl_.reason_.key_already_exists_ = key_already_exists;
  }
  // @@protoc_insertion_point(field_set_allocated:keyapis.jwks.v1.KeyInfo.SavingError.key_already_exists)
}
KeyInfo_SavingError::KeyInfo_SavingError(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.jwks.v1.KeyInfo.SavingError)
}
KeyInfo_SavingError::KeyInfo_SavingError(const KeyInfo_SavingError& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  KeyInfo_SavingError* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_.reason_){}
    , /*decltype(_impl_._cached_size_)*/{}
    , /*decltype(_impl_._oneof_case_)*/{}};

  _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
  clear_has_reason();
  switch (from.reason_case()) {
    case kKeyAlreadyExists: {
      _this->_internal_mutable_key_already_exists()->::keyapis::jwks::v1::KeyInfo_SavingError_KeyAlreadyExists::MergeFrom(
          from._internal_key_already_exists());
      break;
    }
    case REASON_NOT_SET: {
      break;
    }
  }
  // @@protoc_insertion_point(copy_constructor:keyapis.jwks.v1.KeyInfo.SavingError)
}

inline void KeyInfo_SavingError::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      decltype(_impl_.reason_){}
    , /*decltype(_impl_._cached_size_)*/{}
    , /*decltype(_impl_._oneof_case_)*/{}
  };
  clear_has_reason();
}

KeyInfo_SavingError::~KeyInfo_SavingError() {
  // @@protoc_insertion_point(destructor:keyapis.jwks.v1.KeyInfo.SavingError)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void KeyInfo_SavingError::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  if (has_reason()) {
    clear_reason();
  }
}

void KeyInfo_SavingError::SetCachedSize(int size) const {
  _impl_._cached_size_.Set(size);
}

void KeyInfo_SavingError::clear_reason() {
// @@protoc_insertion_point(one_of_clear_start:keyapis.jwks.v1.KeyInfo.SavingError)
  switch (reason_case()) {
    case kKeyAlreadyExists: {
      if (GetArenaForAllocation() == nullptr) {
        delete _impl_.reason_.key_already_exists_;
      }
      break;
    }
    case REASON_NOT_SET: {
      break;
    }
  }
  _impl_._oneof_case_[0] = REASON_NOT_SET;
}


void KeyInfo_SavingError::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.jwks.v1.KeyInfo.SavingError)
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  clear_reason();
  _internal_metadata_.Clear<std::string>();
}

const char* KeyInfo_SavingError::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    ::uint32_t tag;
    ptr = ::_pbi::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // .keyapis.jwks.v1.KeyInfo.SavingError.KeyAlreadyExists key_already_exists = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
          ptr = ctx->ParseMessage(_internal_mutable_key_already_exists(), ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      default:
        goto handle_unusual;
    }  // switch
  handle_unusual:
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<std::string>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

::uint8_t* KeyInfo_SavingError::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.jwks.v1.KeyInfo.SavingError)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // .keyapis.jwks.v1.KeyInfo.SavingError.KeyAlreadyExists key_already_exists = 1;
  if (reason_case() == kKeyAlreadyExists) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(1, _Internal::key_already_exists(this),
        _Internal::key_already_exists(this).GetCachedSize(), target, stream);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
        static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:keyapis.jwks.v1.KeyInfo.SavingError)
  return target;
}

::size_t KeyInfo_SavingError::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.jwks.v1.KeyInfo.SavingError)
  ::size_t total_size = 0;

  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  switch (reason_case()) {
    // .keyapis.jwks.v1.KeyInfo.SavingError.KeyAlreadyExists key_already_exists = 1;
    case kKeyAlreadyExists: {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.reason_.key_already_exists_);
      break;
    }
    case REASON_NOT_SET: {
      break;
    }
  }
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
  }
  int cached_size = ::_pbi::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void KeyInfo_SavingError::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const KeyInfo_SavingError*>(
      &from));
}

void KeyInfo_SavingError::MergeFrom(const KeyInfo_SavingError& from) {
  KeyInfo_SavingError* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.jwks.v1.KeyInfo.SavingError)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  switch (from.reason_case()) {
    case kKeyAlreadyExists: {
      _this->_internal_mutable_key_already_exists()->::keyapis::jwks::v1::KeyInfo_SavingError_KeyAlreadyExists::MergeFrom(
          from._internal_key_already_exists());
      break;
    }
    case REASON_NOT_SET: {
      break;
    }
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

void KeyInfo_SavingError::CopyFrom(const KeyInfo_SavingError& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:keyapis.jwks.v1.KeyInfo.SavingError)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool KeyInfo_SavingError::IsInitialized() const {
  return true;
}

void KeyInfo_SavingError::InternalSwap(KeyInfo_SavingError* other) {
  using std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_.reason_, other->_impl_.reason_);
  swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
}

std::string KeyInfo_SavingError::GetTypeName() const {
  return "keyapis.jwks.v1.KeyInfo.SavingError";
}

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

class KeyInfo::_Internal {
 public:
  using HasBits = decltype(std::declval<KeyInfo>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
    8 * PROTOBUF_FIELD_OFFSET(KeyInfo, _impl_._has_bits_);
  static const ::keyapis::jwks::v1::KeyInfo_PublicKey& public_key(const KeyInfo* msg);
  static void set_has_public_key(HasBits* has_bits) {
    (*has_bits)[0] |= 1u;
  }
  static const ::PROTOBUF_NAMESPACE_ID::Timestamp& created_at(const KeyInfo* msg);
  static void set_has_created_at(HasBits* has_bits) {
    (*has_bits)[0] |= 2u;
  }
};

const ::keyapis::jwks::v1::KeyInfo_PublicKey&
KeyInfo::_Internal::public_key(const KeyInfo* msg) {
  return *msg->_impl_.public_key_;
}
const ::PROTOBUF_NAMESPACE_ID::Timestamp&
KeyInfo::_Internal::created_at(const KeyInfo* msg) {
  return *msg->_impl_.created_at_;
}
void KeyInfo::clear_created_at() {
  if (_impl_.created_at_ != nullptr) _impl_.created_at_->Clear();
  _impl_._has_bits_[0] &= ~0x00000002u;
}
KeyInfo::KeyInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.jwks.v1.KeyInfo)
}
KeyInfo::KeyInfo(const KeyInfo& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  KeyInfo* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_._has_bits_){from._impl_._has_bits_}
    , /*decltype(_impl_._cached_size_)*/{}
    , decltype(_impl_.id_) {}

    , decltype(_impl_.public_key_){nullptr}
    , decltype(_impl_.created_at_){nullptr}};

  _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
  _impl_.id_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.id_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_id().empty()) {
    _this->_impl_.id_.Set(from._internal_id(), _this->GetArenaForAllocation());
  }
  if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
    _this->_impl_.public_key_ = new ::keyapis::jwks::v1::KeyInfo_PublicKey(*from._impl_.public_key_);
  }
  if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) {
    _this->_impl_.created_at_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from._impl_.created_at_);
  }
  // @@protoc_insertion_point(copy_constructor:keyapis.jwks.v1.KeyInfo)
}

inline void KeyInfo::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      decltype(_impl_._has_bits_){}
    , /*decltype(_impl_._cached_size_)*/{}
    , decltype(_impl_.id_) {}

    , decltype(_impl_.public_key_){nullptr}
    , decltype(_impl_.created_at_){nullptr}
  };
  _impl_.id_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.id_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}

KeyInfo::~KeyInfo() {
  // @@protoc_insertion_point(destructor:keyapis.jwks.v1.KeyInfo)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void KeyInfo::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  _impl_.id_.Destroy();
  if (this != internal_default_instance()) delete _impl_.public_key_;
  if (this != internal_default_instance()) delete _impl_.created_at_;
}

void KeyInfo::SetCachedSize(int size) const {
  _impl_._cached_size_.Set(size);
}

void KeyInfo::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.jwks.v1.KeyInfo)
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  _impl_.id_.ClearToEmpty();
  cached_has_bits = _impl_._has_bits_[0];
  if (cached_has_bits & 0x00000003u) {
    if (cached_has_bits & 0x00000001u) {
      ABSL_DCHECK(_impl_.public_key_ != nullptr);
      _impl_.public_key_->Clear();
    }
    if (cached_has_bits & 0x00000002u) {
      ABSL_DCHECK(_impl_.created_at_ != nullptr);
      _impl_.created_at_->Clear();
    }
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<std::string>();
}

const char* KeyInfo::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  _Internal::HasBits has_bits{};
  while (!ctx->Done(&ptr)) {
    ::uint32_t tag;
    ptr = ::_pbi::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // string id = 1 [(.google.api.field_behavior) = REQUIRED];
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
          auto str = _internal_mutable_id();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, nullptr));
        } else {
          goto handle_unusual;
        }
        continue;
      // .keyapis.jwks.v1.KeyInfo.PublicKey public_key = 2 [(.google.api.field_behavior) = REQUIRED];
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
          ptr = ctx->ParseMessage(_internal_mutable_public_key(), ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      // .google.protobuf.Timestamp created_at = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
          ptr = ctx->ParseMessage(_internal_mutable_created_at(), ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      default:
        goto handle_unusual;
    }  // switch
  handle_unusual:
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<std::string>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  _impl_._has_bits_.Or(has_bits);
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

::uint8_t* KeyInfo::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.jwks.v1.KeyInfo)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // string id = 1 [(.google.api.field_behavior) = REQUIRED];
  if (!this->_internal_id().empty()) {
    const std::string& _s = this->_internal_id();
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
        _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "keyapis.jwks.v1.KeyInfo.id");
    target = stream->WriteStringMaybeAliased(1, _s, target);
  }

  cached_has_bits = _impl_._has_bits_[0];
  // .keyapis.jwks.v1.KeyInfo.PublicKey public_key = 2 [(.google.api.field_behavior) = REQUIRED];
  if (cached_has_bits & 0x00000001u) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(2, _Internal::public_key(this),
        _Internal::public_key(this).GetCachedSize(), target, stream);
  }

  // .google.protobuf.Timestamp created_at = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
  if (cached_has_bits & 0x00000002u) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(3, _Internal::created_at(this),
        _Internal::created_at(this).GetCachedSize(), target, stream);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
        static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:keyapis.jwks.v1.KeyInfo)
  return target;
}

::size_t KeyInfo::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.jwks.v1.KeyInfo)
  ::size_t total_size = 0;

  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  // string id = 1 [(.google.api.field_behavior) = REQUIRED];
  if (!this->_internal_id().empty()) {
    total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
                                    this->_internal_id());
  }

  cached_has_bits = _impl_._has_bits_[0];
  if (cached_has_bits & 0x00000003u) {
    // .keyapis.jwks.v1.KeyInfo.PublicKey public_key = 2 [(.google.api.field_behavior) = REQUIRED];
    if (cached_has_bits & 0x00000001u) {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.public_key_);
    }

    // .google.protobuf.Timestamp created_at = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    if (cached_has_bits & 0x00000002u) {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.created_at_);
    }

  }
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
  }
  int cached_size = ::_pbi::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void KeyInfo::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const KeyInfo*>(
      &from));
}

void KeyInfo::MergeFrom(const KeyInfo& from) {
  KeyInfo* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.jwks.v1.KeyInfo)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  if (!from._internal_id().empty()) {
    _this->_internal_set_id(from._internal_id());
  }
  cached_has_bits = from._impl_._has_bits_[0];
  if (cached_has_bits & 0x00000003u) {
    if (cached_has_bits & 0x00000001u) {
      _this->_internal_mutable_public_key()->::keyapis::jwks::v1::KeyInfo_PublicKey::MergeFrom(
          from._internal_public_key());
    }
    if (cached_has_bits & 0x00000002u) {
      _this->_internal_mutable_created_at()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(
          from._internal_created_at());
    }
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

void KeyInfo::CopyFrom(const KeyInfo& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:keyapis.jwks.v1.KeyInfo)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool KeyInfo::IsInitialized() const {
  return true;
}

void KeyInfo::InternalSwap(KeyInfo* other) {
  using std::swap;
  auto* lhs_arena = GetArenaForAllocation();
  auto* rhs_arena = other->GetArenaForAllocation();
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, lhs_arena,
                                       &other->_impl_.id_, rhs_arena);
  ::PROTOBUF_NAMESPACE_ID::internal::memswap<
      PROTOBUF_FIELD_OFFSET(KeyInfo, _impl_.created_at_)
      + sizeof(KeyInfo::_impl_.created_at_)
      - PROTOBUF_FIELD_OFFSET(KeyInfo, _impl_.public_key_)>(
          reinterpret_cast<char*>(&_impl_.public_key_),
          reinterpret_cast<char*>(&other->_impl_.public_key_));
}

std::string KeyInfo::GetTypeName() const {
  return "keyapis.jwks.v1.KeyInfo";
}

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

class PostKeyRequest::_Internal {
 public:
  using HasBits = decltype(std::declval<PostKeyRequest>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
    8 * PROTOBUF_FIELD_OFFSET(PostKeyRequest, _impl_._has_bits_);
  static const ::keyapis::jwks::v1::KeyInfo_PublicKey& data(const PostKeyRequest* msg);
  static void set_has_data(HasBits* has_bits) {
    (*has_bits)[0] |= 1u;
  }
};

const ::keyapis::jwks::v1::KeyInfo_PublicKey&
PostKeyRequest::_Internal::data(const PostKeyRequest* msg) {
  return *msg->_impl_.data_;
}
PostKeyRequest::PostKeyRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.jwks.v1.PostKeyRequest)
}
PostKeyRequest::PostKeyRequest(const PostKeyRequest& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  PostKeyRequest* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_._has_bits_){from._impl_._has_bits_}
    , /*decltype(_impl_._cached_size_)*/{}
    , decltype(_impl_.data_){nullptr}};

  _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
  if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
    _this->_impl_.data_ = new ::keyapis::jwks::v1::KeyInfo_PublicKey(*from._impl_.data_);
  }
  // @@protoc_insertion_point(copy_constructor:keyapis.jwks.v1.PostKeyRequest)
}

inline void PostKeyRequest::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      decltype(_impl_._has_bits_){}
    , /*decltype(_impl_._cached_size_)*/{}
    , decltype(_impl_.data_){nullptr}
  };
}

PostKeyRequest::~PostKeyRequest() {
  // @@protoc_insertion_point(destructor:keyapis.jwks.v1.PostKeyRequest)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void PostKeyRequest::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  if (this != internal_default_instance()) delete _impl_.data_;
}

void PostKeyRequest::SetCachedSize(int size) const {
  _impl_._cached_size_.Set(size);
}

void PostKeyRequest::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.jwks.v1.PostKeyRequest)
  ::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 (cached_has_bits & 0x00000001u) {
    ABSL_DCHECK(_impl_.data_ != nullptr);
    _impl_.data_->Clear();
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<std::string>();
}

const char* PostKeyRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  _Internal::HasBits has_bits{};
  while (!ctx->Done(&ptr)) {
    ::uint32_t tag;
    ptr = ::_pbi::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // .keyapis.jwks.v1.KeyInfo.PublicKey data = 1 [(.google.api.field_behavior) = REQUIRED];
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
          ptr = ctx->ParseMessage(_internal_mutable_data(), ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      default:
        goto handle_unusual;
    }  // switch
  handle_unusual:
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<std::string>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  _impl_._has_bits_.Or(has_bits);
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

::uint8_t* PostKeyRequest::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.jwks.v1.PostKeyRequest)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  cached_has_bits = _impl_._has_bits_[0];
  // .keyapis.jwks.v1.KeyInfo.PublicKey data = 1 [(.google.api.field_behavior) = REQUIRED];
  if (cached_has_bits & 0x00000001u) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(1, _Internal::data(this),
        _Internal::data(this).GetCachedSize(), target, stream);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
        static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:keyapis.jwks.v1.PostKeyRequest)
  return target;
}

::size_t PostKeyRequest::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.jwks.v1.PostKeyRequest)
  ::size_t total_size = 0;

  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  // .keyapis.jwks.v1.KeyInfo.PublicKey data = 1 [(.google.api.field_behavior) = REQUIRED];
  cached_has_bits = _impl_._has_bits_[0];
  if (cached_has_bits & 0x00000001u) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
        *_impl_.data_);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
  }
  int cached_size = ::_pbi::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void PostKeyRequest::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const PostKeyRequest*>(
      &from));
}

void PostKeyRequest::MergeFrom(const PostKeyRequest& from) {
  PostKeyRequest* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.jwks.v1.PostKeyRequest)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
    _this->_internal_mutable_data()->::keyapis::jwks::v1::KeyInfo_PublicKey::MergeFrom(
        from._internal_data());
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

void PostKeyRequest::CopyFrom(const PostKeyRequest& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:keyapis.jwks.v1.PostKeyRequest)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool PostKeyRequest::IsInitialized() const {
  return true;
}

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

std::string PostKeyRequest::GetTypeName() const {
  return "keyapis.jwks.v1.PostKeyRequest";
}

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

class PostKeyResponse_Error::_Internal {
 public:
  static constexpr ::int32_t kOneofCaseOffset =
    PROTOBUF_FIELD_OFFSET(::keyapis::jwks::v1::PostKeyResponse_Error, _impl_._oneof_case_);
  static const ::keyapis::jwks::v1::ValidationError& validation(const PostKeyResponse_Error* msg);
  static const ::keyapis::jwks::v1::KeyInfo_SavingError& saving(const PostKeyResponse_Error* msg);
};

const ::keyapis::jwks::v1::ValidationError&
PostKeyResponse_Error::_Internal::validation(const PostKeyResponse_Error* msg) {
  return *msg->_impl_.reason_.validation_;
}
const ::keyapis::jwks::v1::KeyInfo_SavingError&
PostKeyResponse_Error::_Internal::saving(const PostKeyResponse_Error* msg) {
  return *msg->_impl_.reason_.saving_;
}
void PostKeyResponse_Error::set_allocated_validation(::keyapis::jwks::v1::ValidationError* validation) {
  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  clear_reason();
  if (validation) {
    ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
      ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(validation);
    if (message_arena != submessage_arena) {
      validation = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
          message_arena, validation, submessage_arena);
    }
    set_has_validation();
    _impl_.reason_.validation_ = validation;
  }
  // @@protoc_insertion_point(field_set_allocated:keyapis.jwks.v1.PostKeyResponse.Error.validation)
}
void PostKeyResponse_Error::set_allocated_saving(::keyapis::jwks::v1::KeyInfo_SavingError* saving) {
  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  clear_reason();
  if (saving) {
    ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
      ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(saving);
    if (message_arena != submessage_arena) {
      saving = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
          message_arena, saving, submessage_arena);
    }
    set_has_saving();
    _impl_.reason_.saving_ = saving;
  }
  // @@protoc_insertion_point(field_set_allocated:keyapis.jwks.v1.PostKeyResponse.Error.saving)
}
PostKeyResponse_Error::PostKeyResponse_Error(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.jwks.v1.PostKeyResponse.Error)
}
PostKeyResponse_Error::PostKeyResponse_Error(const PostKeyResponse_Error& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  PostKeyResponse_Error* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_.reason_){}
    , /*decltype(_impl_._cached_size_)*/{}
    , /*decltype(_impl_._oneof_case_)*/{}};

  _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
  clear_has_reason();
  switch (from.reason_case()) {
    case kValidation: {
      _this->_internal_mutable_validation()->::keyapis::jwks::v1::ValidationError::MergeFrom(
          from._internal_validation());
      break;
    }
    case kSaving: {
      _this->_internal_mutable_saving()->::keyapis::jwks::v1::KeyInfo_SavingError::MergeFrom(
          from._internal_saving());
      break;
    }
    case REASON_NOT_SET: {
      break;
    }
  }
  // @@protoc_insertion_point(copy_constructor:keyapis.jwks.v1.PostKeyResponse.Error)
}

inline void PostKeyResponse_Error::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      decltype(_impl_.reason_){}
    , /*decltype(_impl_._cached_size_)*/{}
    , /*decltype(_impl_._oneof_case_)*/{}
  };
  clear_has_reason();
}

PostKeyResponse_Error::~PostKeyResponse_Error() {
  // @@protoc_insertion_point(destructor:keyapis.jwks.v1.PostKeyResponse.Error)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void PostKeyResponse_Error::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  if (has_reason()) {
    clear_reason();
  }
}

void PostKeyResponse_Error::SetCachedSize(int size) const {
  _impl_._cached_size_.Set(size);
}

void PostKeyResponse_Error::clear_reason() {
// @@protoc_insertion_point(one_of_clear_start:keyapis.jwks.v1.PostKeyResponse.Error)
  switch (reason_case()) {
    case kValidation: {
      if (GetArenaForAllocation() == nullptr) {
        delete _impl_.reason_.validation_;
      }
      break;
    }
    case kSaving: {
      if (GetArenaForAllocation() == nullptr) {
        delete _impl_.reason_.saving_;
      }
      break;
    }
    case REASON_NOT_SET: {
      break;
    }
  }
  _impl_._oneof_case_[0] = REASON_NOT_SET;
}


void PostKeyResponse_Error::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.jwks.v1.PostKeyResponse.Error)
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  clear_reason();
  _internal_metadata_.Clear<std::string>();
}

const char* PostKeyResponse_Error::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    ::uint32_t tag;
    ptr = ::_pbi::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // .keyapis.jwks.v1.ValidationError validation = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
          ptr = ctx->ParseMessage(_internal_mutable_validation(), ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      // .keyapis.jwks.v1.KeyInfo.SavingError saving = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
          ptr = ctx->ParseMessage(_internal_mutable_saving(), ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      default:
        goto handle_unusual;
    }  // switch
  handle_unusual:
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<std::string>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

::uint8_t* PostKeyResponse_Error::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.jwks.v1.PostKeyResponse.Error)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  switch (reason_case()) {
    case kValidation: {
      target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
        InternalWriteMessage(1, _Internal::validation(this),
          _Internal::validation(this).GetCachedSize(), target, stream);
      break;
    }
    case kSaving: {
      target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
        InternalWriteMessage(2, _Internal::saving(this),
          _Internal::saving(this).GetCachedSize(), target, stream);
      break;
    }
    default: ;
  }
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
        static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:keyapis.jwks.v1.PostKeyResponse.Error)
  return target;
}

::size_t PostKeyResponse_Error::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.jwks.v1.PostKeyResponse.Error)
  ::size_t total_size = 0;

  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  switch (reason_case()) {
    // .keyapis.jwks.v1.ValidationError validation = 1;
    case kValidation: {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.reason_.validation_);
      break;
    }
    // .keyapis.jwks.v1.KeyInfo.SavingError saving = 2;
    case kSaving: {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.reason_.saving_);
      break;
    }
    case REASON_NOT_SET: {
      break;
    }
  }
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
  }
  int cached_size = ::_pbi::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void PostKeyResponse_Error::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const PostKeyResponse_Error*>(
      &from));
}

void PostKeyResponse_Error::MergeFrom(const PostKeyResponse_Error& from) {
  PostKeyResponse_Error* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.jwks.v1.PostKeyResponse.Error)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  switch (from.reason_case()) {
    case kValidation: {
      _this->_internal_mutable_validation()->::keyapis::jwks::v1::ValidationError::MergeFrom(
          from._internal_validation());
      break;
    }
    case kSaving: {
      _this->_internal_mutable_saving()->::keyapis::jwks::v1::KeyInfo_SavingError::MergeFrom(
          from._internal_saving());
      break;
    }
    case REASON_NOT_SET: {
      break;
    }
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

void PostKeyResponse_Error::CopyFrom(const PostKeyResponse_Error& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:keyapis.jwks.v1.PostKeyResponse.Error)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool PostKeyResponse_Error::IsInitialized() const {
  return true;
}

void PostKeyResponse_Error::InternalSwap(PostKeyResponse_Error* other) {
  using std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_.reason_, other->_impl_.reason_);
  swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
}

std::string PostKeyResponse_Error::GetTypeName() const {
  return "keyapis.jwks.v1.PostKeyResponse.Error";
}

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

class PostKeyResponse::_Internal {
 public:
  static constexpr ::int32_t kOneofCaseOffset =
    PROTOBUF_FIELD_OFFSET(::keyapis::jwks::v1::PostKeyResponse, _impl_._oneof_case_);
  static const ::keyapis::jwks::v1::PostKeyResponse_Error& error(const PostKeyResponse* msg);
};

const ::keyapis::jwks::v1::PostKeyResponse_Error&
PostKeyResponse::_Internal::error(const PostKeyResponse* msg) {
  return *msg->_impl_.type_.error_;
}
void PostKeyResponse::set_allocated_error(::keyapis::jwks::v1::PostKeyResponse_Error* error) {
  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  clear_type();
  if (error) {
    ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
      ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(error);
    if (message_arena != submessage_arena) {
      error = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
          message_arena, error, submessage_arena);
    }
    set_has_error();
    _impl_.type_.error_ = error;
  }
  // @@protoc_insertion_point(field_set_allocated:keyapis.jwks.v1.PostKeyResponse.error)
}
PostKeyResponse::PostKeyResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.jwks.v1.PostKeyResponse)
}
PostKeyResponse::PostKeyResponse(const PostKeyResponse& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  PostKeyResponse* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_.type_){}
    , /*decltype(_impl_._cached_size_)*/{}
    , /*decltype(_impl_._oneof_case_)*/{}};

  _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
  clear_has_type();
  switch (from.type_case()) {
    case kError: {
      _this->_internal_mutable_error()->::keyapis::jwks::v1::PostKeyResponse_Error::MergeFrom(
          from._internal_error());
      break;
    }
    case TYPE_NOT_SET: {
      break;
    }
  }
  // @@protoc_insertion_point(copy_constructor:keyapis.jwks.v1.PostKeyResponse)
}

inline void PostKeyResponse::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      decltype(_impl_.type_){}
    , /*decltype(_impl_._cached_size_)*/{}
    , /*decltype(_impl_._oneof_case_)*/{}
  };
  clear_has_type();
}

PostKeyResponse::~PostKeyResponse() {
  // @@protoc_insertion_point(destructor:keyapis.jwks.v1.PostKeyResponse)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void PostKeyResponse::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  if (has_type()) {
    clear_type();
  }
}

void PostKeyResponse::SetCachedSize(int size) const {
  _impl_._cached_size_.Set(size);
}

void PostKeyResponse::clear_type() {
// @@protoc_insertion_point(one_of_clear_start:keyapis.jwks.v1.PostKeyResponse)
  switch (type_case()) {
    case kError: {
      if (GetArenaForAllocation() == nullptr) {
        delete _impl_.type_.error_;
      }
      break;
    }
    case TYPE_NOT_SET: {
      break;
    }
  }
  _impl_._oneof_case_[0] = TYPE_NOT_SET;
}


void PostKeyResponse::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.jwks.v1.PostKeyResponse)
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  clear_type();
  _internal_metadata_.Clear<std::string>();
}

const char* PostKeyResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    ::uint32_t tag;
    ptr = ::_pbi::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // .keyapis.jwks.v1.PostKeyResponse.Error error = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
          ptr = ctx->ParseMessage(_internal_mutable_error(), ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      default:
        goto handle_unusual;
    }  // switch
  handle_unusual:
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<std::string>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

::uint8_t* PostKeyResponse::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.jwks.v1.PostKeyResponse)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // .keyapis.jwks.v1.PostKeyResponse.Error error = 1;
  if (type_case() == kError) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(1, _Internal::error(this),
        _Internal::error(this).GetCachedSize(), target, stream);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
        static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:keyapis.jwks.v1.PostKeyResponse)
  return target;
}

::size_t PostKeyResponse::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.jwks.v1.PostKeyResponse)
  ::size_t total_size = 0;

  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  switch (type_case()) {
    // .keyapis.jwks.v1.PostKeyResponse.Error error = 1;
    case kError: {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.type_.error_);
      break;
    }
    case TYPE_NOT_SET: {
      break;
    }
  }
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
  }
  int cached_size = ::_pbi::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void PostKeyResponse::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const PostKeyResponse*>(
      &from));
}

void PostKeyResponse::MergeFrom(const PostKeyResponse& from) {
  PostKeyResponse* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.jwks.v1.PostKeyResponse)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  switch (from.type_case()) {
    case kError: {
      _this->_internal_mutable_error()->::keyapis::jwks::v1::PostKeyResponse_Error::MergeFrom(
          from._internal_error());
      break;
    }
    case TYPE_NOT_SET: {
      break;
    }
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

void PostKeyResponse::CopyFrom(const PostKeyResponse& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:keyapis.jwks.v1.PostKeyResponse)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool PostKeyResponse::IsInitialized() const {
  return true;
}

void PostKeyResponse::InternalSwap(PostKeyResponse* other) {
  using std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_.type_, other->_impl_.type_);
  swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
}

std::string PostKeyResponse::GetTypeName() const {
  return "keyapis.jwks.v1.PostKeyResponse";
}

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

class DeleteKeyRequest::_Internal {
 public:
};

DeleteKeyRequest::DeleteKeyRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.jwks.v1.DeleteKeyRequest)
}
DeleteKeyRequest::DeleteKeyRequest(const DeleteKeyRequest& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  DeleteKeyRequest* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_.id_) {}

    , /*decltype(_impl_._cached_size_)*/{}};

  _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
  _impl_.id_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.id_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_id().empty()) {
    _this->_impl_.id_.Set(from._internal_id(), _this->GetArenaForAllocation());
  }
  // @@protoc_insertion_point(copy_constructor:keyapis.jwks.v1.DeleteKeyRequest)
}

inline void DeleteKeyRequest::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      decltype(_impl_.id_) {}

    , /*decltype(_impl_._cached_size_)*/{}
  };
  _impl_.id_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.id_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}

DeleteKeyRequest::~DeleteKeyRequest() {
  // @@protoc_insertion_point(destructor:keyapis.jwks.v1.DeleteKeyRequest)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void DeleteKeyRequest::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  _impl_.id_.Destroy();
}

void DeleteKeyRequest::SetCachedSize(int size) const {
  _impl_._cached_size_.Set(size);
}

void DeleteKeyRequest::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.jwks.v1.DeleteKeyRequest)
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  _impl_.id_.ClearToEmpty();
  _internal_metadata_.Clear<std::string>();
}

const char* DeleteKeyRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    ::uint32_t tag;
    ptr = ::_pbi::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // string id = 1 [(.google.api.field_behavior) = REQUIRED];
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
          auto str = _internal_mutable_id();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, nullptr));
        } else {
          goto handle_unusual;
        }
        continue;
      default:
        goto handle_unusual;
    }  // switch
  handle_unusual:
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<std::string>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

::uint8_t* DeleteKeyRequest::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.jwks.v1.DeleteKeyRequest)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // string id = 1 [(.google.api.field_behavior) = REQUIRED];
  if (!this->_internal_id().empty()) {
    const std::string& _s = this->_internal_id();
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
        _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "keyapis.jwks.v1.DeleteKeyRequest.id");
    target = stream->WriteStringMaybeAliased(1, _s, target);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
        static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:keyapis.jwks.v1.DeleteKeyRequest)
  return target;
}

::size_t DeleteKeyRequest::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.jwks.v1.DeleteKeyRequest)
  ::size_t total_size = 0;

  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  // string id = 1 [(.google.api.field_behavior) = REQUIRED];
  if (!this->_internal_id().empty()) {
    total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
                                    this->_internal_id());
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
  }
  int cached_size = ::_pbi::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void DeleteKeyRequest::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const DeleteKeyRequest*>(
      &from));
}

void DeleteKeyRequest::MergeFrom(const DeleteKeyRequest& from) {
  DeleteKeyRequest* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.jwks.v1.DeleteKeyRequest)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  if (!from._internal_id().empty()) {
    _this->_internal_set_id(from._internal_id());
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

void DeleteKeyRequest::CopyFrom(const DeleteKeyRequest& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:keyapis.jwks.v1.DeleteKeyRequest)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool DeleteKeyRequest::IsInitialized() const {
  return true;
}

void DeleteKeyRequest::InternalSwap(DeleteKeyRequest* other) {
  using std::swap;
  auto* lhs_arena = GetArenaForAllocation();
  auto* rhs_arena = other->GetArenaForAllocation();
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, lhs_arena,
                                       &other->_impl_.id_, rhs_arena);
}

std::string DeleteKeyRequest::GetTypeName() const {
  return "keyapis.jwks.v1.DeleteKeyRequest";
}

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

class DeleteKeyResponse_Error::_Internal {
 public:
  static constexpr ::int32_t kOneofCaseOffset =
    PROTOBUF_FIELD_OFFSET(::keyapis::jwks::v1::DeleteKeyResponse_Error, _impl_._oneof_case_);
  static const ::keyapis::jwks::v1::ValidationError& validation(const DeleteKeyResponse_Error* msg);
};

const ::keyapis::jwks::v1::ValidationError&
DeleteKeyResponse_Error::_Internal::validation(const DeleteKeyResponse_Error* msg) {
  return *msg->_impl_.reason_.validation_;
}
void DeleteKeyResponse_Error::set_allocated_validation(::keyapis::jwks::v1::ValidationError* validation) {
  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  clear_reason();
  if (validation) {
    ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
      ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(validation);
    if (message_arena != submessage_arena) {
      validation = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
          message_arena, validation, submessage_arena);
    }
    set_has_validation();
    _impl_.reason_.validation_ = validation;
  }
  // @@protoc_insertion_point(field_set_allocated:keyapis.jwks.v1.DeleteKeyResponse.Error.validation)
}
DeleteKeyResponse_Error::DeleteKeyResponse_Error(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.jwks.v1.DeleteKeyResponse.Error)
}
DeleteKeyResponse_Error::DeleteKeyResponse_Error(const DeleteKeyResponse_Error& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  DeleteKeyResponse_Error* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_.reason_){}
    , /*decltype(_impl_._cached_size_)*/{}
    , /*decltype(_impl_._oneof_case_)*/{}};

  _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
  clear_has_reason();
  switch (from.reason_case()) {
    case kValidation: {
      _this->_internal_mutable_validation()->::keyapis::jwks::v1::ValidationError::MergeFrom(
          from._internal_validation());
      break;
    }
    case REASON_NOT_SET: {
      break;
    }
  }
  // @@protoc_insertion_point(copy_constructor:keyapis.jwks.v1.DeleteKeyResponse.Error)
}

inline void DeleteKeyResponse_Error::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      decltype(_impl_.reason_){}
    , /*decltype(_impl_._cached_size_)*/{}
    , /*decltype(_impl_._oneof_case_)*/{}
  };
  clear_has_reason();
}

DeleteKeyResponse_Error::~DeleteKeyResponse_Error() {
  // @@protoc_insertion_point(destructor:keyapis.jwks.v1.DeleteKeyResponse.Error)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void DeleteKeyResponse_Error::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  if (has_reason()) {
    clear_reason();
  }
}

void DeleteKeyResponse_Error::SetCachedSize(int size) const {
  _impl_._cached_size_.Set(size);
}

void DeleteKeyResponse_Error::clear_reason() {
// @@protoc_insertion_point(one_of_clear_start:keyapis.jwks.v1.DeleteKeyResponse.Error)
  switch (reason_case()) {
    case kValidation: {
      if (GetArenaForAllocation() == nullptr) {
        delete _impl_.reason_.validation_;
      }
      break;
    }
    case REASON_NOT_SET: {
      break;
    }
  }
  _impl_._oneof_case_[0] = REASON_NOT_SET;
}


void DeleteKeyResponse_Error::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.jwks.v1.DeleteKeyResponse.Error)
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  clear_reason();
  _internal_metadata_.Clear<std::string>();
}

const char* DeleteKeyResponse_Error::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    ::uint32_t tag;
    ptr = ::_pbi::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // .keyapis.jwks.v1.ValidationError validation = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
          ptr = ctx->ParseMessage(_internal_mutable_validation(), ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      default:
        goto handle_unusual;
    }  // switch
  handle_unusual:
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<std::string>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

::uint8_t* DeleteKeyResponse_Error::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.jwks.v1.DeleteKeyResponse.Error)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // .keyapis.jwks.v1.ValidationError validation = 1;
  if (reason_case() == kValidation) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(1, _Internal::validation(this),
        _Internal::validation(this).GetCachedSize(), target, stream);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
        static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:keyapis.jwks.v1.DeleteKeyResponse.Error)
  return target;
}

::size_t DeleteKeyResponse_Error::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.jwks.v1.DeleteKeyResponse.Error)
  ::size_t total_size = 0;

  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  switch (reason_case()) {
    // .keyapis.jwks.v1.ValidationError validation = 1;
    case kValidation: {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.reason_.validation_);
      break;
    }
    case REASON_NOT_SET: {
      break;
    }
  }
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
  }
  int cached_size = ::_pbi::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void DeleteKeyResponse_Error::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const DeleteKeyResponse_Error*>(
      &from));
}

void DeleteKeyResponse_Error::MergeFrom(const DeleteKeyResponse_Error& from) {
  DeleteKeyResponse_Error* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.jwks.v1.DeleteKeyResponse.Error)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  switch (from.reason_case()) {
    case kValidation: {
      _this->_internal_mutable_validation()->::keyapis::jwks::v1::ValidationError::MergeFrom(
          from._internal_validation());
      break;
    }
    case REASON_NOT_SET: {
      break;
    }
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

void DeleteKeyResponse_Error::CopyFrom(const DeleteKeyResponse_Error& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:keyapis.jwks.v1.DeleteKeyResponse.Error)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool DeleteKeyResponse_Error::IsInitialized() const {
  return true;
}

void DeleteKeyResponse_Error::InternalSwap(DeleteKeyResponse_Error* other) {
  using std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_.reason_, other->_impl_.reason_);
  swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
}

std::string DeleteKeyResponse_Error::GetTypeName() const {
  return "keyapis.jwks.v1.DeleteKeyResponse.Error";
}

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

class DeleteKeyResponse::_Internal {
 public:
  static constexpr ::int32_t kOneofCaseOffset =
    PROTOBUF_FIELD_OFFSET(::keyapis::jwks::v1::DeleteKeyResponse, _impl_._oneof_case_);
  static const ::keyapis::jwks::v1::DeleteKeyResponse_Error& error(const DeleteKeyResponse* msg);
};

const ::keyapis::jwks::v1::DeleteKeyResponse_Error&
DeleteKeyResponse::_Internal::error(const DeleteKeyResponse* msg) {
  return *msg->_impl_.type_.error_;
}
void DeleteKeyResponse::set_allocated_error(::keyapis::jwks::v1::DeleteKeyResponse_Error* error) {
  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  clear_type();
  if (error) {
    ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
      ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(error);
    if (message_arena != submessage_arena) {
      error = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
          message_arena, error, submessage_arena);
    }
    set_has_error();
    _impl_.type_.error_ = error;
  }
  // @@protoc_insertion_point(field_set_allocated:keyapis.jwks.v1.DeleteKeyResponse.error)
}
DeleteKeyResponse::DeleteKeyResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.jwks.v1.DeleteKeyResponse)
}
DeleteKeyResponse::DeleteKeyResponse(const DeleteKeyResponse& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  DeleteKeyResponse* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_.type_){}
    , /*decltype(_impl_._cached_size_)*/{}
    , /*decltype(_impl_._oneof_case_)*/{}};

  _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
  clear_has_type();
  switch (from.type_case()) {
    case kError: {
      _this->_internal_mutable_error()->::keyapis::jwks::v1::DeleteKeyResponse_Error::MergeFrom(
          from._internal_error());
      break;
    }
    case TYPE_NOT_SET: {
      break;
    }
  }
  // @@protoc_insertion_point(copy_constructor:keyapis.jwks.v1.DeleteKeyResponse)
}

inline void DeleteKeyResponse::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      decltype(_impl_.type_){}
    , /*decltype(_impl_._cached_size_)*/{}
    , /*decltype(_impl_._oneof_case_)*/{}
  };
  clear_has_type();
}

DeleteKeyResponse::~DeleteKeyResponse() {
  // @@protoc_insertion_point(destructor:keyapis.jwks.v1.DeleteKeyResponse)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void DeleteKeyResponse::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  if (has_type()) {
    clear_type();
  }
}

void DeleteKeyResponse::SetCachedSize(int size) const {
  _impl_._cached_size_.Set(size);
}

void DeleteKeyResponse::clear_type() {
// @@protoc_insertion_point(one_of_clear_start:keyapis.jwks.v1.DeleteKeyResponse)
  switch (type_case()) {
    case kError: {
      if (GetArenaForAllocation() == nullptr) {
        delete _impl_.type_.error_;
      }
      break;
    }
    case TYPE_NOT_SET: {
      break;
    }
  }
  _impl_._oneof_case_[0] = TYPE_NOT_SET;
}


void DeleteKeyResponse::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.jwks.v1.DeleteKeyResponse)
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  clear_type();
  _internal_metadata_.Clear<std::string>();
}

const char* DeleteKeyResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    ::uint32_t tag;
    ptr = ::_pbi::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // .keyapis.jwks.v1.DeleteKeyResponse.Error error = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
          ptr = ctx->ParseMessage(_internal_mutable_error(), ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      default:
        goto handle_unusual;
    }  // switch
  handle_unusual:
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<std::string>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

::uint8_t* DeleteKeyResponse::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.jwks.v1.DeleteKeyResponse)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // .keyapis.jwks.v1.DeleteKeyResponse.Error error = 1;
  if (type_case() == kError) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(1, _Internal::error(this),
        _Internal::error(this).GetCachedSize(), target, stream);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
        static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:keyapis.jwks.v1.DeleteKeyResponse)
  return target;
}

::size_t DeleteKeyResponse::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.jwks.v1.DeleteKeyResponse)
  ::size_t total_size = 0;

  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  switch (type_case()) {
    // .keyapis.jwks.v1.DeleteKeyResponse.Error error = 1;
    case kError: {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.type_.error_);
      break;
    }
    case TYPE_NOT_SET: {
      break;
    }
  }
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
  }
  int cached_size = ::_pbi::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void DeleteKeyResponse::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const DeleteKeyResponse*>(
      &from));
}

void DeleteKeyResponse::MergeFrom(const DeleteKeyResponse& from) {
  DeleteKeyResponse* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.jwks.v1.DeleteKeyResponse)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  switch (from.type_case()) {
    case kError: {
      _this->_internal_mutable_error()->::keyapis::jwks::v1::DeleteKeyResponse_Error::MergeFrom(
          from._internal_error());
      break;
    }
    case TYPE_NOT_SET: {
      break;
    }
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

void DeleteKeyResponse::CopyFrom(const DeleteKeyResponse& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:keyapis.jwks.v1.DeleteKeyResponse)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool DeleteKeyResponse::IsInitialized() const {
  return true;
}

void DeleteKeyResponse::InternalSwap(DeleteKeyResponse* other) {
  using std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_.type_, other->_impl_.type_);
  swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
}

std::string DeleteKeyResponse::GetTypeName() const {
  return "keyapis.jwks.v1.DeleteKeyResponse";
}

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

class GetKeyWellKnownJwksJsonRequest::_Internal {
 public:
};

GetKeyWellKnownJwksJsonRequest::GetKeyWellKnownJwksJsonRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.jwks.v1.GetKeyWellKnownJwksJsonRequest)
}
GetKeyWellKnownJwksJsonRequest::GetKeyWellKnownJwksJsonRequest(const GetKeyWellKnownJwksJsonRequest& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _impl_(from._impl_) {
  _internal_metadata_.MergeFrom<std::string>(
      from._internal_metadata_);
  // @@protoc_insertion_point(copy_constructor:keyapis.jwks.v1.GetKeyWellKnownJwksJsonRequest)
}

inline void GetKeyWellKnownJwksJsonRequest::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      /*decltype(_impl_._cached_size_)*/{}
  };
}

GetKeyWellKnownJwksJsonRequest::~GetKeyWellKnownJwksJsonRequest() {
  // @@protoc_insertion_point(destructor:keyapis.jwks.v1.GetKeyWellKnownJwksJsonRequest)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void GetKeyWellKnownJwksJsonRequest::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
}

void GetKeyWellKnownJwksJsonRequest::SetCachedSize(int size) const {
  _impl_._cached_size_.Set(size);
}

void GetKeyWellKnownJwksJsonRequest::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.jwks.v1.GetKeyWellKnownJwksJsonRequest)
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  _internal_metadata_.Clear<std::string>();
}

const char* GetKeyWellKnownJwksJsonRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    ::uint32_t tag;
    ptr = ::_pbi::ReadTag(ptr, &tag);
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<std::string>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

::uint8_t* GetKeyWellKnownJwksJsonRequest::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.jwks.v1.GetKeyWellKnownJwksJsonRequest)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
        static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:keyapis.jwks.v1.GetKeyWellKnownJwksJsonRequest)
  return target;
}

::size_t GetKeyWellKnownJwksJsonRequest::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.jwks.v1.GetKeyWellKnownJwksJsonRequest)
  ::size_t total_size = 0;

  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
  }
  int cached_size = ::_pbi::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void GetKeyWellKnownJwksJsonRequest::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const GetKeyWellKnownJwksJsonRequest*>(
      &from));
}

void GetKeyWellKnownJwksJsonRequest::MergeFrom(const GetKeyWellKnownJwksJsonRequest& from) {
  GetKeyWellKnownJwksJsonRequest* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.jwks.v1.GetKeyWellKnownJwksJsonRequest)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

void GetKeyWellKnownJwksJsonRequest::CopyFrom(const GetKeyWellKnownJwksJsonRequest& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:keyapis.jwks.v1.GetKeyWellKnownJwksJsonRequest)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool GetKeyWellKnownJwksJsonRequest::IsInitialized() const {
  return true;
}

void GetKeyWellKnownJwksJsonRequest::InternalSwap(GetKeyWellKnownJwksJsonRequest* other) {
  using std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
}

std::string GetKeyWellKnownJwksJsonRequest::GetTypeName() const {
  return "keyapis.jwks.v1.GetKeyWellKnownJwksJsonRequest";
}

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

class GetKeyWellKnownJwksJsonResponse::_Internal {
 public:
};

GetKeyWellKnownJwksJsonResponse::GetKeyWellKnownJwksJsonResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.jwks.v1.GetKeyWellKnownJwksJsonResponse)
}
GetKeyWellKnownJwksJsonResponse::GetKeyWellKnownJwksJsonResponse(const GetKeyWellKnownJwksJsonResponse& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  GetKeyWellKnownJwksJsonResponse* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_.data_){from._impl_.data_}
    , /*decltype(_impl_._cached_size_)*/{}};

  _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
  // @@protoc_insertion_point(copy_constructor:keyapis.jwks.v1.GetKeyWellKnownJwksJsonResponse)
}

inline void GetKeyWellKnownJwksJsonResponse::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      decltype(_impl_.data_){arena}
    , /*decltype(_impl_._cached_size_)*/{}
  };
}

GetKeyWellKnownJwksJsonResponse::~GetKeyWellKnownJwksJsonResponse() {
  // @@protoc_insertion_point(destructor:keyapis.jwks.v1.GetKeyWellKnownJwksJsonResponse)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void GetKeyWellKnownJwksJsonResponse::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  _internal_mutable_data()->~RepeatedPtrField();
}

void GetKeyWellKnownJwksJsonResponse::SetCachedSize(int size) const {
  _impl_._cached_size_.Set(size);
}

void GetKeyWellKnownJwksJsonResponse::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.jwks.v1.GetKeyWellKnownJwksJsonResponse)
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  _internal_mutable_data()->Clear();
  _internal_metadata_.Clear<std::string>();
}

const char* GetKeyWellKnownJwksJsonResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    ::uint32_t tag;
    ptr = ::_pbi::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // repeated .keyapis.jwks.v1.KeyInfo.PublicKey data = 1 [json_name = "keys"];
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
          ptr -= 1;
          do {
            ptr += 1;
            ptr = ctx->ParseMessage(_internal_add_data(), ptr);
            CHK_(ptr);
            if (!ctx->DataAvailable(ptr)) break;
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
        } else {
          goto handle_unusual;
        }
        continue;
      default:
        goto handle_unusual;
    }  // switch
  handle_unusual:
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<std::string>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

::uint8_t* GetKeyWellKnownJwksJsonResponse::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.jwks.v1.GetKeyWellKnownJwksJsonResponse)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // repeated .keyapis.jwks.v1.KeyInfo.PublicKey data = 1 [json_name = "keys"];
  for (unsigned i = 0,
      n = static_cast<unsigned>(this->_internal_data_size()); i < n; i++) {
    const auto& repfield = this->_internal_data(i);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
        InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
        static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:keyapis.jwks.v1.GetKeyWellKnownJwksJsonResponse)
  return target;
}

::size_t GetKeyWellKnownJwksJsonResponse::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.jwks.v1.GetKeyWellKnownJwksJsonResponse)
  ::size_t total_size = 0;

  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  // repeated .keyapis.jwks.v1.KeyInfo.PublicKey data = 1 [json_name = "keys"];
  total_size += 1UL * this->_internal_data_size();
  for (const auto& msg : this->_internal_data()) {
    total_size +=
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
  }
  int cached_size = ::_pbi::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void GetKeyWellKnownJwksJsonResponse::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const GetKeyWellKnownJwksJsonResponse*>(
      &from));
}

void GetKeyWellKnownJwksJsonResponse::MergeFrom(const GetKeyWellKnownJwksJsonResponse& from) {
  GetKeyWellKnownJwksJsonResponse* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.jwks.v1.GetKeyWellKnownJwksJsonResponse)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  _this->_internal_mutable_data()->MergeFrom(from._internal_data());
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

void GetKeyWellKnownJwksJsonResponse::CopyFrom(const GetKeyWellKnownJwksJsonResponse& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:keyapis.jwks.v1.GetKeyWellKnownJwksJsonResponse)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool GetKeyWellKnownJwksJsonResponse::IsInitialized() const {
  return true;
}

void GetKeyWellKnownJwksJsonResponse::InternalSwap(GetKeyWellKnownJwksJsonResponse* other) {
  using std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  _internal_mutable_data()->InternalSwap(other->_internal_mutable_data());
}

std::string GetKeyWellKnownJwksJsonResponse::GetTypeName() const {
  return "keyapis.jwks.v1.GetKeyWellKnownJwksJsonResponse";
}

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

class ValidationError::_Internal {
 public:
};

ValidationError::ValidationError(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.jwks.v1.ValidationError)
}
ValidationError::ValidationError(const ValidationError& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  ValidationError* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_.path_) {}

    , decltype(_impl_.message_) {}

    , /*decltype(_impl_._cached_size_)*/{}};

  _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
  _impl_.path_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.path_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_path().empty()) {
    _this->_impl_.path_.Set(from._internal_path(), _this->GetArenaForAllocation());
  }
  _impl_.message_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.message_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_message().empty()) {
    _this->_impl_.message_.Set(from._internal_message(), _this->GetArenaForAllocation());
  }
  // @@protoc_insertion_point(copy_constructor:keyapis.jwks.v1.ValidationError)
}

inline void ValidationError::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      decltype(_impl_.path_) {}

    , decltype(_impl_.message_) {}

    , /*decltype(_impl_._cached_size_)*/{}
  };
  _impl_.path_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.path_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  _impl_.message_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.message_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}

ValidationError::~ValidationError() {
  // @@protoc_insertion_point(destructor:keyapis.jwks.v1.ValidationError)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void ValidationError::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  _impl_.path_.Destroy();
  _impl_.message_.Destroy();
}

void ValidationError::SetCachedSize(int size) const {
  _impl_._cached_size_.Set(size);
}

void ValidationError::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.jwks.v1.ValidationError)
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  _impl_.path_.ClearToEmpty();
  _impl_.message_.ClearToEmpty();
  _internal_metadata_.Clear<std::string>();
}

const char* ValidationError::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    ::uint32_t tag;
    ptr = ::_pbi::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // string path = 1 [(.google.api.field_behavior) = REQUIRED];
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
          auto str = _internal_mutable_path();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, nullptr));
        } else {
          goto handle_unusual;
        }
        continue;
      // string message = 2 [(.google.api.field_behavior) = REQUIRED];
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
          auto str = _internal_mutable_message();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, nullptr));
        } else {
          goto handle_unusual;
        }
        continue;
      default:
        goto handle_unusual;
    }  // switch
  handle_unusual:
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<std::string>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

::uint8_t* ValidationError::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.jwks.v1.ValidationError)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // string path = 1 [(.google.api.field_behavior) = REQUIRED];
  if (!this->_internal_path().empty()) {
    const std::string& _s = this->_internal_path();
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
        _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "keyapis.jwks.v1.ValidationError.path");
    target = stream->WriteStringMaybeAliased(1, _s, target);
  }

  // string message = 2 [(.google.api.field_behavior) = REQUIRED];
  if (!this->_internal_message().empty()) {
    const std::string& _s = this->_internal_message();
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
        _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "keyapis.jwks.v1.ValidationError.message");
    target = stream->WriteStringMaybeAliased(2, _s, target);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
        static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:keyapis.jwks.v1.ValidationError)
  return target;
}

::size_t ValidationError::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.jwks.v1.ValidationError)
  ::size_t total_size = 0;

  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  // string path = 1 [(.google.api.field_behavior) = REQUIRED];
  if (!this->_internal_path().empty()) {
    total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
                                    this->_internal_path());
  }

  // string message = 2 [(.google.api.field_behavior) = REQUIRED];
  if (!this->_internal_message().empty()) {
    total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
                                    this->_internal_message());
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
  }
  int cached_size = ::_pbi::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void ValidationError::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const ValidationError*>(
      &from));
}

void ValidationError::MergeFrom(const ValidationError& from) {
  ValidationError* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.jwks.v1.ValidationError)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  if (!from._internal_path().empty()) {
    _this->_internal_set_path(from._internal_path());
  }
  if (!from._internal_message().empty()) {
    _this->_internal_set_message(from._internal_message());
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

void ValidationError::CopyFrom(const ValidationError& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:keyapis.jwks.v1.ValidationError)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool ValidationError::IsInitialized() const {
  return true;
}

void ValidationError::InternalSwap(ValidationError* other) {
  using std::swap;
  auto* lhs_arena = GetArenaForAllocation();
  auto* rhs_arena = other->GetArenaForAllocation();
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.path_, lhs_arena,
                                       &other->_impl_.path_, rhs_arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.message_, lhs_arena,
                                       &other->_impl_.message_, rhs_arena);
}

std::string ValidationError::GetTypeName() const {
  return "keyapis.jwks.v1.ValidationError";
}

// @@protoc_insertion_point(namespace_scope)
}  // namespace v1
}  // namespace jwks
}  // namespace keyapis
PROTOBUF_NAMESPACE_OPEN
template<> PROTOBUF_NOINLINE ::keyapis::jwks::v1::KeyInfo_PublicKey*
Arena::CreateMaybeMessage< ::keyapis::jwks::v1::KeyInfo_PublicKey >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::jwks::v1::KeyInfo_PublicKey >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::jwks::v1::KeyInfo_SavingError_KeyAlreadyExists*
Arena::CreateMaybeMessage< ::keyapis::jwks::v1::KeyInfo_SavingError_KeyAlreadyExists >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::jwks::v1::KeyInfo_SavingError_KeyAlreadyExists >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::jwks::v1::KeyInfo_SavingError*
Arena::CreateMaybeMessage< ::keyapis::jwks::v1::KeyInfo_SavingError >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::jwks::v1::KeyInfo_SavingError >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::jwks::v1::KeyInfo*
Arena::CreateMaybeMessage< ::keyapis::jwks::v1::KeyInfo >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::jwks::v1::KeyInfo >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::jwks::v1::PostKeyRequest*
Arena::CreateMaybeMessage< ::keyapis::jwks::v1::PostKeyRequest >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::jwks::v1::PostKeyRequest >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::jwks::v1::PostKeyResponse_Error*
Arena::CreateMaybeMessage< ::keyapis::jwks::v1::PostKeyResponse_Error >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::jwks::v1::PostKeyResponse_Error >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::jwks::v1::PostKeyResponse*
Arena::CreateMaybeMessage< ::keyapis::jwks::v1::PostKeyResponse >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::jwks::v1::PostKeyResponse >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::jwks::v1::DeleteKeyRequest*
Arena::CreateMaybeMessage< ::keyapis::jwks::v1::DeleteKeyRequest >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::jwks::v1::DeleteKeyRequest >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::jwks::v1::DeleteKeyResponse_Error*
Arena::CreateMaybeMessage< ::keyapis::jwks::v1::DeleteKeyResponse_Error >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::jwks::v1::DeleteKeyResponse_Error >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::jwks::v1::DeleteKeyResponse*
Arena::CreateMaybeMessage< ::keyapis::jwks::v1::DeleteKeyResponse >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::jwks::v1::DeleteKeyResponse >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::jwks::v1::GetKeyWellKnownJwksJsonRequest*
Arena::CreateMaybeMessage< ::keyapis::jwks::v1::GetKeyWellKnownJwksJsonRequest >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::jwks::v1::GetKeyWellKnownJwksJsonRequest >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::jwks::v1::GetKeyWellKnownJwksJsonResponse*
Arena::CreateMaybeMessage< ::keyapis::jwks::v1::GetKeyWellKnownJwksJsonResponse >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::jwks::v1::GetKeyWellKnownJwksJsonResponse >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::jwks::v1::ValidationError*
Arena::CreateMaybeMessage< ::keyapis::jwks::v1::ValidationError >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::jwks::v1::ValidationError >(arena);
}
PROTOBUF_NAMESPACE_CLOSE
// @@protoc_insertion_point(global_scope)
#include "google/protobuf/port_undef.inc"
