in services/library/src/main/java/com/google/cloud/pso/bq_snapshot_manager/entities/backup_policy/BackupMethod.java [40:52]
public static BackupMethod fromString(String text) throws IllegalArgumentException {
for (BackupMethod b : BackupMethod.values()) {
if (b.text.equalsIgnoreCase(text)) {
return b;
}
}
throw new IllegalArgumentException(
String.format("Invalid enum text '%s'. Available values are '%s'",
text,
Arrays.asList(BackupMethod.values())
)
);
}