Package com.google.genai.types
Class SpreadsheetMetadata
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.SpreadsheetMetadata
Metadata describes the input spreadsheet content.
Set this in `Part.spreadsheet_metadata` or `FunctionResponsePart.spreadsheet_metadata` when `inline_data` or `file_data` contains a spreadsheet to configure static spreadsheet preprocessing.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for SpreadsheetMetadata. -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SpreadsheetMetadata.Builderbuilder()Instantiates a builder for SpreadsheetMetadata.abstract Optional<List<SpreadsheetMetadataContentLayer>>Content layers to return.static SpreadsheetMetadataDeserializes a JSON string to a SpreadsheetMetadata object.Optional.abstract SpreadsheetMetadata.BuilderCreates a builder with the same values as this instance.Optional.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
SpreadsheetMetadata
public SpreadsheetMetadata()
-
-
Method Details
-
visibleCells
Optional. The range of cells to extract, in A1 notation (e.g. "A1:D10"). If not set, the full occupied area of the sheet is used. -
sheetIndex
Optional. The 1-indexed index of the sheet to extract, in workbook order. If not set, all sheets are extracted. -
contentLayers
Content layers to return. If empty, defaults to [DATA, FORMULAS] when SpreadsheetMetadata is set. -
builder
Instantiates a builder for SpreadsheetMetadata. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a SpreadsheetMetadata object.
-