Interface 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.

interface SpreadsheetMetadata {
    contentLayers?: SpreadsheetMetadataContentLayer[];
    sheetIndex?: number;
    visibleCells?: string;
}

Properties

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

sheetIndex?: number

Optional. The 1-indexed index of the sheet to extract, in workbook order. If not set, all sheets are extracted.

visibleCells?: string

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.