memoryTableFactories.remove(name);
}
@SuppressWarnings("unchecked")
public StorageDescription readProtobuf(Storage pbStorage, HasStorage forObject) {
StorageDescription storageDescription = null;
for (Format format : formatsInOrder) {
if (pbStorage.hasExtension(format.protobufExtension)) {
storageDescription = readProtobuf(format, pbStorage, forObject, storageDescription);
}
}
if (!pbStorage.getUnknownFields().asMap().isEmpty()) {
if (storageDescription == null) {
storageDescription = new UnknownStorageDescription(forObject, defaultIdentifier);
}
storageDescription.setUnknownFields(pbStorage.getUnknownFields());
}
return storageDescription;
}