private static KeyStatusType serializeStatus(KeyStatus in) {
    if (KeyStatus.ENABLED.equals(in)) {
      return KeyStatusType.ENABLED;
    }
    if (KeyStatus.DISABLED.equals(in)) {
      return KeyStatusType.DISABLED;
    }
    if (KeyStatus.DESTROYED.equals(in)) {
      return KeyStatusType.DESTROYED;
    }
    throw new IllegalStateException("Unknown key status");
  }
Guaranteed to be true in exactly one entry.

<p>Note: currently this may be false for all entries, since it is possible that keysets are
parsed without a primary. In the future, such keysets will be rejected when the keyset is
parsed.
java_src/src/main/java/com/google/crypto/tink/KeysetHandle.java