public static KeyStatusType fromProto(
      com.google.crypto.tink.proto.KeyStatusType keyStatusTypeProto) {
    switch (keyStatusTypeProto) {
      case ENABLED:
        return KeyStatusType.ENABLED;
      case DISABLED:
        return KeyStatusType.DISABLED;
      case DESTROYED:
        return KeyStatusType.DESTROYED;
      default:
        throw new IllegalArgumentException("Unknown key status type.");
    }
  }
Converts a {@link KeyStatusType} proto enum into a {@link KeyHandle.KeyStatusType} enum
java_src/src/main/java/com/google/crypto/tink/internal/KeyStatusTypeProtoConverter.java