private static Keyset.Key toKeysetKey(
      int id, KeyStatusType status, ProtoKeySerialization protoKeySerialization) {
    return Keyset.Key.newBuilder()
        .setKeyData(
            KeyData.newBuilder()
                .setTypeUrl(protoKeySerialization.getTypeUrl())
                .setValue(protoKeySerialization.getValue())
                .setKeyMaterialType(protoKeySerialization.getKeyMaterialType()))
        .setStatus(status)
        .setKeyId(id)
        .setOutputPrefixType(protoKeySerialization.getOutputPrefixType())
        .build();
  }
Returns true if this keyset is equal to {@code other}, ignoring monitoring annotations.

<p>Note: this may return false even if the keysets represent the same set of functions. For
example, this can happen if the keys store zero-byte padding of a {@link java.math.BigInteger},
which are irrelevant to the function computed. Currently, keysets can also be invalid in which
case this will return false.
java_src/src/main/java/com/google/crypto/tink/KeysetHandle.java