SpreadsheetMetadata

@Serializable
data class SpreadsheetMetadata(val visibleCells: String? = null, val sheetIndex: Int? = null, val contentLayers: List<SpreadsheetMetadataContentLayer>? = null)

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.

Constructors

Link copied to clipboard
constructor(visibleCells: String? = null, sheetIndex: Int? = null, contentLayers: List<SpreadsheetMetadataContentLayer>? = null)

Properties

Link copied to clipboard

Content layers to return. If empty, defaults to DATA, FORMULAS when SpreadsheetMetadata is set.

Link copied to clipboard
val sheetIndex: Int? = null

The 1-indexed index of the sheet to extract, in workbook order. If not set, the first sheet is used.

Link copied to clipboard
val visibleCells: String? = null

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.