[]
Serializable, Comparable<InsufficientSpaceHandling>, ConstableUse this enum with DataImportOptions.setInsufficientSpaceHandling(InsufficientSpaceHandling) to control whether incoming data overwrites existing cells, inserts cells to make room, or is truncated when the target range cannot accommodate the full import. The default behavior is Overwrite.
worksheet.getRange("A5").setValue("Existing data");
DataImportOptions options = new DataImportOptions();
options.setInsufficientSpaceHandling(InsufficientSpaceHandling.InsertCells);
worksheet.getRange("A1:A4").importData(new double[] {1.0, 2.0, 3.0, 4.0, 5.0}, options);
Enum.EnumDesc<E extends Enum<E>>static InsufficientSpaceHandlingstatic InsufficientSpaceHandling[]values()name - the name of the enum constant to be returned.IllegalArgumentException - if this enum class has no constant with the specified nameNullPointerException - if the argument is null