// Type field is required
throw new InvalidKeyDataException(
InvalidKeyDataException.Reason.PROTO_PARSE, null);
}
try {
KeyVersion kv = registry.newBuilder(kvData.getType())
.withData(kvData, protoRegistry).build();
keyVersions.add(kv);
} catch (InvalidProtocolBufferException ex) {
// Throw proto parsing exceptions immediately
throw new InvalidKeyDataException(