Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(652)

Unified Diff: discovery/googleapis/sheets__v4.json

Issue 2824163002: Api-roll 48: 2017-04-18 (Closed)
Patch Set: Revert changes to pubspecs Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « discovery/googleapis/serviceuser__v1.json ('k') | discovery/googleapis/siteVerification__v1.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: discovery/googleapis/sheets__v4.json
diff --git a/discovery/googleapis/sheets__v4.json b/discovery/googleapis/sheets__v4.json
index 9711676e40f776e9ebbd1f0e5d516dfe9e8349bb..d85a0ac027757fee5ea76ad815e0fefcfd57e6f4 100644
--- a/discovery/googleapis/sheets__v4.json
+++ b/discovery/googleapis/sheets__v4.json
@@ -45,18 +45,13 @@
"location": "query",
"type": "boolean"
},
- "fields": {
- "description": "Selector specifying which fields to include in a partial response.",
- "location": "query",
- "type": "string"
- },
"uploadType": {
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"location": "query",
"type": "string"
},
- "callback": {
- "description": "JSONP",
+ "fields": {
+ "description": "Selector specifying which fields to include in a partial response.",
"location": "query",
"type": "string"
},
@@ -73,6 +68,11 @@
"location": "query",
"type": "string"
},
+ "callback": {
+ "description": "JSONP",
+ "location": "query",
+ "type": "string"
+ },
"alt": {
"default": "json",
"description": "Data format for response.",
@@ -110,13 +110,13 @@
"location": "query",
"type": "boolean"
},
- "bearer_token": {
- "description": "OAuth bearer token.",
+ "oauth_token": {
+ "description": "OAuth 2.0 token for the current user.",
"location": "query",
"type": "string"
},
- "oauth_token": {
- "description": "OAuth 2.0 token for the current user.",
+ "bearer_token": {
+ "description": "OAuth bearer token.",
"location": "query",
"type": "string"
}
@@ -211,21 +211,119 @@
"resources": {
"values": {
"methods": {
- "get": {
- "description": "Returns a range of values from a spreadsheet.\nThe caller must specify the spreadsheet ID and a range.",
- "httpMethod": "GET",
- "id": "sheets.spreadsheets.values.get",
+ "append": {
+ "description": "Appends values to a spreadsheet. The input range is used to search for\nexisting data and find a \"table\" within that range. Values will be\nappended to the next row of the table, starting with the first column of\nthe table. See the\n[guide](/sheets/api/guides/values#appending_values)\nand\n[sample code](/sheets/api/samples/writing#append_values)\nfor specific details of how tables are detected and data is appended.\n\nThe caller must specify the spreadsheet ID, range, and\na valueInputOption. The `valueInputOption` only\ncontrols how the input data will be added to the sheet (column-wise or\nrow-wise), it does not influence what cell the data starts being written\nto.",
+ "httpMethod": "POST",
+ "id": "sheets.spreadsheets.values.append",
"parameterOrder": [
"spreadsheetId",
"range"
],
"parameters": {
+ "responseDateTimeRenderOption": {
+ "description": "Determines how dates, times, and durations in the response should be\nrendered. This is ignored if response_value_render_option is\nFORMATTED_VALUE.\nThe default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].",
+ "enum": [
+ "SERIAL_NUMBER",
+ "FORMATTED_STRING"
+ ],
+ "location": "query",
+ "type": "string"
+ },
"range": {
- "description": "The A1 notation of the values to retrieve.",
+ "description": "The A1 notation of a range to search for a logical table of data.\nValues will be appended after the last row of the table.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "includeValuesInResponse": {
+ "description": "Determines if the update response should include the values\nof the cells that were appended. By default, responses\ndo not include the updated values.",
+ "location": "query",
+ "type": "boolean"
+ },
+ "spreadsheetId": {
+ "description": "The ID of the spreadsheet to update.",
"location": "path",
"required": true,
"type": "string"
},
+ "responseValueRenderOption": {
+ "description": "Determines how values in the response should be rendered.\nThe default render option is ValueRenderOption.FORMATTED_VALUE.",
+ "enum": [
+ "FORMATTED_VALUE",
+ "UNFORMATTED_VALUE",
+ "FORMULA"
+ ],
+ "location": "query",
+ "type": "string"
+ },
+ "insertDataOption": {
+ "description": "How the input data should be inserted.",
+ "enum": [
+ "OVERWRITE",
+ "INSERT_ROWS"
+ ],
+ "location": "query",
+ "type": "string"
+ },
+ "valueInputOption": {
+ "description": "How the input data should be interpreted.",
+ "enum": [
+ "INPUT_VALUE_OPTION_UNSPECIFIED",
+ "RAW",
+ "USER_ENTERED"
+ ],
+ "location": "query",
+ "type": "string"
+ }
+ },
+ "path": "v4/spreadsheets/{spreadsheetId}/values/{range}:append",
+ "request": {
+ "$ref": "ValueRange"
+ },
+ "response": {
+ "$ref": "AppendValuesResponse"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/drive",
+ "https://www.googleapis.com/auth/spreadsheets"
+ ]
+ },
+ "batchClear": {
+ "description": "Clears one or more ranges of values from a spreadsheet.\nThe caller must specify the spreadsheet ID and one or more ranges.\nOnly values are cleared -- all other properties of the cell (such as\nformatting, data validation, etc..) are kept.",
+ "httpMethod": "POST",
+ "id": "sheets.spreadsheets.values.batchClear",
+ "parameterOrder": [
+ "spreadsheetId"
+ ],
+ "parameters": {
+ "spreadsheetId": {
+ "description": "The ID of the spreadsheet to update.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v4/spreadsheets/{spreadsheetId}/values:batchClear",
+ "request": {
+ "$ref": "BatchClearValuesRequest"
+ },
+ "response": {
+ "$ref": "BatchClearValuesResponse"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/drive",
+ "https://www.googleapis.com/auth/spreadsheets"
+ ]
+ },
+ "get": {
+ "description": "Returns a range of values from a spreadsheet.\nThe caller must specify the spreadsheet ID and a range.",
+ "httpMethod": "GET",
+ "id": "sheets.spreadsheets.values.get",
+ "parameterOrder": [
+ "spreadsheetId",
+ "range"
+ ],
+ "parameters": {
"valueRenderOption": {
"description": "How values should be represented in the output.\nThe default render option is ValueRenderOption.FORMATTED_VALUE.",
"enum": [
@@ -260,6 +358,12 @@
"location": "path",
"required": true,
"type": "string"
+ },
+ "range": {
+ "description": "The A1 notation of the values to retrieve.",
+ "location": "path",
+ "required": true,
+ "type": "string"
}
},
"path": "v4/spreadsheets/{spreadsheetId}/values/{range}",
@@ -368,6 +472,40 @@
"https://www.googleapis.com/auth/spreadsheets"
]
},
+ "clear": {
+ "description": "Clears values from a spreadsheet.\nThe caller must specify the spreadsheet ID and range.\nOnly values are cleared -- all other properties of the cell (such as\nformatting, data validation, etc..) are kept.",
+ "httpMethod": "POST",
+ "id": "sheets.spreadsheets.values.clear",
+ "parameterOrder": [
+ "spreadsheetId",
+ "range"
+ ],
+ "parameters": {
+ "spreadsheetId": {
+ "description": "The ID of the spreadsheet to update.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "range": {
+ "description": "The A1 notation of the values to clear.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v4/spreadsheets/{spreadsheetId}/values/{range}:clear",
+ "request": {
+ "$ref": "ClearValuesRequest"
+ },
+ "response": {
+ "$ref": "ClearValuesResponse"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/drive",
+ "https://www.googleapis.com/auth/spreadsheets"
+ ]
+ },
"batchGet": {
"description": "Returns one or more ranges of values from a spreadsheet.\nThe caller must specify the spreadsheet ID and one or more ranges.",
"httpMethod": "GET",
@@ -428,178 +566,40 @@
"https://www.googleapis.com/auth/spreadsheets",
"https://www.googleapis.com/auth/spreadsheets.readonly"
]
- },
- "clear": {
- "description": "Clears values from a spreadsheet.\nThe caller must specify the spreadsheet ID and range.\nOnly values are cleared -- all other properties of the cell (such as\nformatting, data validation, etc..) are kept.",
+ }
+ }
+ },
+ "sheets": {
+ "methods": {
+ "copyTo": {
+ "description": "Copies a single sheet from a spreadsheet to another spreadsheet.\nReturns the properties of the newly created sheet.",
"httpMethod": "POST",
- "id": "sheets.spreadsheets.values.clear",
+ "id": "sheets.spreadsheets.sheets.copyTo",
"parameterOrder": [
"spreadsheetId",
- "range"
+ "sheetId"
],
"parameters": {
- "spreadsheetId": {
- "description": "The ID of the spreadsheet to update.",
+ "sheetId": {
+ "description": "The ID of the sheet to copy.",
+ "format": "int32",
"location": "path",
"required": true,
- "type": "string"
+ "type": "integer"
},
- "range": {
- "description": "The A1 notation of the values to clear.",
+ "spreadsheetId": {
+ "description": "The ID of the spreadsheet containing the sheet to copy.",
"location": "path",
"required": true,
"type": "string"
}
},
- "path": "v4/spreadsheets/{spreadsheetId}/values/{range}:clear",
+ "path": "v4/spreadsheets/{spreadsheetId}/sheets/{sheetId}:copyTo",
"request": {
- "$ref": "ClearValuesRequest"
+ "$ref": "CopySheetToAnotherSpreadsheetRequest"
},
"response": {
- "$ref": "ClearValuesResponse"
- },
- "scopes": [
- "https://www.googleapis.com/auth/drive",
- "https://www.googleapis.com/auth/spreadsheets"
- ]
- },
- "append": {
- "description": "Appends values to a spreadsheet. The input range is used to search for\nexisting data and find a \"table\" within that range. Values will be\nappended to the next row of the table, starting with the first column of\nthe table. See the\n[guide](/sheets/api/guides/values#appending_values)\nand\n[sample code](/sheets/api/samples/writing#append_values)\nfor specific details of how tables are detected and data is appended.\n\nThe caller must specify the spreadsheet ID, range, and\na valueInputOption. The `valueInputOption` only\ncontrols how the input data will be added to the sheet (column-wise or\nrow-wise), it does not influence what cell the data starts being written\nto.",
- "httpMethod": "POST",
- "id": "sheets.spreadsheets.values.append",
- "parameterOrder": [
- "spreadsheetId",
- "range"
- ],
- "parameters": {
- "responseValueRenderOption": {
- "description": "Determines how values in the response should be rendered.\nThe default render option is ValueRenderOption.FORMATTED_VALUE.",
- "enum": [
- "FORMATTED_VALUE",
- "UNFORMATTED_VALUE",
- "FORMULA"
- ],
- "location": "query",
- "type": "string"
- },
- "insertDataOption": {
- "description": "How the input data should be inserted.",
- "enum": [
- "OVERWRITE",
- "INSERT_ROWS"
- ],
- "location": "query",
- "type": "string"
- },
- "valueInputOption": {
- "description": "How the input data should be interpreted.",
- "enum": [
- "INPUT_VALUE_OPTION_UNSPECIFIED",
- "RAW",
- "USER_ENTERED"
- ],
- "location": "query",
- "type": "string"
- },
- "responseDateTimeRenderOption": {
- "description": "Determines how dates, times, and durations in the response should be\nrendered. This is ignored if response_value_render_option is\nFORMATTED_VALUE.\nThe default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].",
- "enum": [
- "SERIAL_NUMBER",
- "FORMATTED_STRING"
- ],
- "location": "query",
- "type": "string"
- },
- "range": {
- "description": "The A1 notation of a range to search for a logical table of data.\nValues will be appended after the last row of the table.",
- "location": "path",
- "required": true,
- "type": "string"
- },
- "includeValuesInResponse": {
- "description": "Determines if the update response should include the values\nof the cells that were appended. By default, responses\ndo not include the updated values.",
- "location": "query",
- "type": "boolean"
- },
- "spreadsheetId": {
- "description": "The ID of the spreadsheet to update.",
- "location": "path",
- "required": true,
- "type": "string"
- }
- },
- "path": "v4/spreadsheets/{spreadsheetId}/values/{range}:append",
- "request": {
- "$ref": "ValueRange"
- },
- "response": {
- "$ref": "AppendValuesResponse"
- },
- "scopes": [
- "https://www.googleapis.com/auth/drive",
- "https://www.googleapis.com/auth/spreadsheets"
- ]
- },
- "batchClear": {
- "description": "Clears one or more ranges of values from a spreadsheet.\nThe caller must specify the spreadsheet ID and one or more ranges.\nOnly values are cleared -- all other properties of the cell (such as\nformatting, data validation, etc..) are kept.",
- "httpMethod": "POST",
- "id": "sheets.spreadsheets.values.batchClear",
- "parameterOrder": [
- "spreadsheetId"
- ],
- "parameters": {
- "spreadsheetId": {
- "description": "The ID of the spreadsheet to update.",
- "location": "path",
- "required": true,
- "type": "string"
- }
- },
- "path": "v4/spreadsheets/{spreadsheetId}/values:batchClear",
- "request": {
- "$ref": "BatchClearValuesRequest"
- },
- "response": {
- "$ref": "BatchClearValuesResponse"
- },
- "scopes": [
- "https://www.googleapis.com/auth/drive",
- "https://www.googleapis.com/auth/spreadsheets"
- ]
- }
- }
- },
- "sheets": {
- "methods": {
- "copyTo": {
- "description": "Copies a single sheet from a spreadsheet to another spreadsheet.\nReturns the properties of the newly created sheet.",
- "httpMethod": "POST",
- "id": "sheets.spreadsheets.sheets.copyTo",
- "parameterOrder": [
- "spreadsheetId",
- "sheetId"
- ],
- "parameters": {
- "spreadsheetId": {
- "description": "The ID of the spreadsheet containing the sheet to copy.",
- "location": "path",
- "required": true,
- "type": "string"
- },
- "sheetId": {
- "description": "The ID of the sheet to copy.",
- "format": "int32",
- "location": "path",
- "required": true,
- "type": "integer"
- }
- },
- "path": "v4/spreadsheets/{spreadsheetId}/sheets/{sheetId}:copyTo",
- "request": {
- "$ref": "CopySheetToAnotherSpreadsheetRequest"
- },
- "response": {
- "$ref": "SheetProperties"
+ "$ref": "SheetProperties"
},
"scopes": [
"https://www.googleapis.com/auth/drive",
@@ -611,82 +611,32 @@
}
}
},
- "revision": "20170317",
+ "revision": "20170414",
"rootUrl": "https://sheets.googleapis.com/",
"schemas": {
- "UpdateChartSpecRequest": {
- "description": "Updates a chart's specifications.\n(This does not move or resize a chart. To move or resize a chart, use\n UpdateEmbeddedObjectPositionRequest.)",
- "id": "UpdateChartSpecRequest",
- "properties": {
- "spec": {
- "$ref": "ChartSpec",
- "description": "The specification to apply to the chart."
- },
- "chartId": {
- "description": "The ID of the chart to update.",
- "format": "int32",
- "type": "integer"
- }
- },
- "type": "object"
- },
- "DeleteFilterViewRequest": {
- "description": "Deletes a particular filter view.",
- "id": "DeleteFilterViewRequest",
- "properties": {
- "filterId": {
- "description": "The ID of the filter to delete.",
- "format": "int32",
- "type": "integer"
- }
- },
- "type": "object"
- },
- "BatchUpdateValuesResponse": {
- "description": "The response when updating a range of values in a spreadsheet.",
- "id": "BatchUpdateValuesResponse",
+ "FilterView": {
+ "description": "A filter view.",
+ "id": "FilterView",
"properties": {
- "spreadsheetId": {
- "description": "The spreadsheet the updates were applied to.",
- "type": "string"
- },
- "totalUpdatedRows": {
- "description": "The total number of rows where at least one cell in the row was updated.",
+ "filterViewId": {
+ "description": "The ID of the filter view.",
"format": "int32",
"type": "integer"
},
- "responses": {
- "description": "One UpdateValuesResponse per requested range, in the same order as\nthe requests appeared.",
- "items": {
- "$ref": "UpdateValuesResponse"
+ "criteria": {
+ "additionalProperties": {
+ "$ref": "FilterCriteria"
},
- "type": "array"
- },
- "totalUpdatedSheets": {
- "description": "The total number of sheets where at least one cell in the sheet was\nupdated.",
- "format": "int32",
- "type": "integer"
+ "description": "The criteria for showing/hiding values per column.\nThe map's key is the column index, and the value is the criteria for\nthat column.",
+ "type": "object"
},
- "totalUpdatedCells": {
- "description": "The total number of cells updated.",
- "format": "int32",
- "type": "integer"
+ "title": {
+ "description": "The name of the filter view.",
+ "type": "string"
},
- "totalUpdatedColumns": {
- "description": "The total number of columns where at least one cell in the column was\nupdated.",
- "format": "int32",
- "type": "integer"
- }
- },
- "type": "object"
- },
- "SortRangeRequest": {
- "description": "Sorts data in rows based on a sort order per column.",
- "id": "SortRangeRequest",
- "properties": {
"range": {
"$ref": "GridRange",
- "description": "The range to sort."
+ "description": "The range this filter view covers.\n\nWhen writing, only one of range or named_range_id\nmay be set."
},
"sortSpecs": {
"description": "The sort order per column. Later specifications are used when values\nare equal in the earlier specifications.",
@@ -694,1419 +644,1527 @@
"$ref": "SortSpec"
},
"type": "array"
+ },
+ "namedRangeId": {
+ "description": "The named range this filter view is backed by, if any.\n\nWhen writing, only one of range or named_range_id\nmay be set.",
+ "type": "string"
}
},
"type": "object"
},
- "MergeCellsRequest": {
- "description": "Merges all cells in the range.",
- "id": "MergeCellsRequest",
+ "BandingProperties": {
+ "description": "Properties referring a single dimension (either row or column). If both\nBandedRange.row_properties and BandedRange.column_properties are\nset, the fill colors are applied to cells according to the following rules:\n\n* header_color and footer_color take priority over band colors.\n* first_band_color takes priority over second_band_color.\n* row_properties takes priority over column_properties.\n\nFor example, the first row color takes priority over the first column\ncolor, but the first column color takes priority over the second row color.\nSimilarly, the row header takes priority over the column header in the\ntop left cell, but the column header takes priority over the first row\ncolor if the row header is not set.",
+ "id": "BandingProperties",
"properties": {
- "mergeType": {
- "description": "How the cells should be merged.",
- "enum": [
- "MERGE_ALL",
- "MERGE_COLUMNS",
- "MERGE_ROWS"
- ],
- "enumDescriptions": [
- "Create a single merge from the range",
- "Create a merge for each column in the range",
- "Create a merge for each row in the range"
- ],
- "type": "string"
+ "footerColor": {
+ "$ref": "Color",
+ "description": "The color of the last row or column. If this field is not set, the last\nrow or column will be filled with either first_band_color or\nsecond_band_color, depending on the color of the previous row or\ncolumn."
},
- "range": {
- "$ref": "GridRange",
- "description": "The range of cells to merge."
+ "headerColor": {
+ "$ref": "Color",
+ "description": "The color of the first row or column. If this field is set, the first\nrow or column will be filled with this color and the colors will\nalternate between first_band_color and second_band_color starting\nfrom the second row or column. Otherwise, the first row or column will be\nfilled with first_band_color and the colors will proceed to alternate\nas they normally would."
+ },
+ "firstBandColor": {
+ "$ref": "Color",
+ "description": "The first color that is alternating. (Required)"
+ },
+ "secondBandColor": {
+ "$ref": "Color",
+ "description": "The second color that is alternating. (Required)"
}
},
"type": "object"
},
- "AddProtectedRangeRequest": {
- "description": "Adds a new protected range.",
- "id": "AddProtectedRangeRequest",
+ "AddProtectedRangeResponse": {
+ "description": "The result of adding a new protected range.",
+ "id": "AddProtectedRangeResponse",
"properties": {
"protectedRange": {
"$ref": "ProtectedRange",
- "description": "The protected range to be added. The\nprotectedRangeId field is optional; if\none is not set, an id will be randomly generated. (It is an error to\nspecify the ID of a range that already exists.)"
+ "description": "The newly added protected range."
}
},
"type": "object"
},
- "BatchClearValuesRequest": {
- "description": "The request for clearing more than one range of values in a spreadsheet.",
- "id": "BatchClearValuesRequest",
+ "BasicFilter": {
+ "description": "The default filter associated with a sheet.",
+ "id": "BasicFilter",
"properties": {
- "ranges": {
- "description": "The ranges to clear, in A1 notation.",
+ "range": {
+ "$ref": "GridRange",
+ "description": "The range the filter covers."
+ },
+ "criteria": {
+ "additionalProperties": {
+ "$ref": "FilterCriteria"
+ },
+ "description": "The criteria for showing/hiding values per column.\nThe map's key is the column index, and the value is the criteria for\nthat column.",
+ "type": "object"
+ },
+ "sortSpecs": {
+ "description": "The sort order per column. Later specifications are used when values\nare equal in the earlier specifications.",
"items": {
- "type": "string"
+ "$ref": "SortSpec"
},
"type": "array"
}
},
"type": "object"
},
- "DuplicateFilterViewResponse": {
- "description": "The result of a filter view being duplicated.",
- "id": "DuplicateFilterViewResponse",
- "properties": {
- "filter": {
- "$ref": "FilterView",
- "description": "The newly created filter."
- }
- },
- "type": "object"
- },
- "DuplicateSheetResponse": {
- "description": "The result of duplicating a sheet.",
- "id": "DuplicateSheetResponse",
+ "UpdateValuesResponse": {
+ "description": "The response when updating a range of values in a spreadsheet.",
+ "id": "UpdateValuesResponse",
"properties": {
- "properties": {
- "$ref": "SheetProperties",
- "description": "The properties of the duplicate sheet."
+ "spreadsheetId": {
+ "description": "The spreadsheet the updates were applied to.",
+ "type": "string"
+ },
+ "updatedRange": {
+ "description": "The range (in A1 notation) that updates were applied to.",
+ "type": "string"
+ },
+ "updatedCells": {
+ "description": "The number of cells updated.",
+ "format": "int32",
+ "type": "integer"
+ },
+ "updatedRows": {
+ "description": "The number of rows where at least one cell in the row was updated.",
+ "format": "int32",
+ "type": "integer"
+ },
+ "updatedData": {
+ "$ref": "ValueRange",
+ "description": "The values of the cells after updates were applied.\nThis is only included if the request's `includeValuesInResponse` field\nwas `true`."
+ },
+ "updatedColumns": {
+ "description": "The number of columns where at least one cell in the column was updated.",
+ "format": "int32",
+ "type": "integer"
}
},
"type": "object"
},
- "TextToColumnsRequest": {
- "description": "Splits a column of text into multiple columns,\nbased on a delimiter in each cell.",
- "id": "TextToColumnsRequest",
+ "PivotValue": {
+ "description": "The definition of how a value in a pivot table should be calculated.",
+ "id": "PivotValue",
"properties": {
- "source": {
- "$ref": "GridRange",
- "description": "The source data range. This must span exactly one column."
+ "formula": {
+ "description": "A custom formula to calculate the value. The formula must start\nwith an `=` character.",
+ "type": "string"
},
- "delimiterType": {
- "description": "The delimiter type to use.",
+ "summarizeFunction": {
+ "description": "A function to summarize the value.\nIf formula is set, the only supported values are\nSUM and\nCUSTOM.\nIf sourceColumnOffset is set, then `CUSTOM`\nis not supported.",
"enum": [
- "DELIMITER_TYPE_UNSPECIFIED",
- "COMMA",
- "SEMICOLON",
- "PERIOD",
- "SPACE",
+ "PIVOT_STANDARD_VALUE_FUNCTION_UNSPECIFIED",
+ "SUM",
+ "COUNTA",
+ "COUNT",
+ "COUNTUNIQUE",
+ "AVERAGE",
+ "MAX",
+ "MIN",
+ "MEDIAN",
+ "PRODUCT",
+ "STDEV",
+ "STDEVP",
+ "VAR",
+ "VARP",
"CUSTOM"
],
"enumDescriptions": [
- "Default value. This value must not be used.",
- "\",\"",
- "\";\"",
- "\".\"",
- "\" \"",
- "A custom value as defined in delimiter."
+ "The default, do not use.",
+ "Corresponds to the `SUM` function.",
+ "Corresponds to the `COUNTA` function.",
+ "Corresponds to the `COUNT` function.",
+ "Corresponds to the `COUNTUNIQUE` function.",
+ "Corresponds to the `AVERAGE` function.",
+ "Corresponds to the `MAX` function.",
+ "Corresponds to the `MIN` function.",
+ "Corresponds to the `MEDIAN` function.",
+ "Corresponds to the `PRODUCT` function.",
+ "Corresponds to the `STDEV` function.",
+ "Corresponds to the `STDEVP` function.",
+ "Corresponds to the `VAR` function.",
+ "Corresponds to the `VARP` function.",
+ "Indicates the formula should be used as-is.\nOnly valid if PivotValue.formula was set."
],
"type": "string"
},
- "delimiter": {
- "description": "The delimiter to use. Used only if delimiterType is\nCUSTOM.",
+ "sourceColumnOffset": {
+ "description": "The column offset of the source range that this value reads from.\n\nFor example, if the source was `C10:E15`, a `sourceColumnOffset` of `0`\nmeans this value refers to column `C`, whereas the offset `1` would\nrefer to column `D`.",
+ "format": "int32",
+ "type": "integer"
+ },
+ "name": {
+ "description": "A name to use for the value. This is only used if formula was set.\nOtherwise, the column name is used.",
"type": "string"
}
},
"type": "object"
},
- "ClearBasicFilterRequest": {
- "description": "Clears the basic filter, if any exists on the sheet.",
- "id": "ClearBasicFilterRequest",
+ "ErrorValue": {
+ "description": "An error in a cell.",
+ "id": "ErrorValue",
"properties": {
- "sheetId": {
- "description": "The sheet ID on which the basic filter should be cleared.",
- "format": "int32",
- "type": "integer"
+ "type": {
+ "description": "The type of error.",
+ "enum": [
+ "ERROR_TYPE_UNSPECIFIED",
+ "ERROR",
+ "NULL_VALUE",
+ "DIVIDE_BY_ZERO",
+ "VALUE",
+ "REF",
+ "NAME",
+ "NUM",
+ "N_A",
+ "LOADING"
+ ],
+ "enumDescriptions": [
+ "The default error type, do not use this.",
+ "Corresponds to the `#ERROR!` error.",
+ "Corresponds to the `#NULL!` error.",
+ "Corresponds to the `#DIV/0` error.",
+ "Corresponds to the `#VALUE!` error.",
+ "Corresponds to the `#REF!` error.",
+ "Corresponds to the `#NAME?` error.",
+ "Corresponds to the `#NUM`! error.",
+ "Corresponds to the `#N/A` error.",
+ "Corresponds to the `Loading...` state."
+ ],
+ "type": "string"
+ },
+ "message": {
+ "description": "A message with more information about the error\n(in the spreadsheet's locale).",
+ "type": "string"
}
},
"type": "object"
},
- "BatchUpdateSpreadsheetResponse": {
- "description": "The reply for batch updating a spreadsheet.",
- "id": "BatchUpdateSpreadsheetResponse",
+ "CopySheetToAnotherSpreadsheetRequest": {
+ "description": "The request to copy a sheet across spreadsheets.",
+ "id": "CopySheetToAnotherSpreadsheetRequest",
"properties": {
- "replies": {
- "description": "The reply of the updates. This maps 1:1 with the updates, although\nreplies to some requests may be empty.",
- "items": {
- "$ref": "Response"
- },
- "type": "array"
- },
- "updatedSpreadsheet": {
- "$ref": "Spreadsheet",
- "description": "The spreadsheet after updates were applied. This is only set if\n[BatchUpdateSpreadsheetRequest.include_spreadsheet_in_response] is `true`."
- },
- "spreadsheetId": {
- "description": "The spreadsheet the updates were applied to.",
+ "destinationSpreadsheetId": {
+ "description": "The ID of the spreadsheet to copy the sheet to.",
"type": "string"
}
},
"type": "object"
},
- "DeleteBandingRequest": {
- "description": "Removes the banded range with the given ID from the spreadsheet.",
- "id": "DeleteBandingRequest",
+ "PivotGroupSortValueBucket": {
+ "description": "Information about which values in a pivot group should be used for sorting.",
+ "id": "PivotGroupSortValueBucket",
"properties": {
- "bandedRangeId": {
- "description": "The ID of the banded range to delete.",
+ "buckets": {
+ "description": "Determines the bucket from which values are chosen to sort.\n\nFor example, in a pivot table with one row group & two column groups,\nthe row group can list up to two values. The first value corresponds\nto a value within the first column group, and the second value\ncorresponds to a value in the second column group. If no values\nare listed, this would indicate that the row should be sorted according\nto the \"Grand Total\" over the column groups. If a single value is listed,\nthis would correspond to using the \"Total\" of that bucket.",
+ "items": {
+ "$ref": "ExtendedValue"
+ },
+ "type": "array"
+ },
+ "valuesIndex": {
+ "description": "The offset in the PivotTable.values list which the values in this\ngrouping should be sorted by.",
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
- "AppendValuesResponse": {
- "description": "The response when updating a range of values in a spreadsheet.",
- "id": "AppendValuesResponse",
+ "EmbeddedObjectPosition": {
+ "description": "The position of an embedded object such as a chart.",
+ "id": "EmbeddedObjectPosition",
"properties": {
- "spreadsheetId": {
- "description": "The spreadsheet the updates were applied to.",
- "type": "string"
+ "newSheet": {
+ "description": "If true, the embedded object will be put on a new sheet whose ID\nis chosen for you. Used only when writing.",
+ "type": "boolean"
},
- "updates": {
- "$ref": "UpdateValuesResponse",
- "description": "Information about the updates that were applied."
+ "sheetId": {
+ "description": "The sheet this is on. Set only if the embedded object\nis on its own sheet. Must be non-negative.",
+ "format": "int32",
+ "type": "integer"
},
- "tableRange": {
- "description": "The range (in A1 notation) of the table that values are being appended to\n(before the values were appended).\nEmpty if no table was found.",
- "type": "string"
+ "overlayPosition": {
+ "$ref": "OverlayPosition",
+ "description": "The position at which the object is overlaid on top of a grid."
}
},
"type": "object"
},
- "MoveDimensionRequest": {
- "description": "Moves one or more rows or columns.",
- "id": "MoveDimensionRequest",
+ "DeleteProtectedRangeRequest": {
+ "description": "Deletes the protected range with the given ID.",
+ "id": "DeleteProtectedRangeRequest",
"properties": {
- "destinationIndex": {
- "description": "The zero-based start index of where to move the source data to,\nbased on the coordinates *before* the source data is removed\nfrom the grid. Existing data will be shifted down or right\n(depending on the dimension) to make room for the moved dimensions.\nThe source dimensions are removed from the grid, so the\nthe data may end up in a different index than specified.\n\nFor example, given `A1..A5` of `0, 1, 2, 3, 4` and wanting to move\n`\"1\"` and `\"2\"` to between `\"3\"` and `\"4\"`, the source would be\n`ROWS [1..3)`,and the destination index would be `\"4\"`\n(the zero-based index of row 5).\nThe end result would be `A1..A5` of `0, 3, 1, 2, 4`.",
+ "protectedRangeId": {
+ "description": "The ID of the protected range to delete.",
"format": "int32",
"type": "integer"
- },
- "source": {
- "$ref": "DimensionRange",
- "description": "The source dimensions to move."
}
},
"type": "object"
},
- "PivotFilterCriteria": {
- "description": "Criteria for showing/hiding rows in a pivot table.",
- "id": "PivotFilterCriteria",
+ "AutoFillRequest": {
+ "description": "Fills in more data based on existing data.",
+ "id": "AutoFillRequest",
"properties": {
- "visibleValues": {
- "description": "Values that should be included. Values not listed here are excluded.",
- "items": {
- "type": "string"
- },
- "type": "array"
+ "useAlternateSeries": {
+ "description": "True if we should generate data with the \"alternate\" series.\nThis differs based on the type and amount of source data.",
+ "type": "boolean"
+ },
+ "sourceAndDestination": {
+ "$ref": "SourceAndDestination",
+ "description": "The source and destination areas to autofill.\nThis explicitly lists the source of the autofill and where to\nextend that data."
+ },
+ "range": {
+ "$ref": "GridRange",
+ "description": "The range to autofill. This will examine the range and detect\nthe location that has data and automatically fill that data\nin to the rest of the range."
}
},
"type": "object"
},
- "AddFilterViewRequest": {
- "description": "Adds a filter view.",
- "id": "AddFilterViewRequest",
+ "GradientRule": {
+ "description": "A rule that applies a gradient color scale format, based on\nthe interpolation points listed. The format of a cell will vary\nbased on its contents as compared to the values of the interpolation\npoints.",
+ "id": "GradientRule",
"properties": {
- "filter": {
- "$ref": "FilterView",
- "description": "The filter to add. The filterViewId\nfield is optional; if one is not set, an id will be randomly generated. (It\nis an error to specify the ID of a filter that already exists.)"
+ "midpoint": {
+ "$ref": "InterpolationPoint",
+ "description": "An optional midway interpolation point."
+ },
+ "minpoint": {
+ "$ref": "InterpolationPoint",
+ "description": "The starting interpolation point."
+ },
+ "maxpoint": {
+ "$ref": "InterpolationPoint",
+ "description": "The final interpolation point."
}
},
"type": "object"
},
- "AddConditionalFormatRuleRequest": {
- "description": "Adds a new conditional format rule at the given index.\nAll subsequent rules' indexes are incremented.",
- "id": "AddConditionalFormatRuleRequest",
- "properties": {
- "rule": {
- "$ref": "ConditionalFormatRule",
- "description": "The rule to add."
- },
- "index": {
- "description": "The zero-based index where the rule should be inserted.",
- "format": "int32",
- "type": "integer"
- }
- },
+ "ClearValuesRequest": {
+ "description": "The request for clearing a range of values in a spreadsheet.",
+ "id": "ClearValuesRequest",
+ "properties": {},
"type": "object"
},
- "ChartSpec": {
- "description": "The specifications of a chart.",
- "id": "ChartSpec",
+ "SetBasicFilterRequest": {
+ "description": "Sets the basic filter associated with a sheet.",
+ "id": "SetBasicFilterRequest",
"properties": {
- "title": {
- "description": "The title of the chart.",
- "type": "string"
- },
- "pieChart": {
- "$ref": "PieChartSpec",
- "description": "A pie chart specification."
- },
- "basicChart": {
- "$ref": "BasicChartSpec",
- "description": "A basic chart specification, can be one of many kinds of charts.\nSee BasicChartType for the list of all\ncharts this supports."
- },
- "hiddenDimensionStrategy": {
- "description": "Determines how the charts will use hidden rows or columns.",
- "enum": [
- "CHART_HIDDEN_DIMENSION_STRATEGY_UNSPECIFIED",
- "SKIP_HIDDEN_ROWS_AND_COLUMNS",
- "SKIP_HIDDEN_ROWS",
- "SKIP_HIDDEN_COLUMNS",
- "SHOW_ALL"
- ],
- "enumDescriptions": [
- "Default value, do not use.",
- "Charts will skip hidden rows and columns.",
- "Charts will skip hidden rows only.",
- "Charts will skip hidden columns only.",
- "Charts will not skip any hidden rows or columns."
- ],
- "type": "string"
+ "filter": {
+ "$ref": "BasicFilter",
+ "description": "The filter to set."
}
},
"type": "object"
},
- "NumberFormat": {
- "description": "The number format of a cell.",
- "id": "NumberFormat",
+ "InterpolationPoint": {
+ "description": "A single interpolation point on a gradient conditional format.\nThese pin the gradient color scale according to the color,\ntype and value chosen.",
+ "id": "InterpolationPoint",
"properties": {
"type": {
- "description": "The type of the number format.\nWhen writing, this field must be set.",
+ "description": "How the value should be interpreted.",
"enum": [
- "NUMBER_FORMAT_TYPE_UNSPECIFIED",
- "TEXT",
+ "INTERPOLATION_POINT_TYPE_UNSPECIFIED",
+ "MIN",
+ "MAX",
"NUMBER",
"PERCENT",
- "CURRENCY",
- "DATE",
- "TIME",
- "DATE_TIME",
- "SCIENTIFIC"
+ "PERCENTILE"
],
"enumDescriptions": [
- "The number format is not specified\nand is based on the contents of the cell.\nDo not explicitly use this.",
- "Text formatting, e.g `1000.12`",
- "Number formatting, e.g, `1,000.12`",
- "Percent formatting, e.g `10.12%`",
- "Currency formatting, e.g `$1,000.12`",
- "Date formatting, e.g `9/26/2008`",
- "Time formatting, e.g `3:59:00 PM`",
- "Date+Time formatting, e.g `9/26/08 15:59:00`",
- "Scientific number formatting, e.g `1.01E+03`"
+ "The default value, do not use.",
+ "The interpolation point will use the minimum value in the\ncells over the range of the conditional format.",
+ "The interpolation point will use the maximum value in the\ncells over the range of the conditional format.",
+ "The interpolation point will use exactly the value in\nInterpolationPoint.value.",
+ "The interpolation point will be the given percentage over\nall the cells in the range of the conditional format.\nThis is equivalent to NUMBER if the value was:\n`=(MAX(FLATTEN(range)) * (value / 100))\n + (MIN(FLATTEN(range)) * (1 - (value / 100)))`\n(where errors in the range are ignored when flattening).",
+ "The interpolation point will be the given percentile\nover all the cells in the range of the conditional format.\nThis is equivalent to NUMBER if the value was:\n`=PERCENTILE(FLATTEN(range), value / 100)`\n(where errors in the range are ignored when flattening)."
],
"type": "string"
},
- "pattern": {
- "description": "Pattern string used for formatting. If not set, a default pattern based on\nthe user's locale will be used if necessary for the given type.\nSee the [Date and Number Formats guide](/sheets/api/guides/formats) for more\ninformation about the supported patterns.",
+ "value": {
+ "description": "The value this interpolation point uses. May be a formula.\nUnused if type is MIN or\nMAX.",
"type": "string"
+ },
+ "color": {
+ "$ref": "Color",
+ "description": "The color this interpolation point should use."
}
},
"type": "object"
},
- "SheetProperties": {
- "description": "Properties of a sheet.",
- "id": "SheetProperties",
+ "FindReplaceResponse": {
+ "description": "The result of the find/replace.",
+ "id": "FindReplaceResponse",
"properties": {
- "title": {
- "description": "The name of the sheet.",
- "type": "string"
- },
- "tabColor": {
- "$ref": "Color",
- "description": "The color of the tab in the UI."
- },
- "index": {
- "description": "The index of the sheet within the spreadsheet.\nWhen adding or updating sheet properties, if this field\nis excluded then the sheet will be added or moved to the end\nof the sheet list. When updating sheet indices or inserting\nsheets, movement is considered in \"before the move\" indexes.\nFor example, if there were 3 sheets (S1, S2, S3) in order to\nmove S1 ahead of S2 the index would have to be set to 2. A sheet\nindex update request will be ignored if the requested index is\nidentical to the sheets current index or if the requested new\nindex is equal to the current sheet index + 1.",
+ "sheetsChanged": {
+ "description": "The number of sheets changed.",
"format": "int32",
"type": "integer"
},
- "sheetId": {
- "description": "The ID of the sheet. Must be non-negative.\nThis field cannot be changed once set.",
+ "formulasChanged": {
+ "description": "The number of formula cells changed.",
"format": "int32",
"type": "integer"
},
- "rightToLeft": {
- "description": "True if the sheet is an RTL sheet instead of an LTR sheet.",
- "type": "boolean"
- },
- "hidden": {
- "description": "True if the sheet is hidden in the UI, false if it's visible.",
- "type": "boolean"
+ "valuesChanged": {
+ "description": "The number of non-formula cells changed.",
+ "format": "int32",
+ "type": "integer"
},
- "gridProperties": {
- "$ref": "GridProperties",
- "description": "Additional properties of the sheet if this sheet is a grid.\n(If the sheet is an object sheet, containing a chart or image, then\nthis field will be absent.)\nWhen writing it is an error to set any grid properties on non-grid sheets."
+ "occurrencesChanged": {
+ "description": "The number of occurrences (possibly multiple within a cell) changed.\nFor example, if replacing `\"e\"` with `\"o\"` in `\"Google Sheets\"`, this would\nbe `\"3\"` because `\"Google Sheets\"` -> `\"Googlo Shoots\"`.",
+ "format": "int32",
+ "type": "integer"
},
- "sheetType": {
- "description": "The type of sheet. Defaults to GRID.\nThis field cannot be changed once set.",
- "enum": [
- "SHEET_TYPE_UNSPECIFIED",
- "GRID",
- "OBJECT"
- ],
- "enumDescriptions": [
- "Default value, do not use.",
- "The sheet is a grid.",
- "The sheet has no grid and instead has an object like a chart or image."
- ],
- "type": "string"
+ "rowsChanged": {
+ "description": "The number of rows changed.",
+ "format": "int32",
+ "type": "integer"
}
},
"type": "object"
},
- "UpdateDimensionPropertiesRequest": {
- "description": "Updates properties of dimensions within the specified range.",
- "id": "UpdateDimensionPropertiesRequest",
+ "DeleteEmbeddedObjectRequest": {
+ "description": "Deletes the embedded object with the given ID.",
+ "id": "DeleteEmbeddedObjectRequest",
"properties": {
- "fields": {
- "description": "The fields that should be updated. At least one field must be specified.\nThe root `properties` is implied and should not be specified.\nA single `\"*\"` can be used as short-hand for listing every field.",
- "format": "google-fieldmask",
- "type": "string"
- },
- "properties": {
- "$ref": "DimensionProperties",
- "description": "Properties to update."
- },
- "range": {
- "$ref": "DimensionRange",
- "description": "The rows or columns to update."
+ "objectId": {
+ "description": "The ID of the embedded object to delete.",
+ "format": "int32",
+ "type": "integer"
}
},
"type": "object"
},
- "SourceAndDestination": {
- "description": "A combination of a source range and how to extend that source.",
- "id": "SourceAndDestination",
+ "DeleteSheetRequest": {
+ "description": "Deletes the requested sheet.",
+ "id": "DeleteSheetRequest",
"properties": {
- "source": {
- "$ref": "GridRange",
- "description": "The location of the data to use as the source of the autofill."
- },
- "dimension": {
- "description": "The dimension that data should be filled into.",
- "enum": [
- "DIMENSION_UNSPECIFIED",
- "ROWS",
- "COLUMNS"
- ],
- "enumDescriptions": [
- "The default value, do not use.",
- "Operates on the rows of a sheet.",
- "Operates on the columns of a sheet."
- ],
- "type": "string"
- },
- "fillLength": {
- "description": "The number of rows or columns that data should be filled into.\nPositive numbers expand beyond the last row or last column\nof the source. Negative numbers expand before the first row\nor first column of the source.",
+ "sheetId": {
+ "description": "The ID of the sheet to delete.",
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
- "FilterView": {
- "description": "A filter view.",
- "id": "FilterView",
+ "DuplicateFilterViewRequest": {
+ "description": "Duplicates a particular filter view.",
+ "id": "DuplicateFilterViewRequest",
"properties": {
- "namedRangeId": {
- "description": "The named range this filter view is backed by, if any.\n\nWhen writing, only one of range or named_range_id\nmay be set.",
- "type": "string"
- },
- "filterViewId": {
- "description": "The ID of the filter view.",
+ "filterId": {
+ "description": "The ID of the filter being duplicated.",
"format": "int32",
"type": "integer"
- },
- "range": {
- "$ref": "GridRange",
- "description": "The range this filter view covers.\n\nWhen writing, only one of range or named_range_id\nmay be set."
- },
- "criteria": {
- "additionalProperties": {
- "$ref": "FilterCriteria"
- },
- "description": "The criteria for showing/hiding values per column.\nThe map's key is the column index, and the value is the criteria for\nthat column.",
- "type": "object"
- },
- "title": {
- "description": "The name of the filter view.",
- "type": "string"
- },
- "sortSpecs": {
- "description": "The sort order per column. Later specifications are used when values\nare equal in the earlier specifications.",
- "items": {
- "$ref": "SortSpec"
- },
- "type": "array"
}
},
"type": "object"
},
- "BandingProperties": {
- "description": "Properties referring a single dimension (either row or column). If both\nBandedRange.row_properties and BandedRange.column_properties are\nset, the fill colors are applied to cells according to the following rules:\n\n* header_color and footer_color take priority over band colors.\n* first_band_color takes priority over second_band_color.\n* row_properties takes priority over column_properties.\n\nFor example, the first row color takes priority over the first column\ncolor, but the first column color takes priority over the second row color.\nSimilarly, the row header takes priority over the column header in the\ntop left cell, but the column header takes priority over the first row\ncolor if the row header is not set.",
- "id": "BandingProperties",
+ "UpdateConditionalFormatRuleResponse": {
+ "description": "The result of updating a conditional format rule.",
+ "id": "UpdateConditionalFormatRuleResponse",
"properties": {
- "secondBandColor": {
- "$ref": "Color",
- "description": "The second color that is alternating. (Required)"
- },
- "footerColor": {
- "$ref": "Color",
- "description": "The color of the last row or column. If this field is not set, the last\nrow or column will be filled with either first_band_color or\nsecond_band_color, depending on the color of the previous row or\ncolumn."
+ "newIndex": {
+ "description": "The index of the new rule.",
+ "format": "int32",
+ "type": "integer"
},
- "headerColor": {
- "$ref": "Color",
- "description": "The color of the first row or column. If this field is set, the first\nrow or column will be filled with this color and the colors will\nalternate between first_band_color and second_band_color starting\nfrom the second row or column. Otherwise, the first row or column will be\nfilled with first_band_color and the colors will proceed to alternate\nas they normally would."
+ "oldIndex": {
+ "description": "The old index of the rule. Not set if a rule was replaced\n(because it is the same as new_index).",
+ "format": "int32",
+ "type": "integer"
},
- "firstBandColor": {
- "$ref": "Color",
- "description": "The first color that is alternating. (Required)"
- }
- },
- "type": "object"
- },
- "AddProtectedRangeResponse": {
- "description": "The result of adding a new protected range.",
- "id": "AddProtectedRangeResponse",
- "properties": {
- "protectedRange": {
- "$ref": "ProtectedRange",
- "description": "The newly added protected range."
+ "newRule": {
+ "$ref": "ConditionalFormatRule",
+ "description": "The new rule that replaced the old rule (if replacing),\nor the rule that was moved (if moved)"
+ },
+ "oldRule": {
+ "$ref": "ConditionalFormatRule",
+ "description": "The old (deleted) rule. Not set if a rule was moved\n(because it is the same as new_rule)."
}
},
"type": "object"
},
- "BasicFilter": {
- "description": "The default filter associated with a sheet.",
- "id": "BasicFilter",
+ "ConditionValue": {
+ "description": "The value of the condition.",
+ "id": "ConditionValue",
"properties": {
- "range": {
- "$ref": "GridRange",
- "description": "The range the filter covers."
- },
- "criteria": {
- "additionalProperties": {
- "$ref": "FilterCriteria"
- },
- "description": "The criteria for showing/hiding values per column.\nThe map's key is the column index, and the value is the criteria for\nthat column.",
- "type": "object"
+ "relativeDate": {
+ "description": "A relative date (based on the current date).\nValid only if the type is\nDATE_BEFORE,\nDATE_AFTER,\nDATE_ON_OR_BEFORE or\nDATE_ON_OR_AFTER.\n\nRelative dates are not supported in data validation.\nThey are supported only in conditional formatting and\nconditional filters.",
+ "enum": [
+ "RELATIVE_DATE_UNSPECIFIED",
+ "PAST_YEAR",
+ "PAST_MONTH",
+ "PAST_WEEK",
+ "YESTERDAY",
+ "TODAY",
+ "TOMORROW"
+ ],
+ "enumDescriptions": [
+ "Default value, do not use.",
+ "The value is one year before today.",
+ "The value is one month before today.",
+ "The value is one week before today.",
+ "The value is yesterday.",
+ "The value is today.",
+ "The value is tomorrow."
+ ],
+ "type": "string"
},
- "sortSpecs": {
- "description": "The sort order per column. Later specifications are used when values\nare equal in the earlier specifications.",
- "items": {
- "$ref": "SortSpec"
- },
- "type": "array"
+ "userEnteredValue": {
+ "description": "A value the condition is based on.\nThe value will be parsed as if the user typed into a cell.\nFormulas are supported (and must begin with an `=`).",
+ "type": "string"
}
},
"type": "object"
},
- "UpdateValuesResponse": {
- "description": "The response when updating a range of values in a spreadsheet.",
- "id": "UpdateValuesResponse",
+ "DuplicateSheetRequest": {
+ "description": "Duplicates the contents of a sheet.",
+ "id": "DuplicateSheetRequest",
"properties": {
- "updatedCells": {
- "description": "The number of cells updated.",
+ "newSheetName": {
+ "description": "The name of the new sheet. If empty, a new name is chosen for you.",
+ "type": "string"
+ },
+ "sourceSheetId": {
+ "description": "The sheet to duplicate.",
"format": "int32",
"type": "integer"
},
- "updatedData": {
- "$ref": "ValueRange",
- "description": "The values of the cells after updates were applied.\nThis is only included if the request's `includeValuesInResponse` field\nwas `true`."
- },
- "updatedRows": {
- "description": "The number of rows where at least one cell in the row was updated.",
+ "newSheetId": {
+ "description": "If set, the ID of the new sheet. If not set, an ID is chosen.\nIf set, the ID must not conflict with any existing sheet ID.\nIf set, it must be non-negative.",
"format": "int32",
"type": "integer"
},
- "updatedColumns": {
- "description": "The number of columns where at least one cell in the column was updated.",
+ "insertSheetIndex": {
+ "description": "The zero-based index where the new sheet should be inserted.\nThe index of all sheets after this are incremented.",
"format": "int32",
"type": "integer"
- },
- "spreadsheetId": {
- "description": "The spreadsheet the updates were applied to.",
- "type": "string"
- },
- "updatedRange": {
- "description": "The range (in A1 notation) that updates were applied to.",
- "type": "string"
}
},
"type": "object"
},
- "ErrorValue": {
- "description": "An error in a cell.",
- "id": "ErrorValue",
+ "ExtendedValue": {
+ "description": "The kinds of value that a cell in a spreadsheet can have.",
+ "id": "ExtendedValue",
"properties": {
- "type": {
- "description": "The type of error.",
- "enum": [
- "ERROR_TYPE_UNSPECIFIED",
- "ERROR",
- "NULL_VALUE",
- "DIVIDE_BY_ZERO",
- "VALUE",
- "REF",
- "NAME",
- "NUM",
- "N_A",
- "LOADING"
- ],
- "enumDescriptions": [
- "The default error type, do not use this.",
- "Corresponds to the `#ERROR!` error.",
- "Corresponds to the `#NULL!` error.",
- "Corresponds to the `#DIV/0` error.",
- "Corresponds to the `#VALUE!` error.",
- "Corresponds to the `#REF!` error.",
- "Corresponds to the `#NAME?` error.",
- "Corresponds to the `#NUM`! error.",
- "Corresponds to the `#N/A` error.",
- "Corresponds to the `Loading...` state."
- ],
- "type": "string"
+ "errorValue": {
+ "$ref": "ErrorValue",
+ "description": "Represents an error.\nThis field is read-only."
},
- "message": {
- "description": "A message with more information about the error\n(in the spreadsheet's locale).",
- "type": "string"
- }
- },
- "type": "object"
- },
- "PivotValue": {
- "description": "The definition of how a value in a pivot table should be calculated.",
- "id": "PivotValue",
- "properties": {
- "name": {
- "description": "A name to use for the value. This is only used if formula was set.\nOtherwise, the column name is used.",
+ "stringValue": {
+ "description": "Represents a string value.\nLeading single quotes are not included. For example, if the user typed\n`'123` into the UI, this would be represented as a `stringValue` of\n`\"123\"`.",
"type": "string"
},
- "formula": {
- "description": "A custom formula to calculate the value. The formula must start\nwith an `=` character.",
- "type": "string"
+ "boolValue": {
+ "description": "Represents a boolean value.",
+ "type": "boolean"
},
- "summarizeFunction": {
- "description": "A function to summarize the value.\nIf formula is set, the only supported values are\nSUM and\nCUSTOM.\nIf sourceColumnOffset is set, then `CUSTOM`\nis not supported.",
- "enum": [
- "PIVOT_STANDARD_VALUE_FUNCTION_UNSPECIFIED",
- "SUM",
- "COUNTA",
- "COUNT",
- "COUNTUNIQUE",
- "AVERAGE",
- "MAX",
- "MIN",
- "MEDIAN",
- "PRODUCT",
- "STDEV",
- "STDEVP",
- "VAR",
- "VARP",
- "CUSTOM"
- ],
- "enumDescriptions": [
- "The default, do not use.",
- "Corresponds to the `SUM` function.",
- "Corresponds to the `COUNTA` function.",
- "Corresponds to the `COUNT` function.",
- "Corresponds to the `COUNTUNIQUE` function.",
- "Corresponds to the `AVERAGE` function.",
- "Corresponds to the `MAX` function.",
- "Corresponds to the `MIN` function.",
- "Corresponds to the `MEDIAN` function.",
- "Corresponds to the `PRODUCT` function.",
- "Corresponds to the `STDEV` function.",
- "Corresponds to the `STDEVP` function.",
- "Corresponds to the `VAR` function.",
- "Corresponds to the `VARP` function.",
- "Indicates the formula should be used as-is.\nOnly valid if PivotValue.formula was set."
- ],
+ "formulaValue": {
+ "description": "Represents a formula.",
"type": "string"
},
- "sourceColumnOffset": {
- "description": "The column offset of the source range that this value reads from.\n\nFor example, if the source was `C10:E15`, a `sourceColumnOffset` of `0`\nmeans this value refers to column `C`, whereas the offset `1` would\nrefer to column `D`.",
- "format": "int32",
- "type": "integer"
+ "numberValue": {
+ "description": "Represents a double value.\nNote: Dates, Times and DateTimes are represented as doubles in\n\"serial number\" format.",
+ "format": "double",
+ "type": "number"
}
},
"type": "object"
},
- "CopySheetToAnotherSpreadsheetRequest": {
- "description": "The request to copy a sheet across spreadsheets.",
- "id": "CopySheetToAnotherSpreadsheetRequest",
+ "AddChartRequest": {
+ "description": "Adds a chart to a sheet in the spreadsheet.",
+ "id": "AddChartRequest",
"properties": {
- "destinationSpreadsheetId": {
- "description": "The ID of the spreadsheet to copy the sheet to.",
- "type": "string"
+ "chart": {
+ "$ref": "EmbeddedChart",
+ "description": "The chart that should be added to the spreadsheet, including the position\nwhere it should be placed. The chartId\nfield is optional; if one is not set, an id will be randomly generated. (It\nis an error to specify the ID of a chart that already exists.)"
}
},
"type": "object"
},
- "PivotGroupSortValueBucket": {
- "description": "Information about which values in a pivot group should be used for sorting.",
- "id": "PivotGroupSortValueBucket",
+ "Spreadsheet": {
+ "description": "Resource that represents a spreadsheet.",
+ "id": "Spreadsheet",
"properties": {
- "buckets": {
- "description": "Determines the bucket from which values are chosen to sort.\n\nFor example, in a pivot table with one row group & two column groups,\nthe row group can list up to two values. The first value corresponds\nto a value within the first column group, and the second value\ncorresponds to a value in the second column group. If no values\nare listed, this would indicate that the row should be sorted according\nto the \"Grand Total\" over the column groups. If a single value is listed,\nthis would correspond to using the \"Total\" of that bucket.",
+ "properties": {
+ "$ref": "SpreadsheetProperties",
+ "description": "Overall properties of a spreadsheet."
+ },
+ "spreadsheetId": {
+ "description": "The ID of the spreadsheet.\nThis field is read-only.",
+ "type": "string"
+ },
+ "sheets": {
+ "description": "The sheets that are part of a spreadsheet.",
"items": {
- "$ref": "ExtendedValue"
+ "$ref": "Sheet"
},
"type": "array"
},
- "valuesIndex": {
- "description": "The offset in the PivotTable.values list which the values in this\ngrouping should be sorted by.",
- "format": "int32",
- "type": "integer"
+ "namedRanges": {
+ "description": "The named ranges defined in a spreadsheet.",
+ "items": {
+ "$ref": "NamedRange"
+ },
+ "type": "array"
+ },
+ "spreadsheetUrl": {
+ "description": "The url of the spreadsheet.\nThis field is read-only.",
+ "type": "string"
}
},
"type": "object"
},
- "EmbeddedObjectPosition": {
- "description": "The position of an embedded object such as a chart.",
- "id": "EmbeddedObjectPosition",
+ "BatchClearValuesResponse": {
+ "description": "The response when clearing a range of values in a spreadsheet.",
+ "id": "BatchClearValuesResponse",
"properties": {
- "newSheet": {
- "description": "If true, the embedded object will be put on a new sheet whose ID\nis chosen for you. Used only when writing.",
- "type": "boolean"
- },
- "sheetId": {
- "description": "The sheet this is on. Set only if the embedded object\nis on its own sheet. Must be non-negative.",
- "format": "int32",
- "type": "integer"
+ "spreadsheetId": {
+ "description": "The spreadsheet the updates were applied to.",
+ "type": "string"
},
- "overlayPosition": {
- "$ref": "OverlayPosition",
- "description": "The position at which the object is overlaid on top of a grid."
+ "clearedRanges": {
+ "description": "The ranges that were cleared, in A1 notation.\n(If the requests were for an unbounded range or a ranger larger\n than the bounds of the sheet, this will be the actual ranges\n that were cleared, bounded to the sheet's limits.)",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
}
},
"type": "object"
},
- "DeleteProtectedRangeRequest": {
- "description": "Deletes the protected range with the given ID.",
- "id": "DeleteProtectedRangeRequest",
+ "BandedRange": {
+ "description": "A banded (alternating colors) range in a sheet.",
+ "id": "BandedRange",
"properties": {
- "protectedRangeId": {
- "description": "The ID of the protected range to delete.",
+ "bandedRangeId": {
+ "description": "The id of the banded range.",
"format": "int32",
"type": "integer"
+ },
+ "rowProperties": {
+ "$ref": "BandingProperties",
+ "description": "Properties for row bands. These properties will be applied on a row-by-row\nbasis throughout all the rows in the range. At least one of\nrow_properties or column_properties must be specified."
+ },
+ "columnProperties": {
+ "$ref": "BandingProperties",
+ "description": "Properties for column bands. These properties will be applied on a column-\nby-column basis throughout all the columns in the range. At least one of\nrow_properties or column_properties must be specified."
+ },
+ "range": {
+ "$ref": "GridRange",
+ "description": "The range over which these properties are applied."
}
},
"type": "object"
},
- "AutoFillRequest": {
- "description": "Fills in more data based on existing data.",
- "id": "AutoFillRequest",
+ "UpdateProtectedRangeRequest": {
+ "description": "Updates an existing protected range with the specified\nprotectedRangeId.",
+ "id": "UpdateProtectedRangeRequest",
"properties": {
- "range": {
- "$ref": "GridRange",
- "description": "The range to autofill. This will examine the range and detect\nthe location that has data and automatically fill that data\nin to the rest of the range."
- },
- "useAlternateSeries": {
- "description": "True if we should generate data with the \"alternate\" series.\nThis differs based on the type and amount of source data.",
- "type": "boolean"
+ "protectedRange": {
+ "$ref": "ProtectedRange",
+ "description": "The protected range to update with the new properties."
},
- "sourceAndDestination": {
- "$ref": "SourceAndDestination",
- "description": "The source and destination areas to autofill.\nThis explicitly lists the source of the autofill and where to\nextend that data."
+ "fields": {
+ "description": "The fields that should be updated. At least one field must be specified.\nThe root `protectedRange` is implied and should not be specified.\nA single `\"*\"` can be used as short-hand for listing every field.",
+ "format": "google-fieldmask",
+ "type": "string"
}
},
"type": "object"
},
- "GradientRule": {
- "description": "A rule that applies a gradient color scale format, based on\nthe interpolation points listed. The format of a cell will vary\nbased on its contents as compared to the values of the interpolation\npoints.",
- "id": "GradientRule",
+ "TextFormat": {
+ "description": "The format of a run of text in a cell.\nAbsent values indicate that the field isn't specified.",
+ "id": "TextFormat",
"properties": {
- "minpoint": {
- "$ref": "InterpolationPoint",
- "description": "The starting interpolation point."
+ "foregroundColor": {
+ "$ref": "Color",
+ "description": "The foreground color of the text."
},
- "maxpoint": {
- "$ref": "InterpolationPoint",
- "description": "The final interpolation point."
+ "bold": {
+ "description": "True if the text is bold.",
+ "type": "boolean"
},
- "midpoint": {
- "$ref": "InterpolationPoint",
- "description": "An optional midway interpolation point."
+ "fontFamily": {
+ "description": "The font family.",
+ "type": "string"
+ },
+ "strikethrough": {
+ "description": "True if the text has a strikethrough.",
+ "type": "boolean"
+ },
+ "italic": {
+ "description": "True if the text is italicized.",
+ "type": "boolean"
+ },
+ "fontSize": {
+ "description": "The size of the font.",
+ "format": "int32",
+ "type": "integer"
+ },
+ "underline": {
+ "description": "True if the text is underlined.",
+ "type": "boolean"
}
},
"type": "object"
},
- "ClearValuesRequest": {
- "description": "The request for clearing a range of values in a spreadsheet.",
- "id": "ClearValuesRequest",
- "properties": {},
+ "AddSheetResponse": {
+ "description": "The result of adding a sheet.",
+ "id": "AddSheetResponse",
+ "properties": {
+ "properties": {
+ "$ref": "SheetProperties",
+ "description": "The properties of the newly added sheet."
+ }
+ },
"type": "object"
},
- "SetBasicFilterRequest": {
- "description": "Sets the basic filter associated with a sheet.",
- "id": "SetBasicFilterRequest",
+ "AddFilterViewResponse": {
+ "description": "The result of adding a filter view.",
+ "id": "AddFilterViewResponse",
"properties": {
"filter": {
- "$ref": "BasicFilter",
- "description": "The filter to set."
+ "$ref": "FilterView",
+ "description": "The newly added filter view."
}
},
"type": "object"
},
- "InterpolationPoint": {
- "description": "A single interpolation point on a gradient conditional format.\nThese pin the gradient color scale according to the color,\ntype and value chosen.",
- "id": "InterpolationPoint",
+ "IterativeCalculationSettings": {
+ "description": "Settings to control how circular dependencies are resolved with iterative\ncalculation.",
+ "id": "IterativeCalculationSettings",
"properties": {
- "color": {
- "$ref": "Color",
- "description": "The color this interpolation point should use."
+ "maxIterations": {
+ "description": "When iterative calculation is enabled, the maximum number of calculation\nrounds to perform.",
+ "format": "int32",
+ "type": "integer"
},
- "type": {
- "description": "How the value should be interpreted.",
+ "convergenceThreshold": {
+ "description": "When iterative calculation is enabled and successive results differ by\nless than this threshold value, the calculation rounds stop.",
+ "format": "double",
+ "type": "number"
+ }
+ },
+ "type": "object"
+ },
+ "SpreadsheetProperties": {
+ "description": "Properties of a spreadsheet.",
+ "id": "SpreadsheetProperties",
+ "properties": {
+ "locale": {
+ "description": "The locale of the spreadsheet in one of the following formats:\n\n* an ISO 639-1 language code such as `en`\n\n* an ISO 639-2 language code such as `fil`, if no 639-1 code exists\n\n* a combination of the ISO language code and country code, such as `en_US`\n\nNote: when updating this field, not all locales/languages are supported.",
+ "type": "string"
+ },
+ "iterativeCalculationSettings": {
+ "$ref": "IterativeCalculationSettings",
+ "description": "Determines whether and how circular references are resolved with iterative\ncalculation. Absence of this field means that circular references will\nresult in calculation errors."
+ },
+ "autoRecalc": {
+ "description": "The amount of time to wait before volatile functions are recalculated.",
"enum": [
- "INTERPOLATION_POINT_TYPE_UNSPECIFIED",
- "MIN",
- "MAX",
- "NUMBER",
- "PERCENT",
- "PERCENTILE"
+ "RECALCULATION_INTERVAL_UNSPECIFIED",
+ "ON_CHANGE",
+ "MINUTE",
+ "HOUR"
],
"enumDescriptions": [
- "The default value, do not use.",
- "The interpolation point will use the minimum value in the\ncells over the range of the conditional format.",
- "The interpolation point will use the maximum value in the\ncells over the range of the conditional format.",
- "The interpolation point will use exactly the value in\nInterpolationPoint.value.",
- "The interpolation point will be the given percentage over\nall the cells in the range of the conditional format.\nThis is equivalent to NUMBER if the value was:\n`=(MAX(FLATTEN(range)) * (value / 100))\n + (MIN(FLATTEN(range)) * (1 - (value / 100)))`\n(where errors in the range are ignored when flattening).",
- "The interpolation point will be the given percentile\nover all the cells in the range of the conditional format.\nThis is equivalent to NUMBER if the value was:\n`=PERCENTILE(FLATTEN(range), value / 100)`\n(where errors in the range are ignored when flattening)."
+ "Default value. This value must not be used.",
+ "Volatile functions are updated on every change.",
+ "Volatile functions are updated on every change and every minute.",
+ "Volatile functions are updated on every change and hourly."
],
"type": "string"
},
- "value": {
- "description": "The value this interpolation point uses. May be a formula.\nUnused if type is MIN or\nMAX.",
+ "defaultFormat": {
+ "$ref": "CellFormat",
+ "description": "The default format of all cells in the spreadsheet.\nCellData.effectiveFormat will not be set if the\ncell's format is equal to this default format.\nThis field is read-only."
+ },
+ "title": {
+ "description": "The title of the spreadsheet.",
+ "type": "string"
+ },
+ "timeZone": {
+ "description": "The time zone of the spreadsheet, in CLDR format such as\n`America/New_York`. If the time zone isn't recognized, this may\nbe a custom time zone such as `GMT-07:00`.",
"type": "string"
}
},
"type": "object"
},
- "DeleteEmbeddedObjectRequest": {
- "description": "Deletes the embedded object with the given ID.",
- "id": "DeleteEmbeddedObjectRequest",
- "properties": {
- "objectId": {
- "description": "The ID of the embedded object to delete.",
- "format": "int32",
- "type": "integer"
- }
- },
- "type": "object"
- },
- "FindReplaceResponse": {
- "description": "The result of the find/replace.",
- "id": "FindReplaceResponse",
+ "OverlayPosition": {
+ "description": "The location an object is overlaid on top of a grid.",
+ "id": "OverlayPosition",
"properties": {
- "valuesChanged": {
- "description": "The number of non-formula cells changed.",
+ "widthPixels": {
+ "description": "The width of the object, in pixels. Defaults to 600.",
"format": "int32",
"type": "integer"
},
- "occurrencesChanged": {
- "description": "The number of occurrences (possibly multiple within a cell) changed.\nFor example, if replacing `\"e\"` with `\"o\"` in `\"Google Sheets\"`, this would\nbe `\"3\"` because `\"Google Sheets\"` -> `\"Googlo Shoots\"`.",
+ "offsetXPixels": {
+ "description": "The horizontal offset, in pixels, that the object is offset\nfrom the anchor cell.",
"format": "int32",
"type": "integer"
},
- "rowsChanged": {
- "description": "The number of rows changed.",
- "format": "int32",
- "type": "integer"
+ "anchorCell": {
+ "$ref": "GridCoordinate",
+ "description": "The cell the object is anchored to."
},
- "sheetsChanged": {
- "description": "The number of sheets changed.",
+ "offsetYPixels": {
+ "description": "The vertical offset, in pixels, that the object is offset\nfrom the anchor cell.",
"format": "int32",
"type": "integer"
},
- "formulasChanged": {
- "description": "The number of formula cells changed.",
+ "heightPixels": {
+ "description": "The height of the object, in pixels. Defaults to 371.",
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
- "DuplicateFilterViewRequest": {
- "description": "Duplicates a particular filter view.",
- "id": "DuplicateFilterViewRequest",
+ "RepeatCellRequest": {
+ "description": "Updates all cells in the range to the values in the given Cell object.\nOnly the fields listed in the fields field are updated; others are\nunchanged.\n\nIf writing a cell with a formula, the formula's ranges will automatically\nincrement for each field in the range.\nFor example, if writing a cell with formula `=A1` into range B2:C4,\nB2 would be `=A1`, B3 would be `=A2`, B4 would be `=A3`,\nC2 would be `=B1`, C3 would be `=B2`, C4 would be `=B3`.\n\nTo keep the formula's ranges static, use the `$` indicator.\nFor example, use the formula `=$A$1` to prevent both the row and the\ncolumn from incrementing.",
+ "id": "RepeatCellRequest",
"properties": {
- "filterId": {
- "description": "The ID of the filter being duplicated.",
- "format": "int32",
- "type": "integer"
- }
+ "fields": {
+ "description": "The fields that should be updated. At least one field must be specified.\nThe root `cell` is implied and should not be specified.\nA single `\"*\"` can be used as short-hand for listing every field.",
+ "format": "google-fieldmask",
+ "type": "string"
+ },
+ "cell": {
+ "$ref": "CellData",
+ "description": "The data to write."
+ },
+ "range": {
+ "$ref": "GridRange",
+ "description": "The range to repeat the cell in."
+ }
},
"type": "object"
},
- "DeleteSheetRequest": {
- "description": "Deletes the requested sheet.",
- "id": "DeleteSheetRequest",
+ "AddChartResponse": {
+ "description": "The result of adding a chart to a spreadsheet.",
+ "id": "AddChartResponse",
"properties": {
- "sheetId": {
- "description": "The ID of the sheet to delete.",
- "format": "int32",
- "type": "integer"
+ "chart": {
+ "$ref": "EmbeddedChart",
+ "description": "The newly added chart."
}
},
"type": "object"
},
- "UpdateConditionalFormatRuleResponse": {
- "description": "The result of updating a conditional format rule.",
- "id": "UpdateConditionalFormatRuleResponse",
+ "InsertDimensionRequest": {
+ "description": "Inserts rows or columns in a sheet at a particular index.",
+ "id": "InsertDimensionRequest",
"properties": {
- "newIndex": {
- "description": "The index of the new rule.",
- "format": "int32",
- "type": "integer"
- },
- "oldIndex": {
- "description": "The old index of the rule. Not set if a rule was replaced\n(because it is the same as new_index).",
- "format": "int32",
- "type": "integer"
- },
- "newRule": {
- "$ref": "ConditionalFormatRule",
- "description": "The new rule that replaced the old rule (if replacing),\nor the rule that was moved (if moved)"
+ "range": {
+ "$ref": "DimensionRange",
+ "description": "The dimensions to insert. Both the start and end indexes must be bounded."
},
- "oldRule": {
- "$ref": "ConditionalFormatRule",
- "description": "The old (deleted) rule. Not set if a rule was moved\n(because it is the same as new_rule)."
+ "inheritFromBefore": {
+ "description": "Whether dimension properties should be extended from the dimensions\nbefore or after the newly inserted dimensions.\nTrue to inherit from the dimensions before (in which case the start\nindex must be greater than 0), and false to inherit from the dimensions\nafter.\n\nFor example, if row index 0 has red background and row index 1\nhas a green background, then inserting 2 rows at index 1 can inherit\neither the green or red background. If `inheritFromBefore` is true,\nthe two new rows will be red (because the row before the insertion point\nwas red), whereas if `inheritFromBefore` is false, the two new rows will\nbe green (because the row after the insertion point was green).",
+ "type": "boolean"
}
},
"type": "object"
},
- "DuplicateSheetRequest": {
- "description": "Duplicates the contents of a sheet.",
- "id": "DuplicateSheetRequest",
+ "UpdateSpreadsheetPropertiesRequest": {
+ "description": "Updates properties of a spreadsheet.",
+ "id": "UpdateSpreadsheetPropertiesRequest",
"properties": {
- "insertSheetIndex": {
- "description": "The zero-based index where the new sheet should be inserted.\nThe index of all sheets after this are incremented.",
- "format": "int32",
- "type": "integer"
+ "properties": {
+ "$ref": "SpreadsheetProperties",
+ "description": "The properties to update."
},
- "newSheetName": {
- "description": "The name of the new sheet. If empty, a new name is chosen for you.",
+ "fields": {
+ "description": "The fields that should be updated. At least one field must be specified.\nThe root 'properties' is implied and should not be specified.\nA single `\"*\"` can be used as short-hand for listing every field.",
+ "format": "google-fieldmask",
"type": "string"
- },
- "sourceSheetId": {
- "description": "The sheet to duplicate.",
- "format": "int32",
- "type": "integer"
- },
- "newSheetId": {
- "description": "If set, the ID of the new sheet. If not set, an ID is chosen.\nIf set, the ID must not conflict with any existing sheet ID.\nIf set, it must be non-negative.",
- "format": "int32",
- "type": "integer"
}
},
"type": "object"
},
- "ConditionValue": {
- "description": "The value of the condition.",
- "id": "ConditionValue",
+ "BatchUpdateValuesRequest": {
+ "description": "The request for updating more than one range of values in a spreadsheet.",
+ "id": "BatchUpdateValuesRequest",
"properties": {
- "relativeDate": {
- "description": "A relative date (based on the current date).\nValid only if the type is\nDATE_BEFORE,\nDATE_AFTER,\nDATE_ON_OR_BEFORE or\nDATE_ON_OR_AFTER.\n\nRelative dates are not supported in data validation.\nThey are supported only in conditional formatting and\nconditional filters.",
+ "responseValueRenderOption": {
+ "description": "Determines how values in the response should be rendered.\nThe default render option is ValueRenderOption.FORMATTED_VALUE.",
"enum": [
- "RELATIVE_DATE_UNSPECIFIED",
- "PAST_YEAR",
- "PAST_MONTH",
- "PAST_WEEK",
- "YESTERDAY",
- "TODAY",
- "TOMORROW"
+ "FORMATTED_VALUE",
+ "UNFORMATTED_VALUE",
+ "FORMULA"
],
"enumDescriptions": [
- "Default value, do not use.",
- "The value is one year before today.",
- "The value is one month before today.",
- "The value is one week before today.",
- "The value is yesterday.",
- "The value is today.",
- "The value is tomorrow."
+ "Values will be calculated & formatted in the reply according to the\ncell's formatting. Formatting is based on the spreadsheet's locale,\nnot the requesting user's locale.\nFor example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency,\nthen `A2` would return `\"$1.23\"`.",
+ "Values will be calculated, but not formatted in the reply.\nFor example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency,\nthen `A2` would return the number `1.23`.",
+ "Values will not be calculated. The reply will include the formulas.\nFor example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency,\nthen A2 would return `\"=A1\"`."
],
"type": "string"
},
- "userEnteredValue": {
- "description": "A value the condition is based on.\nThe value will be parsed as if the user typed into a cell.\nFormulas are supported (and must begin with an `=`).",
+ "includeValuesInResponse": {
+ "description": "Determines if the update response should include the values\nof the cells that were updated. By default, responses\ndo not include the updated values. The `updatedData` field within\neach of the BatchUpdateValuesResponse.responses will contain\nthe updated values. If the range to write was larger than than the range\nactually written, the response will include all values in the requested\nrange (excluding trailing empty rows and columns).",
+ "type": "boolean"
+ },
+ "valueInputOption": {
+ "description": "How the input data should be interpreted.",
+ "enum": [
+ "INPUT_VALUE_OPTION_UNSPECIFIED",
+ "RAW",
+ "USER_ENTERED"
+ ],
+ "enumDescriptions": [
+ "Default input value. This value must not be used.",
+ "The values the user has entered will not be parsed and will be stored\nas-is.",
+ "The values will be parsed as if the user typed them into the UI.\nNumbers will stay as numbers, but strings may be converted to numbers,\ndates, etc. following the same rules that are applied when entering\ntext into a cell via the Google Sheets UI."
+ ],
+ "type": "string"
+ },
+ "data": {
+ "description": "The new values to apply to the spreadsheet.",
+ "items": {
+ "$ref": "ValueRange"
+ },
+ "type": "array"
+ },
+ "responseDateTimeRenderOption": {
+ "description": "Determines how dates, times, and durations in the response should be\nrendered. This is ignored if response_value_render_option is\nFORMATTED_VALUE.\nThe default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].",
+ "enum": [
+ "SERIAL_NUMBER",
+ "FORMATTED_STRING"
+ ],
+ "enumDescriptions": [
+ "Instructs date, time, datetime, and duration fields to be output\nas doubles in \"serial number\" format, as popularized by Lotus 1-2-3.\nThe whole number portion of the value (left of the decimal) counts\nthe days since December 30th 1899. The fractional portion (right of\nthe decimal) counts the time as a fraction of the day. For example,\nJanuary 1st 1900 at noon would be 2.5, 2 because it's 2 days after\nDecember 30st 1899, and .5 because noon is half a day. February 1st\n1900 at 3pm would be 33.625. This correctly treats the year 1900 as\nnot a leap year.",
+ "Instructs date, time, datetime, and duration fields to be output\nas strings in their given number format (which is dependent\non the spreadsheet locale)."
+ ],
"type": "string"
}
},
"type": "object"
},
- "ExtendedValue": {
- "description": "The kinds of value that a cell in a spreadsheet can have.",
- "id": "ExtendedValue",
+ "ProtectedRange": {
+ "description": "A protected range.",
+ "id": "ProtectedRange",
"properties": {
- "numberValue": {
- "description": "Represents a double value.\nNote: Dates, Times and DateTimes are represented as doubles in\n\"serial number\" format.",
- "format": "double",
- "type": "number"
+ "description": {
+ "description": "The description of this protected range.",
+ "type": "string"
},
- "errorValue": {
- "$ref": "ErrorValue",
- "description": "Represents an error.\nThis field is read-only."
+ "unprotectedRanges": {
+ "description": "The list of unprotected ranges within a protected sheet.\nUnprotected ranges are only supported on protected sheets.",
+ "items": {
+ "$ref": "GridRange"
+ },
+ "type": "array"
},
- "stringValue": {
- "description": "Represents a string value.\nLeading single quotes are not included. For example, if the user typed\n`'123` into the UI, this would be represented as a `stringValue` of\n`\"123\"`.",
+ "namedRangeId": {
+ "description": "The named range this protected range is backed by, if any.\n\nWhen writing, only one of range or named_range_id\nmay be set.",
"type": "string"
},
- "boolValue": {
- "description": "Represents a boolean value.",
+ "protectedRangeId": {
+ "description": "The ID of the protected range.\nThis field is read-only.",
+ "format": "int32",
+ "type": "integer"
+ },
+ "warningOnly": {
+ "description": "True if this protected range will show a warning when editing.\nWarning-based protection means that every user can edit data in the\nprotected range, except editing will prompt a warning asking the user\nto confirm the edit.\n\nWhen writing: if this field is true, then editors is ignored.\nAdditionally, if this field is changed from true to false and the\n`editors` field is not set (nor included in the field mask), then\nthe editors will be set to all the editors in the document.",
"type": "boolean"
},
- "formulaValue": {
- "description": "Represents a formula.",
- "type": "string"
+ "requestingUserCanEdit": {
+ "description": "True if the user who requested this protected range can edit the\nprotected area.\nThis field is read-only.",
+ "type": "boolean"
+ },
+ "range": {
+ "$ref": "GridRange",
+ "description": "The range that is being protected.\nThe range may be fully unbounded, in which case this is considered\na protected sheet.\n\nWhen writing, only one of range or named_range_id\nmay be set."
+ },
+ "editors": {
+ "$ref": "Editors",
+ "description": "The users and groups with edit access to the protected range.\nThis field is only visible to users with edit access to the protected\nrange and the document.\nEditors are not supported with warning_only protection."
}
},
"type": "object"
},
- "AddChartRequest": {
- "description": "Adds a chart to a sheet in the spreadsheet.",
- "id": "AddChartRequest",
+ "DimensionProperties": {
+ "description": "Properties about a dimension.",
+ "id": "DimensionProperties",
"properties": {
- "chart": {
- "$ref": "EmbeddedChart",
- "description": "The chart that should be added to the spreadsheet, including the position\nwhere it should be placed. The chartId\nfield is optional; if one is not set, an id will be randomly generated. (It\nis an error to specify the ID of a chart that already exists.)"
+ "pixelSize": {
+ "description": "The height (if a row) or width (if a column) of the dimension in pixels.",
+ "format": "int32",
+ "type": "integer"
+ },
+ "hiddenByFilter": {
+ "description": "True if this dimension is being filtered.\nThis field is read-only.",
+ "type": "boolean"
+ },
+ "hiddenByUser": {
+ "description": "True if this dimension is explicitly hidden.",
+ "type": "boolean"
}
},
"type": "object"
},
- "Spreadsheet": {
- "description": "Resource that represents a spreadsheet.",
- "id": "Spreadsheet",
+ "DimensionRange": {
+ "description": "A range along a single dimension on a sheet.\nAll indexes are zero-based.\nIndexes are half open: the start index is inclusive\nand the end index is exclusive.\nMissing indexes indicate the range is unbounded on that side.",
+ "id": "DimensionRange",
"properties": {
- "properties": {
- "$ref": "SpreadsheetProperties",
- "description": "Overall properties of a spreadsheet."
- },
- "spreadsheetId": {
- "description": "The ID of the spreadsheet.\nThis field is read-only.",
+ "dimension": {
+ "description": "The dimension of the span.",
+ "enum": [
+ "DIMENSION_UNSPECIFIED",
+ "ROWS",
+ "COLUMNS"
+ ],
+ "enumDescriptions": [
+ "The default value, do not use.",
+ "Operates on the rows of a sheet.",
+ "Operates on the columns of a sheet."
+ ],
"type": "string"
},
- "sheets": {
- "description": "The sheets that are part of a spreadsheet.",
- "items": {
- "$ref": "Sheet"
- },
- "type": "array"
+ "startIndex": {
+ "description": "The start (inclusive) of the span, or not set if unbounded.",
+ "format": "int32",
+ "type": "integer"
},
- "namedRanges": {
- "description": "The named ranges defined in a spreadsheet.",
- "items": {
- "$ref": "NamedRange"
- },
- "type": "array"
+ "endIndex": {
+ "description": "The end (exclusive) of the span, or not set if unbounded.",
+ "format": "int32",
+ "type": "integer"
},
- "spreadsheetUrl": {
- "description": "The url of the spreadsheet.\nThis field is read-only.",
- "type": "string"
+ "sheetId": {
+ "description": "The sheet this span is on.",
+ "format": "int32",
+ "type": "integer"
}
},
"type": "object"
},
- "BatchClearValuesResponse": {
- "description": "The response when updating a range of values in a spreadsheet.",
- "id": "BatchClearValuesResponse",
+ "NamedRange": {
+ "description": "A named range.",
+ "id": "NamedRange",
"properties": {
- "spreadsheetId": {
- "description": "The spreadsheet the updates were applied to.",
+ "name": {
+ "description": "The name of the named range.",
+ "type": "string"
+ },
+ "namedRangeId": {
+ "description": "The ID of the named range.",
"type": "string"
},
- "clearedRanges": {
- "description": "The ranges that were cleared, in A1 notation.\n(If the requests were for an unbounded range or a ranger larger\n than the bounds of the sheet, this will be the actual ranges\n that were cleared, bounded to the sheet's limits.)",
- "items": {
- "type": "string"
- },
- "type": "array"
- }
- },
- "type": "object"
- },
- "BandedRange": {
- "description": "A banded (alternating colors) range in a sheet.",
- "id": "BandedRange",
- "properties": {
"range": {
"$ref": "GridRange",
- "description": "The range over which these properties are applied."
- },
- "bandedRangeId": {
- "description": "The id of the banded range.",
- "format": "int32",
- "type": "integer"
- },
- "rowProperties": {
- "$ref": "BandingProperties",
- "description": "Properties for row bands. These properties will be applied on a row-by-row\nbasis throughout all the rows in the range. At least one of\nrow_properties or column_properties must be specified."
- },
- "columnProperties": {
- "$ref": "BandingProperties",
- "description": "Properties for column bands. These properties will be applied on a column-\nby-column basis throughout all the columns in the range. At least one of\nrow_properties or column_properties must be specified."
+ "description": "The range this represents."
}
},
"type": "object"
},
- "UpdateProtectedRangeRequest": {
- "description": "Updates an existing protected range with the specified\nprotectedRangeId.",
- "id": "UpdateProtectedRangeRequest",
+ "CutPasteRequest": {
+ "description": "Moves data from the source to the destination.",
+ "id": "CutPasteRequest",
"properties": {
- "protectedRange": {
- "$ref": "ProtectedRange",
- "description": "The protected range to update with the new properties."
+ "destination": {
+ "$ref": "GridCoordinate",
+ "description": "The top-left coordinate where the data should be pasted."
},
- "fields": {
- "description": "The fields that should be updated. At least one field must be specified.\nThe root `protectedRange` is implied and should not be specified.\nA single `\"*\"` can be used as short-hand for listing every field.",
- "format": "google-fieldmask",
+ "source": {
+ "$ref": "GridRange",
+ "description": "The source data to cut."
+ },
+ "pasteType": {
+ "description": "What kind of data to paste. All the source data will be cut, regardless\nof what is pasted.",
+ "enum": [
+ "PASTE_NORMAL",
+ "PASTE_VALUES",
+ "PASTE_FORMAT",
+ "PASTE_NO_BORDERS",
+ "PASTE_FORMULA",
+ "PASTE_DATA_VALIDATION",
+ "PASTE_CONDITIONAL_FORMATTING"
+ ],
+ "enumDescriptions": [
+ "Paste values, formulas, formats, and merges.",
+ "Paste the values ONLY without formats, formulas, or merges.",
+ "Paste the format and data validation only.",
+ "Like PASTE_NORMAL but without borders.",
+ "Paste the formulas only.",
+ "Paste the data validation only.",
+ "Paste the conditional formatting rules only."
+ ],
"type": "string"
}
},
"type": "object"
},
- "TextFormat": {
- "description": "The format of a run of text in a cell.\nAbsent values indicate that the field isn't specified.",
- "id": "TextFormat",
+ "BasicChartSeries": {
+ "description": "A single series of data in a chart.\nFor example, if charting stock prices over time, multiple series may exist,\none for the \"Open Price\", \"High Price\", \"Low Price\" and \"Close Price\".",
+ "id": "BasicChartSeries",
"properties": {
- "underline": {
- "description": "True if the text is underlined.",
- "type": "boolean"
- },
- "foregroundColor": {
- "$ref": "Color",
- "description": "The foreground color of the text."
- },
- "bold": {
- "description": "True if the text is bold.",
- "type": "boolean"
+ "series": {
+ "$ref": "ChartData",
+ "description": "The data being visualized in this chart series."
},
- "fontFamily": {
- "description": "The font family.",
+ "type": {
+ "description": "The type of this series. Valid only if the\nchartType is\nCOMBO.\nDifferent types will change the way the series is visualized.\nOnly LINE, AREA,\nand COLUMN are supported.",
+ "enum": [
+ "BASIC_CHART_TYPE_UNSPECIFIED",
+ "BAR",
+ "LINE",
+ "AREA",
+ "COLUMN",
+ "SCATTER",
+ "COMBO"
+ ],
+ "enumDescriptions": [
+ "Default value, do not use.",
+ "A <a href=\"/chart/interactive/docs/gallery/barchart\">bar chart</a>.",
+ "A <a href=\"/chart/interactive/docs/gallery/linechart\">line chart</a>.",
+ "An <a href=\"/chart/interactive/docs/gallery/areachart\">area chart</a>.",
+ "A <a href=\"/chart/interactive/docs/gallery/columnchart\">column chart</a>.",
+ "A <a href=\"/chart/interactive/docs/gallery/scatterchart\">scatter chart</a>.",
+ "A <a href=\"/chart/interactive/docs/gallery/combochart\">combo chart</a>."
+ ],
"type": "string"
},
- "strikethrough": {
- "description": "True if the text has a strikethrough.",
- "type": "boolean"
- },
- "italic": {
- "description": "True if the text is italicized.",
- "type": "boolean"
- },
- "fontSize": {
- "description": "The size of the font.",
- "format": "int32",
- "type": "integer"
+ "targetAxis": {
+ "description": "The minor axis that will specify the range of values for this series.\nFor example, if charting stocks over time, the \"Volume\" series\nmay want to be pinned to the right with the prices pinned to the left,\nbecause the scale of trading volume is different than the scale of\nprices.\nIt is an error to specify an axis that isn't a valid minor axis\nfor the chart's type.",
+ "enum": [
+ "BASIC_CHART_AXIS_POSITION_UNSPECIFIED",
+ "BOTTOM_AXIS",
+ "LEFT_AXIS",
+ "RIGHT_AXIS"
+ ],
+ "enumDescriptions": [
+ "Default value, do not use.",
+ "The axis rendered at the bottom of a chart.\nFor most charts, this is the standard major axis.\nFor bar charts, this is a minor axis.",
+ "The axis rendered at the left of a chart.\nFor most charts, this is a minor axis.\nFor bar charts, this is the standard major axis.",
+ "The axis rendered at the right of a chart.\nFor most charts, this is a minor axis.\nFor bar charts, this is an unusual major axis."
+ ],
+ "type": "string"
}
},
"type": "object"
},
- "AddSheetResponse": {
- "description": "The result of adding a sheet.",
- "id": "AddSheetResponse",
+ "Borders": {
+ "description": "The borders of the cell.",
+ "id": "Borders",
"properties": {
- "properties": {
- "$ref": "SheetProperties",
- "description": "The properties of the newly added sheet."
+ "right": {
+ "$ref": "Border",
+ "description": "The right border of the cell."
+ },
+ "bottom": {
+ "$ref": "Border",
+ "description": "The bottom border of the cell."
+ },
+ "top": {
+ "$ref": "Border",
+ "description": "The top border of the cell."
+ },
+ "left": {
+ "$ref": "Border",
+ "description": "The left border of the cell."
}
},
"type": "object"
},
- "AddFilterViewResponse": {
- "description": "The result of adding a filter view.",
- "id": "AddFilterViewResponse",
+ "AutoResizeDimensionsRequest": {
+ "description": "Automatically resizes one or more dimensions based on the contents\nof the cells in that dimension.",
+ "id": "AutoResizeDimensionsRequest",
"properties": {
- "filter": {
- "$ref": "FilterView",
- "description": "The newly added filter view."
+ "dimensions": {
+ "$ref": "DimensionRange",
+ "description": "The dimensions to automatically resize.\nOnly COLUMNS are supported."
}
},
"type": "object"
},
- "IterativeCalculationSettings": {
- "description": "Settings to control how circular dependencies are resolved with iterative\ncalculation.",
- "id": "IterativeCalculationSettings",
+ "UpdateBordersRequest": {
+ "description": "Updates the borders of a range.\nIf a field is not set in the request, that means the border remains as-is.\nFor example, with two subsequent UpdateBordersRequest:\n\n 1. range: A1:A5 `{ top: RED, bottom: WHITE }`\n 2. range: A1:A5 `{ left: BLUE }`\n\nThat would result in A1:A5 having a borders of\n`{ top: RED, bottom: WHITE, left: BLUE }`.\nIf you want to clear a border, explicitly set the style to\nNONE.",
+ "id": "UpdateBordersRequest",
"properties": {
- "maxIterations": {
- "description": "When iterative calculation is enabled, the maximum number of calculation\nrounds to perform.",
- "format": "int32",
- "type": "integer"
+ "bottom": {
+ "$ref": "Border",
+ "description": "The border to put at the bottom of the range."
},
- "convergenceThreshold": {
- "description": "When iterative calculation is enabled and successive results differ by\nless than this threshold value, the calculation rounds stop.",
- "format": "double",
- "type": "number"
+ "innerVertical": {
+ "$ref": "Border",
+ "description": "The vertical border to put within the range."
+ },
+ "right": {
+ "$ref": "Border",
+ "description": "The border to put at the right of the range."
+ },
+ "range": {
+ "$ref": "GridRange",
+ "description": "The range whose borders should be updated."
+ },
+ "innerHorizontal": {
+ "$ref": "Border",
+ "description": "The horizontal border to put within the range."
+ },
+ "top": {
+ "$ref": "Border",
+ "description": "The border to put at the top of the range."
+ },
+ "left": {
+ "$ref": "Border",
+ "description": "The border to put at the left of the range."
}
},
"type": "object"
},
- "OverlayPosition": {
- "description": "The location an object is overlaid on top of a grid.",
- "id": "OverlayPosition",
+ "CellFormat": {
+ "description": "The format of a cell.",
+ "id": "CellFormat",
"properties": {
- "offsetXPixels": {
- "description": "The horizontal offset, in pixels, that the object is offset\nfrom the anchor cell.",
- "format": "int32",
- "type": "integer"
+ "numberFormat": {
+ "$ref": "NumberFormat",
+ "description": "A format describing how number values should be represented to the user."
},
- "anchorCell": {
- "$ref": "GridCoordinate",
- "description": "The cell the object is anchored to."
+ "hyperlinkDisplayType": {
+ "description": "How a hyperlink, if it exists, should be displayed in the cell.",
+ "enum": [
+ "HYPERLINK_DISPLAY_TYPE_UNSPECIFIED",
+ "LINKED",
+ "PLAIN_TEXT"
+ ],
+ "enumDescriptions": [
+ "The default value: the hyperlink is rendered. Do not use this.",
+ "A hyperlink should be explicitly rendered.",
+ "A hyperlink should not be rendered."
+ ],
+ "type": "string"
},
- "offsetYPixels": {
- "description": "The vertical offset, in pixels, that the object is offset\nfrom the anchor cell.",
- "format": "int32",
- "type": "integer"
+ "horizontalAlignment": {
+ "description": "The horizontal alignment of the value in the cell.",
+ "enum": [
+ "HORIZONTAL_ALIGN_UNSPECIFIED",
+ "LEFT",
+ "CENTER",
+ "RIGHT"
+ ],
+ "enumDescriptions": [
+ "The horizontal alignment is not specified. Do not use this.",
+ "The text is explicitly aligned to the left of the cell.",
+ "The text is explicitly aligned to the center of the cell.",
+ "The text is explicitly aligned to the right of the cell."
+ ],
+ "type": "string"
},
- "heightPixels": {
- "description": "The height of the object, in pixels. Defaults to 371.",
- "format": "int32",
- "type": "integer"
+ "textFormat": {
+ "$ref": "TextFormat",
+ "description": "The format of the text in the cell (unless overridden by a format run)."
},
- "widthPixels": {
- "description": "The width of the object, in pixels. Defaults to 600.",
- "format": "int32",
- "type": "integer"
- }
- },
- "type": "object"
- },
- "SpreadsheetProperties": {
- "description": "Properties of a spreadsheet.",
- "id": "SpreadsheetProperties",
- "properties": {
- "locale": {
- "description": "The locale of the spreadsheet in one of the following formats:\n\n* an ISO 639-1 language code such as `en`\n\n* an ISO 639-2 language code such as `fil`, if no 639-1 code exists\n\n* a combination of the ISO language code and country code, such as `en_US`\n\nNote: when updating this field, not all locales/languages are supported.",
+ "backgroundColor": {
+ "$ref": "Color",
+ "description": "The background color of the cell."
+ },
+ "verticalAlignment": {
+ "description": "The vertical alignment of the value in the cell.",
+ "enum": [
+ "VERTICAL_ALIGN_UNSPECIFIED",
+ "TOP",
+ "MIDDLE",
+ "BOTTOM"
+ ],
+ "enumDescriptions": [
+ "The vertical alignment is not specified. Do not use this.",
+ "The text is explicitly aligned to the top of the cell.",
+ "The text is explicitly aligned to the middle of the cell.",
+ "The text is explicitly aligned to the bottom of the cell."
+ ],
"type": "string"
},
- "iterativeCalculationSettings": {
- "$ref": "IterativeCalculationSettings",
- "description": "Determines whether and how circular references are resolved with iterative\ncalculation. Absence of this field means that circular references will\nresult in calculation errors."
+ "padding": {
+ "$ref": "Padding",
+ "description": "The padding of the cell."
},
- "autoRecalc": {
- "description": "The amount of time to wait before volatile functions are recalculated.",
+ "textDirection": {
+ "description": "The direction of the text in the cell.",
"enum": [
- "RECALCULATION_INTERVAL_UNSPECIFIED",
- "ON_CHANGE",
- "MINUTE",
- "HOUR"
+ "TEXT_DIRECTION_UNSPECIFIED",
+ "LEFT_TO_RIGHT",
+ "RIGHT_TO_LEFT"
],
"enumDescriptions": [
- "Default value. This value must not be used.",
- "Volatile functions are updated on every change.",
- "Volatile functions are updated on every change and every minute.",
- "Volatile functions are updated on every change and hourly."
+ "The text direction is not specified. Do not use this.",
+ "The text direction of left-to-right was set by the user.",
+ "The text direction of right-to-left was set by the user."
],
"type": "string"
},
- "defaultFormat": {
- "$ref": "CellFormat",
- "description": "The default format of all cells in the spreadsheet.\nCellData.effectiveFormat will not be set if the\ncell's format is equal to this default format.\nThis field is read-only."
+ "borders": {
+ "$ref": "Borders",
+ "description": "The borders of the cell."
},
- "title": {
- "description": "The title of the spreadsheet.",
- "type": "string"
+ "textRotation": {
+ "$ref": "TextRotation",
+ "description": "The rotation applied to text in a cell"
},
- "timeZone": {
- "description": "The time zone of the spreadsheet, in CLDR format such as\n`America/New_York`. If the time zone isn't recognized, this may\nbe a custom time zone such as `GMT-07:00`.",
+ "wrapStrategy": {
+ "description": "The wrap strategy for the value in the cell.",
+ "enum": [
+ "WRAP_STRATEGY_UNSPECIFIED",
+ "OVERFLOW_CELL",
+ "LEGACY_WRAP",
+ "CLIP",
+ "WRAP"
+ ],
+ "enumDescriptions": [
+ "The default value, do not use.",
+ "Lines that are longer than the cell width will be written in the next\ncell over, so long as that cell is empty. If the next cell over is\nnon-empty, this behaves the same as CLIP. The text will never wrap\nto the next line unless the user manually inserts a new line.\nExample:\n\n | First sentence. |\n | Manual newline that is very long. <- Text continues into next cell\n | Next newline. |",
+ "This wrap strategy represents the old Google Sheets wrap strategy where\nwords that are longer than a line are clipped rather than broken. This\nstrategy is not supported on all platforms and is being phased out.\nExample:\n\n | Cell has a |\n | loooooooooo| <- Word is clipped.\n | word. |",
+ "Lines that are longer than the cell width will be clipped.\nThe text will never wrap to the next line unless the user manually\ninserts a new line.\nExample:\n\n | First sentence. |\n | Manual newline t| <- Text is clipped\n | Next newline. |",
+ "Words that are longer than a line are wrapped at the character level\nrather than clipped.\nExample:\n\n | Cell has a |\n | loooooooooo| <- Word is broken.\n | ong word. |"
+ ],
"type": "string"
}
},
"type": "object"
},
- "RepeatCellRequest": {
- "description": "Updates all cells in the range to the values in the given Cell object.\nOnly the fields listed in the fields field are updated; others are\nunchanged.\n\nIf writing a cell with a formula, the formula's ranges will automatically\nincrement for each field in the range.\nFor example, if writing a cell with formula `=A1` into range B2:C4,\nB2 would be `=A1`, B3 would be `=A2`, B4 would be `=A3`,\nC2 would be `=B1`, C3 would be `=B2`, C4 would be `=B3`.\n\nTo keep the formula's ranges static, use the `$` indicator.\nFor example, use the formula `=$A$1` to prevent both the row and the\ncolumn from incrementing.",
- "id": "RepeatCellRequest",
+ "ClearValuesResponse": {
+ "description": "The response when clearing a range of values in a spreadsheet.",
+ "id": "ClearValuesResponse",
"properties": {
- "range": {
- "$ref": "GridRange",
- "description": "The range to repeat the cell in."
- },
- "fields": {
- "description": "The fields that should be updated. At least one field must be specified.\nThe root `cell` is implied and should not be specified.\nA single `\"*\"` can be used as short-hand for listing every field.",
- "format": "google-fieldmask",
+ "clearedRange": {
+ "description": "The range (in A1 notation) that was cleared.\n(If the request was for an unbounded range or a ranger larger\n than the bounds of the sheet, this will be the actual range\n that was cleared, bounded to the sheet's limits.)",
"type": "string"
},
- "cell": {
- "$ref": "CellData",
- "description": "The data to write."
+ "spreadsheetId": {
+ "description": "The spreadsheet the updates were applied to.",
+ "type": "string"
}
},
"type": "object"
},
- "AddChartResponse": {
- "description": "The result of adding a chart to a spreadsheet.",
- "id": "AddChartResponse",
+ "DeleteConditionalFormatRuleRequest": {
+ "description": "Deletes a conditional format rule at the given index.\nAll subsequent rules' indexes are decremented.",
+ "id": "DeleteConditionalFormatRuleRequest",
"properties": {
- "chart": {
- "$ref": "EmbeddedChart",
- "description": "The newly added chart."
+ "sheetId": {
+ "description": "The sheet the rule is being deleted from.",
+ "format": "int32",
+ "type": "integer"
+ },
+ "index": {
+ "description": "The zero-based index of the rule to be deleted.",
+ "format": "int32",
+ "type": "integer"
}
},
"type": "object"
},
- "InsertDimensionRequest": {
- "description": "Inserts rows or columns in a sheet at a particular index.",
- "id": "InsertDimensionRequest",
+ "AddBandingResponse": {
+ "description": "The result of adding a banded range.",
+ "id": "AddBandingResponse",
"properties": {
- "inheritFromBefore": {
- "description": "Whether dimension properties should be extended from the dimensions\nbefore or after the newly inserted dimensions.\nTrue to inherit from the dimensions before (in which case the start\nindex must be greater than 0), and false to inherit from the dimensions\nafter.\n\nFor example, if row index 0 has red background and row index 1\nhas a green background, then inserting 2 rows at index 1 can inherit\neither the green or red background. If `inheritFromBefore` is true,\nthe two new rows will be red (because the row before the insertion point\nwas red), whereas if `inheritFromBefore` is false, the two new rows will\nbe green (because the row after the insertion point was green).",
- "type": "boolean"
- },
- "range": {
- "$ref": "DimensionRange",
- "description": "The dimensions to insert. Both the start and end indexes must be bounded."
+ "bandedRange": {
+ "$ref": "BandedRange",
+ "description": "The banded range that was added."
}
},
"type": "object"
},
- "UpdateSpreadsheetPropertiesRequest": {
- "description": "Updates properties of a spreadsheet.",
- "id": "UpdateSpreadsheetPropertiesRequest",
+ "DeleteNamedRangeRequest": {
+ "description": "Removes the named range with the given ID from the spreadsheet.",
+ "id": "DeleteNamedRangeRequest",
"properties": {
- "properties": {
- "$ref": "SpreadsheetProperties",
- "description": "The properties to update."
- },
- "fields": {
- "description": "The fields that should be updated. At least one field must be specified.\nThe root 'properties' is implied and should not be specified.\nA single `\"*\"` can be used as short-hand for listing every field.",
- "format": "google-fieldmask",
+ "namedRangeId": {
+ "description": "The ID of the named range to delete.",
"type": "string"
}
},
"type": "object"
},
- "ProtectedRange": {
- "description": "A protected range.",
- "id": "ProtectedRange",
+ "ChartData": {
+ "description": "The data included in a domain or series.",
+ "id": "ChartData",
"properties": {
- "requestingUserCanEdit": {
- "description": "True if the user who requested this protected range can edit the\nprotected area.\nThis field is read-only.",
- "type": "boolean"
- },
- "range": {
- "$ref": "GridRange",
- "description": "The range that is being protected.\nThe range may be fully unbounded, in which case this is considered\na protected sheet.\n\nWhen writing, only one of range or named_range_id\nmay be set."
- },
- "editors": {
- "$ref": "Editors",
- "description": "The users and groups with edit access to the protected range.\nThis field is only visible to users with edit access to the protected\nrange and the document.\nEditors are not supported with warning_only protection."
- },
- "description": {
- "description": "The description of this protected range.",
- "type": "string"
- },
- "unprotectedRanges": {
- "description": "The list of unprotected ranges within a protected sheet.\nUnprotected ranges are only supported on protected sheets.",
+ "sourceRange": {
+ "$ref": "ChartSourceRange",
+ "description": "The source ranges of the data."
+ }
+ },
+ "type": "object"
+ },
+ "BatchGetValuesResponse": {
+ "description": "The response when retrieving more than one range of values in a spreadsheet.",
+ "id": "BatchGetValuesResponse",
+ "properties": {
+ "valueRanges": {
+ "description": "The requested values. The order of the ValueRanges is the same as the\norder of the requested ranges.",
"items": {
- "$ref": "GridRange"
+ "$ref": "ValueRange"
},
"type": "array"
},
- "namedRangeId": {
- "description": "The named range this protected range is backed by, if any.\n\nWhen writing, only one of range or named_range_id\nmay be set.",
+ "spreadsheetId": {
+ "description": "The ID of the spreadsheet the data was retrieved from.",
"type": "string"
- },
- "protectedRangeId": {
- "description": "The ID of the protected range.\nThis field is read-only.",
- "format": "int32",
- "type": "integer"
- },
- "warningOnly": {
- "description": "True if this protected range will show a warning when editing.\nWarning-based protection means that every user can edit data in the\nprotected range, except editing will prompt a warning asking the user\nto confirm the edit.\n\nWhen writing: if this field is true, then editors is ignored.\nAdditionally, if this field is changed from true to false and the\n`editors` field is not set (nor included in the field mask), then\nthe editors will be set to all the editors in the document.",
- "type": "boolean"
}
},
"type": "object"
},
- "BatchUpdateValuesRequest": {
- "description": "The request for updating more than one range of values in a spreadsheet.",
- "id": "BatchUpdateValuesRequest",
+ "UpdateBandingRequest": {
+ "description": "Updates properties of the supplied banded range.",
+ "id": "UpdateBandingRequest",
"properties": {
- "responseValueRenderOption": {
- "description": "Determines how values in the response should be rendered.\nThe default render option is ValueRenderOption.FORMATTED_VALUE.",
- "enum": [
- "FORMATTED_VALUE",
- "UNFORMATTED_VALUE",
- "FORMULA"
- ],
- "enumDescriptions": [
- "Values will be calculated & formatted in the reply according to the\ncell's formatting. Formatting is based on the spreadsheet's locale,\nnot the requesting user's locale.\nFor example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency,\nthen `A2` would return `\"$1.23\"`.",
- "Values will be calculated, but not formatted in the reply.\nFor example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency,\nthen `A2` would return the number `1.23`.",
- "Values will not be calculated. The reply will include the formulas.\nFor example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency,\nthen A2 would return `\"=A1\"`."
- ],
+ "bandedRange": {
+ "$ref": "BandedRange",
+ "description": "The banded range to update with the new properties."
+ },
+ "fields": {
+ "description": "The fields that should be updated. At least one field must be specified.\nThe root `bandedRange` is implied and should not be specified.\nA single `\"*\"` can be used as short-hand for listing every field.",
+ "format": "google-fieldmask",
"type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "Color": {
+ "description": "Represents a color in the RGBA color space. This representation is designed\nfor simplicity of conversion to/from color representations in various\nlanguages over compactness; for example, the fields of this representation\ncan be trivially provided to the constructor of \"java.awt.Color\" in Java; it\ncan also be trivially provided to UIColor's \"+colorWithRed:green:blue:alpha\"\nmethod in iOS; and, with just a little work, it can be easily formatted into\na CSS \"rgba()\" string in JavaScript, as well. Here are some examples:\n\nExample (Java):\n\n import com.google.type.Color;\n\n // ...\n public static java.awt.Color fromProto(Color protocolor) {\n float alpha = protocolor.hasAlpha()\n ? protocolor.getAlpha().getValue()\n : 1.0;\n\n return new java.awt.Color(\n protocolor.getRed(),\n protocolor.getGreen(),\n protocolor.getBlue(),\n alpha);\n }\n\n public static Color toProto(java.awt.Color color) {\n float red = (float) color.getRed();\n float green = (float) color.getGreen();\n float blue = (float) color.getBlue();\n float denominator = 255.0;\n Color.Builder resultBuilder =\n Color\n .newBuilder()\n .setRed(red / denominator)\n .setGreen(green / denominator)\n .setBlue(blue / denominator);\n int alpha = color.getAlpha();\n if (alpha != 255) {\n result.setAlpha(\n FloatValue\n .newBuilder()\n .setValue(((float) alpha) / denominator)\n .build());\n }\n return resultBuilder.build();\n }\n // ...\n\nExample (iOS / Obj-C):\n\n // ...\n static UIColor* fromProto(Color* protocolor) {\n float red = [protocolor red];\n float green = [protocolor green];\n float blue = [protocolor blue];\n FloatValue* alpha_wrapper = [protocolor alpha];\n float alpha = 1.0;\n if (alpha_wrapper != nil) {\n alpha = [alpha_wrapper value];\n }\n return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];\n }\n\n static Color* toProto(UIColor* color) {\n CGFloat red, green, blue, alpha;\n if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) {\n return nil;\n }\n Color* result = [Color alloc] init];\n [result setRed:red];\n [result setGreen:green];\n [result setBlue:blue];\n if (alpha <= 0.9999) {\n [result setAlpha:floatWrapperWithValue(alpha)];\n }\n [result autorelease];\n return result;\n }\n // ...\n\n Example (JavaScript):\n\n // ...\n\n var protoToCssColor = function(rgb_color) {\n var redFrac = rgb_color.red || 0.0;\n var greenFrac = rgb_color.green || 0.0;\n var blueFrac = rgb_color.blue || 0.0;\n var red = Math.floor(redFrac * 255);\n var green = Math.floor(greenFrac * 255);\n var blue = Math.floor(blueFrac * 255);\n\n if (!('alpha' in rgb_color)) {\n return rgbToCssColor_(red, green, blue);\n }\n\n var alphaFrac = rgb_color.alpha.value || 0.0;\n var rgbParams = [red, green, blue].join(',');\n return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');\n };\n\n var rgbToCssColor_ = function(red, green, blue) {\n var rgbNumber = new Number((red << 16) | (green << 8) | blue);\n var hexString = rgbNumber.toString(16);\n var missingZeros = 6 - hexString.length;\n var resultBuilder = ['#'];\n for (var i = 0; i < missingZeros; i++) {\n resultBuilder.push('0');\n }\n resultBuilder.push(hexString);\n return resultBuilder.join('');\n };\n\n // ...",
+ "id": "Color",
+ "properties": {
+ "red": {
+ "description": "The amount of red in the color as a value in the interval [0, 1].",
+ "format": "float",
+ "type": "number"
},
- "includeValuesInResponse": {
- "description": "Determines if the update response should include the values\nof the cells that were updated. By default, responses\ndo not include the updated values. The `updatedData` field within\neach of the BatchUpdateValuesResponse.responses will contain\nthe updated values. If the range to write was larger than than the range\nactually written, the response will include all values in the requested\nrange (excluding trailing empty rows and columns).",
- "type": "boolean"
+ "green": {
+ "description": "The amount of green in the color as a value in the interval [0, 1].",
+ "format": "float",
+ "type": "number"
},
- "valueInputOption": {
- "description": "How the input data should be interpreted.",
+ "blue": {
+ "description": "The amount of blue in the color as a value in the interval [0, 1].",
+ "format": "float",
+ "type": "number"
+ },
+ "alpha": {
+ "description": "The fraction of this color that should be applied to the pixel. That is,\nthe final pixel color is defined by the equation:\n\n pixel color = alpha * (this color) + (1.0 - alpha) * (background color)\n\nThis means that a value of 1.0 corresponds to a solid color, whereas\na value of 0.0 corresponds to a completely transparent color. This\nuses a wrapper message rather than a simple float scalar so that it is\npossible to distinguish between a default value and the value being unset.\nIf omitted, this color object is to be rendered as a solid color\n(as if the alpha value had been explicitly given with a value of 1.0).",
+ "format": "float",
+ "type": "number"
+ }
+ },
+ "type": "object"
+ },
+ "PivotGroup": {
+ "description": "A single grouping (either row or column) in a pivot table.",
+ "id": "PivotGroup",
+ "properties": {
+ "sortOrder": {
+ "description": "The order the values in this group should be sorted.",
"enum": [
- "INPUT_VALUE_OPTION_UNSPECIFIED",
- "RAW",
- "USER_ENTERED"
+ "SORT_ORDER_UNSPECIFIED",
+ "ASCENDING",
+ "DESCENDING"
],
"enumDescriptions": [
- "Default input value. This value must not be used.",
- "The values the user has entered will not be parsed and will be stored\nas-is.",
- "The values will be parsed as if the user typed them into the UI.\nNumbers will stay as numbers, but strings may be converted to numbers,\ndates, etc. following the same rules that are applied when entering\ntext into a cell via the Google Sheets UI."
+ "Default value, do not use this.",
+ "Sort ascending.",
+ "Sort descending."
],
"type": "string"
},
- "data": {
- "description": "The new values to apply to the spreadsheet.",
+ "valueBucket": {
+ "$ref": "PivotGroupSortValueBucket",
+ "description": "The bucket of the opposite pivot group to sort by.\nIf not specified, sorting is alphabetical by this group's values."
+ },
+ "sourceColumnOffset": {
+ "description": "The column offset of the source range that this grouping is based on.\n\nFor example, if the source was `C10:E15`, a `sourceColumnOffset` of `0`\nmeans this group refers to column `C`, whereas the offset `1` would refer\nto column `D`.",
+ "format": "int32",
+ "type": "integer"
+ },
+ "showTotals": {
+ "description": "True if the pivot table should include the totals for this grouping.",
+ "type": "boolean"
+ },
+ "valueMetadata": {
+ "description": "Metadata about values in the grouping.",
"items": {
- "$ref": "ValueRange"
+ "$ref": "PivotGroupValueMetadata"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "PivotTable": {
+ "description": "A pivot table.",
+ "id": "PivotTable",
+ "properties": {
+ "criteria": {
+ "additionalProperties": {
+ "$ref": "PivotFilterCriteria"
+ },
+ "description": "An optional mapping of filters per source column offset.\n\nThe filters will be applied before aggregating data into the pivot table.\nThe map's key is the column offset of the source range that you want to\nfilter, and the value is the criteria for that column.\n\nFor example, if the source was `C10:E15`, a key of `0` will have the filter\nfor column `C`, whereas the key `1` is for column `D`.",
+ "type": "object"
+ },
+ "rows": {
+ "description": "Each row grouping in the pivot table.",
+ "items": {
+ "$ref": "PivotGroup"
},
"type": "array"
},
- "responseDateTimeRenderOption": {
- "description": "Determines how dates, times, and durations in the response should be\nrendered. This is ignored if response_value_render_option is\nFORMATTED_VALUE.\nThe default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].",
+ "valueLayout": {
+ "description": "Whether values should be listed horizontally (as columns)\nor vertically (as rows).",
"enum": [
- "SERIAL_NUMBER",
- "FORMATTED_STRING"
+ "HORIZONTAL",
+ "VERTICAL"
],
"enumDescriptions": [
- "Instructs date, time, datetime, and duration fields to be output\nas doubles in \"serial number\" format, as popularized by Lotus 1-2-3.\nThe whole number portion of the value (left of the decimal) counts\nthe days since December 30th 1899. The fractional portion (right of\nthe decimal) counts the time as a fraction of the day. For example,\nJanuary 1st 1900 at noon would be 2.5, 2 because it's 2 days after\nDecember 30st 1899, and .5 because noon is half a day. February 1st\n1900 at 3pm would be 33.625. This correctly treats the year 1900 as\nnot a leap year.",
- "Instructs date, time, datetime, and duration fields to be output\nas strings in their given number format (which is dependent\non the spreadsheet locale)."
+ "Values are laid out horizontally (as columns).",
+ "Values are laid out vertically (as rows)."
],
"type": "string"
+ },
+ "source": {
+ "$ref": "GridRange",
+ "description": "The range the pivot table is reading data from."
+ },
+ "columns": {
+ "description": "Each column grouping in the pivot table.",
+ "items": {
+ "$ref": "PivotGroup"
+ },
+ "type": "array"
+ },
+ "values": {
+ "description": "A list of values to include in the pivot table.",
+ "items": {
+ "$ref": "PivotValue"
+ },
+ "type": "array"
}
},
"type": "object"
},
- "DimensionProperties": {
- "description": "Properties about a dimension.",
- "id": "DimensionProperties",
+ "ChartSourceRange": {
+ "description": "Source ranges for a chart.",
+ "id": "ChartSourceRange",
"properties": {
- "pixelSize": {
- "description": "The height (if a row) or width (if a column) of the dimension in pixels.",
- "format": "int32",
- "type": "integer"
- },
- "hiddenByFilter": {
- "description": "True if this dimension is being filtered.\nThis field is read-only.",
- "type": "boolean"
- },
- "hiddenByUser": {
- "description": "True if this dimension is explicitly hidden.",
- "type": "boolean"
+ "sources": {
+ "description": "The ranges of data for a series or domain.\nExactly one dimension must have a length of 1,\nand all sources in the list must have the same dimension\nwith length 1.\nThe domain (if it exists) & all series must have the same number\nof source ranges. If using more than one source range, then the source\nrange at a given offset must be contiguous across the domain and series.\n\nFor example, these are valid configurations:\n\n domain sources: A1:A5\n series1 sources: B1:B5\n series2 sources: D6:D10\n\n domain sources: A1:A5, C10:C12\n series1 sources: B1:B5, D10:D12\n series2 sources: C1:C5, E10:E12",
+ "items": {
+ "$ref": "GridRange"
+ },
+ "type": "array"
}
},
"type": "object"
},
- "DimensionRange": {
- "description": "A range along a single dimension on a sheet.\nAll indexes are zero-based.\nIndexes are half open: the start index is inclusive\nand the end index is exclusive.\nMissing indexes indicate the range is unbounded on that side.",
- "id": "DimensionRange",
+ "ValueRange": {
+ "description": "Data within a range of the spreadsheet.",
+ "id": "ValueRange",
"properties": {
- "sheetId": {
- "description": "The sheet this span is on.",
- "format": "int32",
- "type": "integer"
- },
- "dimension": {
- "description": "The dimension of the span.",
+ "majorDimension": {
+ "description": "The major dimension of the values.\n\nFor output, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`,\nthen requesting `range=A1:B2,majorDimension=ROWS` will return\n`[[1,2],[3,4]]`,\nwhereas requesting `range=A1:B2,majorDimension=COLUMNS` will return\n`[[1,3],[2,4]]`.\n\nFor input, with `range=A1:B2,majorDimension=ROWS` then `[[1,2],[3,4]]`\nwill set `A1=1,B1=2,A2=3,B2=4`. With `range=A1:B2,majorDimension=COLUMNS`\nthen `[[1,2],[3,4]]` will set `A1=1,B1=3,A2=2,B2=4`.\n\nWhen writing, if this field is not set, it defaults to ROWS.",
"enum": [
"DIMENSION_UNSPECIFIED",
"ROWS",
@@ -2119,669 +2177,781 @@
],
"type": "string"
},
- "startIndex": {
- "description": "The start (inclusive) of the span, or not set if unbounded.",
- "format": "int32",
- "type": "integer"
+ "values": {
+ "description": "The data that was read or to be written. This is an array of arrays,\nthe outer array representing all the data and each inner array\nrepresenting a major dimension. Each item in the inner array\ncorresponds with one cell.\n\nFor output, empty trailing rows and columns will not be included.\n\nFor input, supported value types are: bool, string, and double.\nNull values will be skipped.\nTo set a cell to an empty value, set the string value to an empty string.",
+ "items": {
+ "items": {
+ "type": "any"
+ },
+ "type": "array"
+ },
+ "type": "array"
},
- "endIndex": {
- "description": "The end (exclusive) of the span, or not set if unbounded.",
- "format": "int32",
- "type": "integer"
+ "range": {
+ "description": "The range the values cover, in A1 notation.\nFor output, this range indicates the entire requested range,\neven though the values will exclude trailing rows and columns.\nWhen appending values, this field represents the range to search for a\ntable, after which values will be appended.",
+ "type": "string"
}
},
"type": "object"
},
- "NamedRange": {
- "description": "A named range.",
- "id": "NamedRange",
+ "AppendCellsRequest": {
+ "description": "Adds new cells after the last row with data in a sheet,\ninserting new rows into the sheet if necessary.",
+ "id": "AppendCellsRequest",
"properties": {
- "name": {
- "description": "The name of the named range.",
- "type": "string"
+ "rows": {
+ "description": "The data to append.",
+ "items": {
+ "$ref": "RowData"
+ },
+ "type": "array"
},
- "namedRangeId": {
- "description": "The ID of the named range.",
+ "fields": {
+ "description": "The fields of CellData that should be updated.\nAt least one field must be specified.\nThe root is the CellData; 'row.values.' should not be specified.\nA single `\"*\"` can be used as short-hand for listing every field.",
+ "format": "google-fieldmask",
"type": "string"
},
- "range": {
- "$ref": "GridRange",
- "description": "The range this represents."
+ "sheetId": {
+ "description": "The sheet ID to append the data to.",
+ "format": "int32",
+ "type": "integer"
}
},
"type": "object"
},
- "CutPasteRequest": {
- "description": "Moves data from the source to the destination.",
- "id": "CutPasteRequest",
+ "AddBandingRequest": {
+ "description": "Adds a new banded range to the spreadsheet.",
+ "id": "AddBandingRequest",
"properties": {
- "source": {
- "$ref": "GridRange",
- "description": "The source data to cut."
+ "bandedRange": {
+ "$ref": "BandedRange",
+ "description": "The banded range to add. The bandedRangeId\nfield is optional; if one is not set, an id will be randomly generated. (It\nis an error to specify the ID of a range that already exists.)"
+ }
+ },
+ "type": "object"
+ },
+ "Response": {
+ "description": "A single response from an update.",
+ "id": "Response",
+ "properties": {
+ "addProtectedRange": {
+ "$ref": "AddProtectedRangeResponse",
+ "description": "A reply from adding a protected range."
},
- "pasteType": {
- "description": "What kind of data to paste. All the source data will be cut, regardless\nof what is pasted.",
- "enum": [
- "PASTE_NORMAL",
- "PASTE_VALUES",
- "PASTE_FORMAT",
- "PASTE_NO_BORDERS",
- "PASTE_FORMULA",
- "PASTE_DATA_VALIDATION",
- "PASTE_CONDITIONAL_FORMATTING"
+ "duplicateSheet": {
+ "$ref": "DuplicateSheetResponse",
+ "description": "A reply from duplicating a sheet."
+ },
+ "updateEmbeddedObjectPosition": {
+ "$ref": "UpdateEmbeddedObjectPositionResponse",
+ "description": "A reply from updating an embedded object's position."
+ },
+ "deleteConditionalFormatRule": {
+ "$ref": "DeleteConditionalFormatRuleResponse",
+ "description": "A reply from deleting a conditional format rule."
+ },
+ "duplicateFilterView": {
+ "$ref": "DuplicateFilterViewResponse",
+ "description": "A reply from duplicating a filter view."
+ },
+ "addChart": {
+ "$ref": "AddChartResponse",
+ "description": "A reply from adding a chart."
+ },
+ "findReplace": {
+ "$ref": "FindReplaceResponse",
+ "description": "A reply from doing a find/replace."
+ },
+ "addSheet": {
+ "$ref": "AddSheetResponse",
+ "description": "A reply from adding a sheet."
+ },
+ "updateConditionalFormatRule": {
+ "$ref": "UpdateConditionalFormatRuleResponse",
+ "description": "A reply from updating a conditional format rule."
+ },
+ "addNamedRange": {
+ "$ref": "AddNamedRangeResponse",
+ "description": "A reply from adding a named range."
+ },
+ "addFilterView": {
+ "$ref": "AddFilterViewResponse",
+ "description": "A reply from adding a filter view."
+ },
+ "addBanding": {
+ "$ref": "AddBandingResponse",
+ "description": "A reply from adding a banded range."
+ }
+ },
+ "type": "object"
+ },
+ "InsertRangeRequest": {
+ "description": "Inserts cells into a range, shifting the existing cells over or down.",
+ "id": "InsertRangeRequest",
+ "properties": {
+ "shiftDimension": {
+ "description": "The dimension which will be shifted when inserting cells.\nIf ROWS, existing cells will be shifted down.\nIf COLUMNS, existing cells will be shifted right.",
+ "enum": [
+ "DIMENSION_UNSPECIFIED",
+ "ROWS",
+ "COLUMNS"
],
"enumDescriptions": [
- "Paste values, formulas, formats, and merges.",
- "Paste the values ONLY without formats, formulas, or merges.",
- "Paste the format and data validation only.",
- "Like PASTE_NORMAL but without borders.",
- "Paste the formulas only.",
- "Paste the data validation only.",
- "Paste the conditional formatting rules only."
+ "The default value, do not use.",
+ "Operates on the rows of a sheet.",
+ "Operates on the columns of a sheet."
],
"type": "string"
},
- "destination": {
- "$ref": "GridCoordinate",
- "description": "The top-left coordinate where the data should be pasted."
+ "range": {
+ "$ref": "GridRange",
+ "description": "The range to insert new cells into."
}
},
"type": "object"
},
- "Borders": {
- "description": "The borders of the cell.",
- "id": "Borders",
+ "TextFormatRun": {
+ "description": "A run of a text format. The format of this run continues until the start\nindex of the next run.\nWhen updating, all fields must be set.",
+ "id": "TextFormatRun",
"properties": {
- "right": {
- "$ref": "Border",
- "description": "The right border of the cell."
- },
- "bottom": {
- "$ref": "Border",
- "description": "The bottom border of the cell."
- },
- "top": {
- "$ref": "Border",
- "description": "The top border of the cell."
+ "startIndex": {
+ "description": "The character index where this run starts.",
+ "format": "int32",
+ "type": "integer"
},
- "left": {
- "$ref": "Border",
- "description": "The left border of the cell."
+ "format": {
+ "$ref": "TextFormat",
+ "description": "The format of this run. Absent values inherit the cell's format."
}
},
"type": "object"
},
- "BasicChartSeries": {
- "description": "A single series of data in a chart.\nFor example, if charting stock prices over time, multiple series may exist,\none for the \"Open Price\", \"High Price\", \"Low Price\" and \"Close Price\".",
- "id": "BasicChartSeries",
+ "EmbeddedChart": {
+ "description": "A chart embedded in a sheet.",
+ "id": "EmbeddedChart",
"properties": {
- "targetAxis": {
- "description": "The minor axis that will specify the range of values for this series.\nFor example, if charting stocks over time, the \"Volume\" series\nmay want to be pinned to the right with the prices pinned to the left,\nbecause the scale of trading volume is different than the scale of\nprices.\nIt is an error to specify an axis that isn't a valid minor axis\nfor the chart's type.",
- "enum": [
- "BASIC_CHART_AXIS_POSITION_UNSPECIFIED",
- "BOTTOM_AXIS",
- "LEFT_AXIS",
- "RIGHT_AXIS"
- ],
- "enumDescriptions": [
- "Default value, do not use.",
- "The axis rendered at the bottom of a chart.\nFor most charts, this is the standard major axis.\nFor bar charts, this is a minor axis.",
- "The axis rendered at the left of a chart.\nFor most charts, this is a minor axis.\nFor bar charts, this is the standard major axis.",
- "The axis rendered at the right of a chart.\nFor most charts, this is a minor axis.\nFor bar charts, this is an unusual major axis."
- ],
- "type": "string"
+ "chartId": {
+ "description": "The ID of the chart.",
+ "format": "int32",
+ "type": "integer"
},
- "series": {
- "$ref": "ChartData",
- "description": "The data being visualized in this chart series."
+ "position": {
+ "$ref": "EmbeddedObjectPosition",
+ "description": "The position of the chart."
},
- "type": {
- "description": "The type of this series. Valid only if the\nchartType is\nCOMBO.\nDifferent types will change the way the series is visualized.\nOnly LINE, AREA,\nand COLUMN are supported.",
- "enum": [
- "BASIC_CHART_TYPE_UNSPECIFIED",
- "BAR",
- "LINE",
- "AREA",
- "COLUMN",
- "SCATTER",
- "COMBO"
- ],
- "enumDescriptions": [
- "Default value, do not use.",
- "A <a href=\"/chart/interactive/docs/gallery/barchart\">bar chart</a>.",
- "A <a href=\"/chart/interactive/docs/gallery/linechart\">line chart</a>.",
- "An <a href=\"/chart/interactive/docs/gallery/areachart\">area chart</a>.",
- "A <a href=\"/chart/interactive/docs/gallery/columnchart\">column chart</a>.",
- "A <a href=\"/chart/interactive/docs/gallery/scatterchart\">scatter chart</a>.",
- "A <a href=\"/chart/interactive/docs/gallery/combochart\">combo chart</a>."
- ],
- "type": "string"
+ "spec": {
+ "$ref": "ChartSpec",
+ "description": "The specification of the chart."
}
},
"type": "object"
},
- "AutoResizeDimensionsRequest": {
- "description": "Automatically resizes one or more dimensions based on the contents\nof the cells in that dimension.",
- "id": "AutoResizeDimensionsRequest",
+ "AddNamedRangeResponse": {
+ "description": "The result of adding a named range.",
+ "id": "AddNamedRangeResponse",
"properties": {
- "dimensions": {
- "$ref": "DimensionRange",
- "description": "The dimensions to automatically resize.\nOnly COLUMNS are supported."
+ "namedRange": {
+ "$ref": "NamedRange",
+ "description": "The named range to add."
}
},
"type": "object"
},
- "UpdateBordersRequest": {
- "description": "Updates the borders of a range.\nIf a field is not set in the request, that means the border remains as-is.\nFor example, with two subsequent UpdateBordersRequest:\n\n 1. range: A1:A5 `{ top: RED, bottom: WHITE }`\n 2. range: A1:A5 `{ left: BLUE }`\n\nThat would result in A1:A5 having a borders of\n`{ top: RED, bottom: WHITE, left: BLUE }`.\nIf you want to clear a border, explicitly set the style to\nNONE.",
- "id": "UpdateBordersRequest",
+ "RowData": {
+ "description": "Data about each cell in a row.",
+ "id": "RowData",
"properties": {
- "innerVertical": {
- "$ref": "Border",
- "description": "The vertical border to put within the range."
- },
- "right": {
- "$ref": "Border",
- "description": "The border to put at the right of the range."
- },
- "range": {
- "$ref": "GridRange",
- "description": "The range whose borders should be updated."
- },
- "innerHorizontal": {
- "$ref": "Border",
- "description": "The horizontal border to put within the range."
- },
- "top": {
- "$ref": "Border",
- "description": "The border to put at the top of the range."
- },
- "left": {
- "$ref": "Border",
- "description": "The border to put at the left of the range."
- },
- "bottom": {
- "$ref": "Border",
- "description": "The border to put at the bottom of the range."
+ "values": {
+ "description": "The values in the row, one per column.",
+ "items": {
+ "$ref": "CellData"
+ },
+ "type": "array"
}
},
"type": "object"
},
- "CellFormat": {
- "description": "The format of a cell.",
- "id": "CellFormat",
+ "Border": {
+ "description": "A border along a cell.",
+ "id": "Border",
"properties": {
- "numberFormat": {
- "$ref": "NumberFormat",
- "description": "A format describing how number values should be represented to the user."
+ "color": {
+ "$ref": "Color",
+ "description": "The color of the border."
},
- "horizontalAlignment": {
- "description": "The horizontal alignment of the value in the cell.",
+ "width": {
+ "description": "The width of the border, in pixels.\nDeprecated; the width is determined by the \"style\" field.",
+ "format": "int32",
+ "type": "integer"
+ },
+ "style": {
+ "description": "The style of the border.",
"enum": [
- "HORIZONTAL_ALIGN_UNSPECIFIED",
- "LEFT",
- "CENTER",
- "RIGHT"
+ "STYLE_UNSPECIFIED",
+ "DOTTED",
+ "DASHED",
+ "SOLID",
+ "SOLID_MEDIUM",
+ "SOLID_THICK",
+ "NONE",
+ "DOUBLE"
],
"enumDescriptions": [
- "The horizontal alignment is not specified. Do not use this.",
- "The text is explicitly aligned to the left of the cell.",
- "The text is explicitly aligned to the center of the cell.",
- "The text is explicitly aligned to the right of the cell."
+ "The style is not specified. Do not use this.",
+ "The border is dotted.",
+ "The border is dashed.",
+ "The border is a thin solid line.",
+ "The border is a medium solid line.",
+ "The border is a thick solid line.",
+ "No border.\nUsed only when updating a border in order to erase it.",
+ "The border is two solid lines."
],
"type": "string"
- },
- "hyperlinkDisplayType": {
- "description": "How a hyperlink, if it exists, should be displayed in the cell.",
- "enum": [
- "HYPERLINK_DISPLAY_TYPE_UNSPECIFIED",
- "LINKED",
- "PLAIN_TEXT"
- ],
- "enumDescriptions": [
- "The default value: the hyperlink is rendered. Do not use this.",
- "A hyperlink should be explicitly rendered.",
- "A hyperlink should not be rendered."
- ],
- "type": "string"
- },
- "textFormat": {
- "$ref": "TextFormat",
- "description": "The format of the text in the cell (unless overridden by a format run)."
- },
- "backgroundColor": {
- "$ref": "Color",
- "description": "The background color of the cell."
- },
- "verticalAlignment": {
- "description": "The vertical alignment of the value in the cell.",
- "enum": [
- "VERTICAL_ALIGN_UNSPECIFIED",
- "TOP",
- "MIDDLE",
- "BOTTOM"
- ],
- "enumDescriptions": [
- "The vertical alignment is not specified. Do not use this.",
- "The text is explicitly aligned to the top of the cell.",
- "The text is explicitly aligned to the middle of the cell.",
- "The text is explicitly aligned to the bottom of the cell."
- ],
- "type": "string"
- },
- "padding": {
- "$ref": "Padding",
- "description": "The padding of the cell."
- },
- "textDirection": {
- "description": "The direction of the text in the cell.",
- "enum": [
- "TEXT_DIRECTION_UNSPECIFIED",
- "LEFT_TO_RIGHT",
- "RIGHT_TO_LEFT"
- ],
- "enumDescriptions": [
- "The text direction is not specified. Do not use this.",
- "The text direction of left-to-right was set by the user.",
- "The text direction of right-to-left was set by the user."
- ],
- "type": "string"
- },
- "borders": {
- "$ref": "Borders",
- "description": "The borders of the cell."
- },
- "wrapStrategy": {
- "description": "The wrap strategy for the value in the cell.",
- "enum": [
- "WRAP_STRATEGY_UNSPECIFIED",
- "OVERFLOW_CELL",
- "LEGACY_WRAP",
- "CLIP",
- "WRAP"
- ],
- "enumDescriptions": [
- "The default value, do not use.",
- "Lines that are longer than the cell width will be written in the next\ncell over, so long as that cell is empty. If the next cell over is\nnon-empty, this behaves the same as CLIP. The text will never wrap\nto the next line unless the user manually inserts a new line.\nExample:\n\n | First sentence. |\n | Manual newline that is very long. <- Text continues into next cell\n | Next newline. |",
- "This wrap strategy represents the old Google Sheets wrap strategy where\nwords that are longer than a line are clipped rather than broken. This\nstrategy is not supported on all platforms and is being phased out.\nExample:\n\n | Cell has a |\n | loooooooooo| <- Word is clipped.\n | word. |",
- "Lines that are longer than the cell width will be clipped.\nThe text will never wrap to the next line unless the user manually\ninserts a new line.\nExample:\n\n | First sentence. |\n | Manual newline t| <- Text is clipped\n | Next newline. |",
- "Words that are longer than a line are wrapped at the character level\nrather than clipped.\nExample:\n\n | Cell has a |\n | loooooooooo| <- Word is broken.\n | ong word. |"
- ],
- "type": "string"
- },
- "textRotation": {
- "$ref": "TextRotation",
- "description": "The rotation applied to text in a cell"
}
},
"type": "object"
},
- "ClearValuesResponse": {
- "description": "The response when clearing a range of values in a spreadsheet.",
- "id": "ClearValuesResponse",
+ "GridData": {
+ "description": "Data in the grid, as well as metadata about the dimensions.",
+ "id": "GridData",
"properties": {
- "spreadsheetId": {
- "description": "The spreadsheet the updates were applied to.",
- "type": "string"
+ "columnMetadata": {
+ "description": "Metadata about the requested columns in the grid, starting with the column\nin start_column.",
+ "items": {
+ "$ref": "DimensionProperties"
+ },
+ "type": "array"
},
- "clearedRange": {
- "description": "The range (in A1 notation) that was cleared.\n(If the request was for an unbounded range or a ranger larger\n than the bounds of the sheet, this will be the actual range\n that was cleared, bounded to the sheet's limits.)",
- "type": "string"
- }
- },
- "type": "object"
- },
- "DeleteConditionalFormatRuleRequest": {
- "description": "Deletes a conditional format rule at the given index.\nAll subsequent rules' indexes are decremented.",
- "id": "DeleteConditionalFormatRuleRequest",
- "properties": {
- "index": {
- "description": "The zero-based index of the rule to be deleted.",
+ "startColumn": {
+ "description": "The first column this GridData refers to, zero-based.",
"format": "int32",
"type": "integer"
},
- "sheetId": {
- "description": "The sheet the rule is being deleted from.",
+ "rowMetadata": {
+ "description": "Metadata about the requested rows in the grid, starting with the row\nin start_row.",
+ "items": {
+ "$ref": "DimensionProperties"
+ },
+ "type": "array"
+ },
+ "rowData": {
+ "description": "The data in the grid, one entry per row,\nstarting with the row in startRow.\nThe values in RowData will correspond to columns starting\nat start_column.",
+ "items": {
+ "$ref": "RowData"
+ },
+ "type": "array"
+ },
+ "startRow": {
+ "description": "The first row this GridData refers to, zero-based.",
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
- "DeleteNamedRangeRequest": {
- "description": "Removes the named range with the given ID from the spreadsheet.",
- "id": "DeleteNamedRangeRequest",
+ "FindReplaceRequest": {
+ "description": "Finds and replaces data in cells over a range, sheet, or all sheets.",
+ "id": "FindReplaceRequest",
"properties": {
- "namedRangeId": {
- "description": "The ID of the named range to delete.",
+ "matchEntireCell": {
+ "description": "True if the find value should match the entire cell.",
+ "type": "boolean"
+ },
+ "find": {
+ "description": "The value to search.",
+ "type": "string"
+ },
+ "searchByRegex": {
+ "description": "True if the find value is a regex.\nThe regular expression and replacement should follow Java regex rules\nat https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html.\nThe replacement string is allowed to refer to capturing groups.\nFor example, if one cell has the contents `\"Google Sheets\"` and another\nhas `\"Google Docs\"`, then searching for `\"o.* (.*)\"` with a replacement of\n`\"$1 Rocks\"` would change the contents of the cells to\n`\"GSheets Rocks\"` and `\"GDocs Rocks\"` respectively.",
+ "type": "boolean"
+ },
+ "replacement": {
+ "description": "The value to use as the replacement.",
"type": "string"
+ },
+ "range": {
+ "$ref": "GridRange",
+ "description": "The range to find/replace over."
+ },
+ "sheetId": {
+ "description": "The sheet to find/replace over.",
+ "format": "int32",
+ "type": "integer"
+ },
+ "matchCase": {
+ "description": "True if the search is case sensitive.",
+ "type": "boolean"
+ },
+ "allSheets": {
+ "description": "True to find/replace over all sheets.",
+ "type": "boolean"
+ },
+ "includeFormulas": {
+ "description": "True if the search should include cells with formulas.\nFalse to skip cells with formulas.",
+ "type": "boolean"
}
},
"type": "object"
},
- "AddBandingResponse": {
- "description": "The result of adding a banded range.",
- "id": "AddBandingResponse",
+ "UpdateNamedRangeRequest": {
+ "description": "Updates properties of the named range with the specified\nnamedRangeId.",
+ "id": "UpdateNamedRangeRequest",
"properties": {
- "bandedRange": {
- "$ref": "BandedRange",
- "description": "The banded range that was added."
+ "namedRange": {
+ "$ref": "NamedRange",
+ "description": "The named range to update with the new properties."
+ },
+ "fields": {
+ "description": "The fields that should be updated. At least one field must be specified.\nThe root `namedRange` is implied and should not be specified.\nA single `\"*\"` can be used as short-hand for listing every field.",
+ "format": "google-fieldmask",
+ "type": "string"
}
},
"type": "object"
},
- "ChartData": {
- "description": "The data included in a domain or series.",
- "id": "ChartData",
+ "AddSheetRequest": {
+ "description": "Adds a new sheet.\nWhen a sheet is added at a given index,\nall subsequent sheets' indexes are incremented.\nTo add an object sheet, use AddChartRequest instead and specify\nEmbeddedObjectPosition.sheetId or\nEmbeddedObjectPosition.newSheet.",
+ "id": "AddSheetRequest",
"properties": {
- "sourceRange": {
- "$ref": "ChartSourceRange",
- "description": "The source ranges of the data."
+ "properties": {
+ "$ref": "SheetProperties",
+ "description": "The properties the new sheet should have.\nAll properties are optional.\nThe sheetId field is optional; if one is not\nset, an id will be randomly generated. (It is an error to specify the ID\nof a sheet that already exists.)"
}
},
"type": "object"
},
- "BatchGetValuesResponse": {
- "description": "The response when retrieving more than one range of values in a spreadsheet.",
- "id": "BatchGetValuesResponse",
+ "UpdateCellsRequest": {
+ "description": "Updates all cells in a range with new data.",
+ "id": "UpdateCellsRequest",
"properties": {
- "spreadsheetId": {
- "description": "The ID of the spreadsheet the data was retrieved from.",
- "type": "string"
+ "start": {
+ "$ref": "GridCoordinate",
+ "description": "The coordinate to start writing data at.\nAny number of rows and columns (including a different number of\ncolumns per row) may be written."
},
- "valueRanges": {
- "description": "The requested values. The order of the ValueRanges is the same as the\norder of the requested ranges.",
+ "range": {
+ "$ref": "GridRange",
+ "description": "The range to write data to.\n\nIf the data in rows does not cover the entire requested range,\nthe fields matching those set in fields will be cleared."
+ },
+ "rows": {
+ "description": "The data to write.",
"items": {
- "$ref": "ValueRange"
+ "$ref": "RowData"
},
"type": "array"
+ },
+ "fields": {
+ "description": "The fields of CellData that should be updated.\nAt least one field must be specified.\nThe root is the CellData; 'row.values.' should not be specified.\nA single `\"*\"` can be used as short-hand for listing every field.",
+ "format": "google-fieldmask",
+ "type": "string"
}
},
"type": "object"
},
- "UpdateBandingRequest": {
- "description": "Updates properties of the supplied banded range.",
- "id": "UpdateBandingRequest",
+ "DeleteConditionalFormatRuleResponse": {
+ "description": "The result of deleting a conditional format rule.",
+ "id": "DeleteConditionalFormatRuleResponse",
"properties": {
- "fields": {
- "description": "The fields that should be updated. At least one field must be specified.\nThe root `bandedRange` is implied and should not be specified.\nA single `\"*\"` can be used as short-hand for listing every field.",
- "format": "google-fieldmask",
- "type": "string"
- },
- "bandedRange": {
- "$ref": "BandedRange",
- "description": "The banded range to update with the new properties."
+ "rule": {
+ "$ref": "ConditionalFormatRule",
+ "description": "The rule that was deleted."
}
},
"type": "object"
},
- "Color": {
- "description": "Represents a color in the RGBA color space. This representation is designed\nfor simplicity of conversion to/from color representations in various\nlanguages over compactness; for example, the fields of this representation\ncan be trivially provided to the constructor of \"java.awt.Color\" in Java; it\ncan also be trivially provided to UIColor's \"+colorWithRed:green:blue:alpha\"\nmethod in iOS; and, with just a little work, it can be easily formatted into\na CSS \"rgba()\" string in JavaScript, as well. Here are some examples:\n\nExample (Java):\n\n import com.google.type.Color;\n\n // ...\n public static java.awt.Color fromProto(Color protocolor) {\n float alpha = protocolor.hasAlpha()\n ? protocolor.getAlpha().getValue()\n : 1.0;\n\n return new java.awt.Color(\n protocolor.getRed(),\n protocolor.getGreen(),\n protocolor.getBlue(),\n alpha);\n }\n\n public static Color toProto(java.awt.Color color) {\n float red = (float) color.getRed();\n float green = (float) color.getGreen();\n float blue = (float) color.getBlue();\n float denominator = 255.0;\n Color.Builder resultBuilder =\n Color\n .newBuilder()\n .setRed(red / denominator)\n .setGreen(green / denominator)\n .setBlue(blue / denominator);\n int alpha = color.getAlpha();\n if (alpha != 255) {\n result.setAlpha(\n FloatValue\n .newBuilder()\n .setValue(((float) alpha) / denominator)\n .build());\n }\n return resultBuilder.build();\n }\n // ...\n\nExample (iOS / Obj-C):\n\n // ...\n static UIColor* fromProto(Color* protocolor) {\n float red = [protocolor red];\n float green = [protocolor green];\n float blue = [protocolor blue];\n FloatValue* alpha_wrapper = [protocolor alpha];\n float alpha = 1.0;\n if (alpha_wrapper != nil) {\n alpha = [alpha_wrapper value];\n }\n return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];\n }\n\n static Color* toProto(UIColor* color) {\n CGFloat red, green, blue, alpha;\n if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) {\n return nil;\n }\n Color* result = [Color alloc] init];\n [result setRed:red];\n [result setGreen:green];\n [result setBlue:blue];\n if (alpha <= 0.9999) {\n [result setAlpha:floatWrapperWithValue(alpha)];\n }\n [result autorelease];\n return result;\n }\n // ...\n\n Example (JavaScript):\n\n // ...\n\n var protoToCssColor = function(rgb_color) {\n var redFrac = rgb_color.red || 0.0;\n var greenFrac = rgb_color.green || 0.0;\n var blueFrac = rgb_color.blue || 0.0;\n var red = Math.floor(redFrac * 255);\n var green = Math.floor(greenFrac * 255);\n var blue = Math.floor(blueFrac * 255);\n\n if (!('alpha' in rgb_color)) {\n return rgbToCssColor_(red, green, blue);\n }\n\n var alphaFrac = rgb_color.alpha.value || 0.0;\n var rgbParams = [red, green, blue].join(',');\n return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');\n };\n\n var rgbToCssColor_ = function(red, green, blue) {\n var rgbNumber = new Number((red << 16) | (green << 8) | blue);\n var hexString = rgbNumber.toString(16);\n var missingZeros = 6 - hexString.length;\n var resultBuilder = ['#'];\n for (var i = 0; i < missingZeros; i++) {\n resultBuilder.push('0');\n }\n resultBuilder.push(hexString);\n return resultBuilder.join('');\n };\n\n // ...",
- "id": "Color",
+ "DeleteRangeRequest": {
+ "description": "Deletes a range of cells, shifting other cells into the deleted area.",
+ "id": "DeleteRangeRequest",
"properties": {
- "red": {
- "description": "The amount of red in the color as a value in the interval [0, 1].",
- "format": "float",
- "type": "number"
- },
- "green": {
- "description": "The amount of green in the color as a value in the interval [0, 1].",
- "format": "float",
- "type": "number"
- },
- "blue": {
- "description": "The amount of blue in the color as a value in the interval [0, 1].",
- "format": "float",
- "type": "number"
+ "shiftDimension": {
+ "description": "The dimension from which deleted cells will be replaced with.\nIf ROWS, existing cells will be shifted upward to\nreplace the deleted cells. If COLUMNS, existing cells\nwill be shifted left to replace the deleted cells.",
+ "enum": [
+ "DIMENSION_UNSPECIFIED",
+ "ROWS",
+ "COLUMNS"
+ ],
+ "enumDescriptions": [
+ "The default value, do not use.",
+ "Operates on the rows of a sheet.",
+ "Operates on the columns of a sheet."
+ ],
+ "type": "string"
},
- "alpha": {
- "description": "The fraction of this color that should be applied to the pixel. That is,\nthe final pixel color is defined by the equation:\n\n pixel color = alpha * (this color) + (1.0 - alpha) * (background color)\n\nThis means that a value of 1.0 corresponds to a solid color, whereas\na value of 0.0 corresponds to a completely transparent color. This\nuses a wrapper message rather than a simple float scalar so that it is\npossible to distinguish between a default value and the value being unset.\nIf omitted, this color object is to be rendered as a solid color\n(as if the alpha value had been explicitly given with a value of 1.0).",
- "format": "float",
- "type": "number"
+ "range": {
+ "$ref": "GridRange",
+ "description": "The range of cells to delete."
}
},
"type": "object"
},
- "PivotGroup": {
- "description": "A single grouping (either row or column) in a pivot table.",
- "id": "PivotGroup",
+ "GridCoordinate": {
+ "description": "A coordinate in a sheet.\nAll indexes are zero-based.",
+ "id": "GridCoordinate",
"properties": {
- "sourceColumnOffset": {
- "description": "The column offset of the source range that this grouping is based on.\n\nFor example, if the source was `C10:E15`, a `sourceColumnOffset` of `0`\nmeans this group refers to column `C`, whereas the offset `1` would refer\nto column `D`.",
+ "rowIndex": {
+ "description": "The row index of the coordinate.",
"format": "int32",
"type": "integer"
},
- "showTotals": {
- "description": "True if the pivot table should include the totals for this grouping.",
- "type": "boolean"
+ "columnIndex": {
+ "description": "The column index of the coordinate.",
+ "format": "int32",
+ "type": "integer"
},
- "valueMetadata": {
- "description": "Metadata about values in the grouping.",
- "items": {
- "$ref": "PivotGroupValueMetadata"
- },
- "type": "array"
+ "sheetId": {
+ "description": "The sheet this coordinate is on.",
+ "format": "int32",
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "UpdateSheetPropertiesRequest": {
+ "description": "Updates properties of the sheet with the specified\nsheetId.",
+ "id": "UpdateSheetPropertiesRequest",
+ "properties": {
+ "properties": {
+ "$ref": "SheetProperties",
+ "description": "The properties to update."
},
- "sortOrder": {
- "description": "The order the values in this group should be sorted.",
- "enum": [
- "SORT_ORDER_UNSPECIFIED",
- "ASCENDING",
- "DESCENDING"
- ],
- "enumDescriptions": [
- "Default value, do not use this.",
- "Sort ascending.",
- "Sort descending."
- ],
+ "fields": {
+ "description": "The fields that should be updated. At least one field must be specified.\nThe root `properties` is implied and should not be specified.\nA single `\"*\"` can be used as short-hand for listing every field.",
+ "format": "google-fieldmask",
"type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "UnmergeCellsRequest": {
+ "description": "Unmerges cells in the given range.",
+ "id": "UnmergeCellsRequest",
+ "properties": {
+ "range": {
+ "$ref": "GridRange",
+ "description": "The range within which all cells should be unmerged.\nIf the range spans multiple merges, all will be unmerged.\nThe range must not partially span any merge."
+ }
+ },
+ "type": "object"
+ },
+ "GridProperties": {
+ "description": "Properties of a grid.",
+ "id": "GridProperties",
+ "properties": {
+ "rowCount": {
+ "description": "The number of rows in the grid.",
+ "format": "int32",
+ "type": "integer"
},
- "valueBucket": {
- "$ref": "PivotGroupSortValueBucket",
- "description": "The bucket of the opposite pivot group to sort by.\nIf not specified, sorting is alphabetical by this group's values."
+ "frozenRowCount": {
+ "description": "The number of rows that are frozen in the grid.",
+ "format": "int32",
+ "type": "integer"
+ },
+ "hideGridlines": {
+ "description": "True if the grid isn't showing gridlines in the UI.",
+ "type": "boolean"
+ },
+ "columnCount": {
+ "description": "The number of columns in the grid.",
+ "format": "int32",
+ "type": "integer"
+ },
+ "frozenColumnCount": {
+ "description": "The number of columns that are frozen in the grid.",
+ "format": "int32",
+ "type": "integer"
}
},
"type": "object"
},
- "PivotTable": {
- "description": "A pivot table.",
- "id": "PivotTable",
+ "Sheet": {
+ "description": "A sheet in a spreadsheet.",
+ "id": "Sheet",
"properties": {
- "criteria": {
- "additionalProperties": {
- "$ref": "PivotFilterCriteria"
+ "charts": {
+ "description": "The specifications of every chart on this sheet.",
+ "items": {
+ "$ref": "EmbeddedChart"
},
- "description": "An optional mapping of filters per source column offset.\n\nThe filters will be applied before aggregating data into the pivot table.\nThe map's key is the column offset of the source range that you want to\nfilter, and the value is the criteria for that column.\n\nFor example, if the source was `C10:E15`, a key of `0` will have the filter\nfor column `C`, whereas the key `1` is for column `D`.",
- "type": "object"
+ "type": "array"
},
- "rows": {
- "description": "Each row grouping in the pivot table.",
+ "properties": {
+ "$ref": "SheetProperties",
+ "description": "The properties of the sheet."
+ },
+ "filterViews": {
+ "description": "The filter views in this sheet.",
"items": {
- "$ref": "PivotGroup"
+ "$ref": "FilterView"
},
"type": "array"
},
- "valueLayout": {
- "description": "Whether values should be listed horizontally (as columns)\nor vertically (as rows).",
- "enum": [
- "HORIZONTAL",
- "VERTICAL"
- ],
- "enumDescriptions": [
- "Values are laid out horizontally (as columns).",
- "Values are laid out vertically (as rows)."
- ],
- "type": "string"
- },
- "columns": {
- "description": "Each column grouping in the pivot table.",
+ "protectedRanges": {
+ "description": "The protected ranges in this sheet.",
"items": {
- "$ref": "PivotGroup"
+ "$ref": "ProtectedRange"
},
"type": "array"
},
- "values": {
- "description": "A list of values to include in the pivot table.",
+ "conditionalFormats": {
+ "description": "The conditional format rules in this sheet.",
"items": {
- "$ref": "PivotValue"
+ "$ref": "ConditionalFormatRule"
},
"type": "array"
},
- "source": {
- "$ref": "GridRange",
- "description": "The range the pivot table is reading data from."
- }
- },
- "type": "object"
- },
- "ChartSourceRange": {
- "description": "Source ranges for a chart.",
- "id": "ChartSourceRange",
- "properties": {
- "sources": {
- "description": "The ranges of data for a series or domain.\nExactly one dimension must have a length of 1,\nand all sources in the list must have the same dimension\nwith length 1.\nThe domain (if it exists) & all series must have the same number\nof source ranges. If using more than one source range, then the source\nrange at a given offset must be contiguous across the domain and series.\n\nFor example, these are valid configurations:\n\n domain sources: A1:A5\n series1 sources: B1:B5\n series2 sources: D6:D10\n\n domain sources: A1:A5, C10:C12\n series1 sources: B1:B5, D10:D12\n series2 sources: C1:C5, E10:E12",
+ "basicFilter": {
+ "$ref": "BasicFilter",
+ "description": "The filter on this sheet, if any."
+ },
+ "merges": {
+ "description": "The ranges that are merged together.",
"items": {
"$ref": "GridRange"
},
"type": "array"
+ },
+ "data": {
+ "description": "Data in the grid, if this is a grid sheet.\nThe number of GridData objects returned is dependent on the number of\nranges requested on this sheet. For example, if this is representing\n`Sheet1`, and the spreadsheet was requested with ranges\n`Sheet1!A1:C10` and `Sheet1!D15:E20`, then the first GridData will have a\nstartRow/startColumn of `0`,\nwhile the second one will have `startRow 14` (zero-based row 15),\nand `startColumn 3` (zero-based column D).",
+ "items": {
+ "$ref": "GridData"
+ },
+ "type": "array"
+ },
+ "bandedRanges": {
+ "description": "The banded (i.e. alternating colors) ranges on this sheet.",
+ "items": {
+ "$ref": "BandedRange"
+ },
+ "type": "array"
}
},
"type": "object"
},
- "ValueRange": {
- "description": "Data within a range of the spreadsheet.",
- "id": "ValueRange",
+ "SortSpec": {
+ "description": "A sort order associated with a specific column or row.",
+ "id": "SortSpec",
"properties": {
- "majorDimension": {
- "description": "The major dimension of the values.\n\nFor output, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`,\nthen requesting `range=A1:B2,majorDimension=ROWS` will return\n`[[1,2],[3,4]]`,\nwhereas requesting `range=A1:B2,majorDimension=COLUMNS` will return\n`[[1,3],[2,4]]`.\n\nFor input, with `range=A1:B2,majorDimension=ROWS` then `[[1,2],[3,4]]`\nwill set `A1=1,B1=2,A2=3,B2=4`. With `range=A1:B2,majorDimension=COLUMNS`\nthen `[[1,2],[3,4]]` will set `A1=1,B1=3,A2=2,B2=4`.\n\nWhen writing, if this field is not set, it defaults to ROWS.",
+ "dimensionIndex": {
+ "description": "The dimension the sort should be applied to.",
+ "format": "int32",
+ "type": "integer"
+ },
+ "sortOrder": {
+ "description": "The order data should be sorted.",
"enum": [
- "DIMENSION_UNSPECIFIED",
- "ROWS",
- "COLUMNS"
+ "SORT_ORDER_UNSPECIFIED",
+ "ASCENDING",
+ "DESCENDING"
],
"enumDescriptions": [
- "The default value, do not use.",
- "Operates on the rows of a sheet.",
- "Operates on the columns of a sheet."
+ "Default value, do not use this.",
+ "Sort ascending.",
+ "Sort descending."
],
"type": "string"
- },
- "values": {
- "description": "The data that was read or to be written. This is an array of arrays,\nthe outer array representing all the data and each inner array\nrepresenting a major dimension. Each item in the inner array\ncorresponds with one cell.\n\nFor output, empty trailing rows and columns will not be included.\n\nFor input, supported value types are: bool, string, and double.\nNull values will be skipped.\nTo set a cell to an empty value, set the string value to an empty string.",
- "items": {
- "items": {
- "type": "any"
- },
- "type": "array"
- },
- "type": "array"
- },
- "range": {
- "description": "The range the values cover, in A1 notation.\nFor output, this range indicates the entire requested range,\neven though the values will exclude trailing rows and columns.\nWhen appending values, this field represents the range to search for a\ntable, after which values will be appended.",
- "type": "string"
}
},
"type": "object"
},
- "AppendCellsRequest": {
- "description": "Adds new cells after the last row with data in a sheet,\ninserting new rows into the sheet if necessary.",
- "id": "AppendCellsRequest",
+ "UpdateEmbeddedObjectPositionResponse": {
+ "description": "The result of updating an embedded object's position.",
+ "id": "UpdateEmbeddedObjectPositionResponse",
"properties": {
- "rows": {
- "description": "The data to append.",
+ "position": {
+ "$ref": "EmbeddedObjectPosition",
+ "description": "The new position of the embedded object."
+ }
+ },
+ "type": "object"
+ },
+ "BooleanRule": {
+ "description": "A rule that may or may not match, depending on the condition.",
+ "id": "BooleanRule",
+ "properties": {
+ "format": {
+ "$ref": "CellFormat",
+ "description": "The format to apply.\nConditional formatting can only apply a subset of formatting:\nbold, italic,\nstrikethrough,\nforeground color &\nbackground color."
+ },
+ "condition": {
+ "$ref": "BooleanCondition",
+ "description": "The condition of the rule. If the condition evaluates to true,\nthe format will be applied."
+ }
+ },
+ "type": "object"
+ },
+ "FilterCriteria": {
+ "description": "Criteria for showing/hiding rows in a filter or filter view.",
+ "id": "FilterCriteria",
+ "properties": {
+ "hiddenValues": {
+ "description": "Values that should be hidden.",
"items": {
- "$ref": "RowData"
+ "type": "string"
},
"type": "array"
},
- "fields": {
- "description": "The fields of CellData that should be updated.\nAt least one field must be specified.\nThe root is the CellData; 'row.values.' should not be specified.\nA single `\"*\"` can be used as short-hand for listing every field.",
- "format": "google-fieldmask",
- "type": "string"
- },
- "sheetId": {
- "description": "The sheet ID to append the data to.",
- "format": "int32",
- "type": "integer"
+ "condition": {
+ "$ref": "BooleanCondition",
+ "description": "A condition that must be true for values to be shown.\n(This does not override hiddenValues -- if a value is listed there,\n it will still be hidden.)"
}
},
"type": "object"
},
- "AddBandingRequest": {
- "description": "Adds a new banded range to the spreadsheet.",
- "id": "AddBandingRequest",
+ "PivotGroupValueMetadata": {
+ "description": "Metadata about a value in a pivot grouping.",
+ "id": "PivotGroupValueMetadata",
"properties": {
- "bandedRange": {
- "$ref": "BandedRange",
- "description": "The banded range to add. The bandedRangeId\nfield is optional; if one is not set, an id will be randomly generated. (It\nis an error to specify the ID of a range that already exists.)"
+ "value": {
+ "$ref": "ExtendedValue",
+ "description": "The calculated value the metadata corresponds to.\n(Note that formulaValue is not valid,\n because the values will be calculated.)"
+ },
+ "collapsed": {
+ "description": "True if the data corresponding to the value is collapsed.",
+ "type": "boolean"
}
},
"type": "object"
},
- "Response": {
- "description": "A single response from an update.",
- "id": "Response",
+ "Editors": {
+ "description": "The editors of a protected range.",
+ "id": "Editors",
"properties": {
- "addProtectedRange": {
- "$ref": "AddProtectedRangeResponse",
- "description": "A reply from adding a protected range."
+ "users": {
+ "description": "The email addresses of users with edit access to the protected range.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
},
- "duplicateSheet": {
- "$ref": "DuplicateSheetResponse",
- "description": "A reply from duplicating a sheet."
+ "groups": {
+ "description": "The email addresses of groups with edit access to the protected range.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
},
- "updateEmbeddedObjectPosition": {
- "$ref": "UpdateEmbeddedObjectPositionResponse",
- "description": "A reply from updating an embedded object's position."
+ "domainUsersCanEdit": {
+ "description": "True if anyone in the document's domain has edit access to the protected\nrange. Domain protection is only supported on documents within a domain.",
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ },
+ "UpdateConditionalFormatRuleRequest": {
+ "description": "Updates a conditional format rule at the given index,\nor moves a conditional format rule to another index.",
+ "id": "UpdateConditionalFormatRuleRequest",
+ "properties": {
+ "sheetId": {
+ "description": "The sheet of the rule to move. Required if new_index is set,\nunused otherwise.",
+ "format": "int32",
+ "type": "integer"
},
- "deleteConditionalFormatRule": {
- "$ref": "DeleteConditionalFormatRuleResponse",
- "description": "A reply from deleting a conditional format rule."
+ "newIndex": {
+ "description": "The zero-based new index the rule should end up at.",
+ "format": "int32",
+ "type": "integer"
},
- "duplicateFilterView": {
- "$ref": "DuplicateFilterViewResponse",
- "description": "A reply from duplicating a filter view."
+ "rule": {
+ "$ref": "ConditionalFormatRule",
+ "description": "The rule that should replace the rule at the given index."
},
- "addChart": {
- "$ref": "AddChartResponse",
- "description": "A reply from adding a chart."
+ "index": {
+ "description": "The zero-based index of the rule that should be replaced or moved.",
+ "format": "int32",
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "DataValidationRule": {
+ "description": "A data validation rule.",
+ "id": "DataValidationRule",
+ "properties": {
+ "condition": {
+ "$ref": "BooleanCondition",
+ "description": "The condition that data in the cell must match."
},
- "findReplace": {
- "$ref": "FindReplaceResponse",
- "description": "A reply from doing a find/replace."
+ "showCustomUi": {
+ "description": "True if the UI should be customized based on the kind of condition.\nIf true, \"List\" conditions will show a dropdown.",
+ "type": "boolean"
},
- "addSheet": {
- "$ref": "AddSheetResponse",
- "description": "A reply from adding a sheet."
+ "strict": {
+ "description": "True if invalid data should be rejected.",
+ "type": "boolean"
},
- "updateConditionalFormatRule": {
- "$ref": "UpdateConditionalFormatRuleResponse",
- "description": "A reply from updating a conditional format rule."
+ "inputMessage": {
+ "description": "A message to show the user when adding data to the cell.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "BasicChartDomain": {
+ "description": "The domain of a chart.\nFor example, if charting stock prices over time, this would be the date.",
+ "id": "BasicChartDomain",
+ "properties": {
+ "domain": {
+ "$ref": "ChartData",
+ "description": "The data of the domain. For example, if charting stock prices over time,\nthis is the data representing the dates."
+ }
+ },
+ "type": "object"
+ },
+ "PasteDataRequest": {
+ "description": "Inserts data into the spreadsheet starting at the specified coordinate.",
+ "id": "PasteDataRequest",
+ "properties": {
+ "data": {
+ "description": "The data to insert.",
+ "type": "string"
},
- "addNamedRange": {
- "$ref": "AddNamedRangeResponse",
- "description": "A reply from adding a named range."
+ "delimiter": {
+ "description": "The delimiter in the data.",
+ "type": "string"
},
- "addFilterView": {
- "$ref": "AddFilterViewResponse",
- "description": "A reply from adding a filter view."
+ "type": {
+ "description": "How the data should be pasted.",
+ "enum": [
+ "PASTE_NORMAL",
+ "PASTE_VALUES",
+ "PASTE_FORMAT",
+ "PASTE_NO_BORDERS",
+ "PASTE_FORMULA",
+ "PASTE_DATA_VALIDATION",
+ "PASTE_CONDITIONAL_FORMATTING"
+ ],
+ "enumDescriptions": [
+ "Paste values, formulas, formats, and merges.",
+ "Paste the values ONLY without formats, formulas, or merges.",
+ "Paste the format and data validation only.",
+ "Like PASTE_NORMAL but without borders.",
+ "Paste the formulas only.",
+ "Paste the data validation only.",
+ "Paste the conditional formatting rules only."
+ ],
+ "type": "string"
},
- "addBanding": {
- "$ref": "AddBandingResponse",
- "description": "A reply from adding a banded range."
+ "html": {
+ "description": "True if the data is HTML.",
+ "type": "boolean"
+ },
+ "coordinate": {
+ "$ref": "GridCoordinate",
+ "description": "The coordinate at which the data should start being inserted."
}
},
"type": "object"
},
- "InsertRangeRequest": {
- "description": "Inserts cells into a range, shifting the existing cells over or down.",
- "id": "InsertRangeRequest",
+ "AppendDimensionRequest": {
+ "description": "Appends rows or columns to the end of a sheet.",
+ "id": "AppendDimensionRequest",
"properties": {
- "range": {
- "$ref": "GridRange",
- "description": "The range to insert new cells into."
+ "sheetId": {
+ "description": "The sheet to append rows or columns to.",
+ "format": "int32",
+ "type": "integer"
},
- "shiftDimension": {
- "description": "The dimension which will be shifted when inserting cells.\nIf ROWS, existing cells will be shifted down.\nIf COLUMNS, existing cells will be shifted right.",
+ "dimension": {
+ "description": "Whether rows or columns should be appended.",
"enum": [
"DIMENSION_UNSPECIFIED",
"ROWS",
@@ -2793,850 +2963,395 @@
"Operates on the columns of a sheet."
],
"type": "string"
+ },
+ "length": {
+ "description": "The number of rows or columns to append.",
+ "format": "int32",
+ "type": "integer"
}
},
"type": "object"
},
- "EmbeddedChart": {
- "description": "A chart embedded in a sheet.",
- "id": "EmbeddedChart",
+ "AddNamedRangeRequest": {
+ "description": "Adds a named range to the spreadsheet.",
+ "id": "AddNamedRangeRequest",
"properties": {
- "spec": {
- "$ref": "ChartSpec",
- "description": "The specification of the chart."
- },
- "chartId": {
- "description": "The ID of the chart.",
- "format": "int32",
- "type": "integer"
- },
- "position": {
- "$ref": "EmbeddedObjectPosition",
- "description": "The position of the chart."
+ "namedRange": {
+ "$ref": "NamedRange",
+ "description": "The named range to add. The namedRangeId\nfield is optional; if one is not set, an id will be randomly generated. (It\nis an error to specify the ID of a range that already exists.)"
}
},
"type": "object"
},
- "TextFormatRun": {
- "description": "A run of a text format. The format of this run continues until the start\nindex of the next run.\nWhen updating, all fields must be set.",
- "id": "TextFormatRun",
+ "UpdateEmbeddedObjectPositionRequest": {
+ "description": "Update an embedded object's position (such as a moving or resizing a\nchart or image).",
+ "id": "UpdateEmbeddedObjectPositionRequest",
"properties": {
- "format": {
- "$ref": "TextFormat",
- "description": "The format of this run. Absent values inherit the cell's format."
- },
- "startIndex": {
- "description": "The character index where this run starts.",
+ "objectId": {
+ "description": "The ID of the object to moved.",
"format": "int32",
"type": "integer"
+ },
+ "newPosition": {
+ "$ref": "EmbeddedObjectPosition",
+ "description": "An explicit position to move the embedded object to.\nIf newPosition.sheetId is set,\na new sheet with that ID will be created.\nIf newPosition.newSheet is set to true,\na new sheet will be created with an ID that will be chosen for you."
+ },
+ "fields": {
+ "description": "The fields of OverlayPosition\nthat should be updated when setting a new position. Used only if\nnewPosition.overlayPosition\nis set, in which case at least one field must\nbe specified. The root `newPosition.overlayPosition` is implied and\nshould not be specified.\nA single `\"*\"` can be used as short-hand for listing every field.",
+ "format": "google-fieldmask",
+ "type": "string"
}
},
"type": "object"
},
- "AddNamedRangeResponse": {
- "description": "The result of adding a named range.",
- "id": "AddNamedRangeResponse",
- "properties": {
- "namedRange": {
- "$ref": "NamedRange",
- "description": "The named range to add."
- }
- },
- "type": "object"
- },
- "RowData": {
- "description": "Data about each cell in a row.",
- "id": "RowData",
- "properties": {
- "values": {
- "description": "The values in the row, one per column.",
- "items": {
- "$ref": "CellData"
- },
- "type": "array"
- }
- },
- "type": "object"
- },
- "GridData": {
- "description": "Data in the grid, as well as metadata about the dimensions.",
- "id": "GridData",
+ "TextRotation": {
+ "description": "The rotation applied to text in a cell.",
+ "id": "TextRotation",
"properties": {
- "columnMetadata": {
- "description": "Metadata about the requested columns in the grid, starting with the column\nin start_column.",
- "items": {
- "$ref": "DimensionProperties"
- },
- "type": "array"
- },
- "startColumn": {
- "description": "The first column this GridData refers to, zero-based.",
- "format": "int32",
- "type": "integer"
- },
- "rowMetadata": {
- "description": "Metadata about the requested rows in the grid, starting with the row\nin start_row.",
- "items": {
- "$ref": "DimensionProperties"
- },
- "type": "array"
- },
- "rowData": {
- "description": "The data in the grid, one entry per row,\nstarting with the row in startRow.\nThe values in RowData will correspond to columns starting\nat start_column.",
- "items": {
- "$ref": "RowData"
- },
- "type": "array"
+ "vertical": {
+ "description": "If true, text reads top to bottom, but the orientation of individual\ncharacters is unchanged.\nFor example:\n\n | V |\n | e |\n | r |\n | t |\n | i |\n | c |\n | a |\n | l |",
+ "type": "boolean"
},
- "startRow": {
- "description": "The first row this GridData refers to, zero-based.",
+ "angle": {
+ "description": "The angle between the standard orientation and the desired orientation.\nMeasured in degrees. Valid values are between -90 and 90. Positive\nangles are angled upwards, negative are angled downwards.\n\nNote: For LTR text direction positive angles are in the counterclockwise\ndirection, whereas for RTL they are in the clockwise direction",
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
- "Border": {
- "description": "A border along a cell.",
- "id": "Border",
+ "PieChartSpec": {
+ "description": "A <a href=\"/chart/interactive/docs/gallery/piechart\">pie chart</a>.",
+ "id": "PieChartSpec",
"properties": {
- "width": {
- "description": "The width of the border, in pixels.\nDeprecated; the width is determined by the \"style\" field.",
- "format": "int32",
- "type": "integer"
+ "series": {
+ "$ref": "ChartData",
+ "description": "The data that covers the one and only series of the pie chart."
},
- "style": {
- "description": "The style of the border.",
+ "legendPosition": {
+ "description": "Where the legend of the pie chart should be drawn.",
"enum": [
- "STYLE_UNSPECIFIED",
- "DOTTED",
- "DASHED",
- "SOLID",
- "SOLID_MEDIUM",
- "SOLID_THICK",
- "NONE",
- "DOUBLE"
+ "PIE_CHART_LEGEND_POSITION_UNSPECIFIED",
+ "BOTTOM_LEGEND",
+ "LEFT_LEGEND",
+ "RIGHT_LEGEND",
+ "TOP_LEGEND",
+ "NO_LEGEND",
+ "LABELED_LEGEND"
],
"enumDescriptions": [
- "The style is not specified. Do not use this.",
- "The border is dotted.",
- "The border is dashed.",
- "The border is a thin solid line.",
- "The border is a medium solid line.",
- "The border is a thick solid line.",
- "No border.\nUsed only when updating a border in order to erase it.",
- "The border is two solid lines."
+ "Default value, do not use.",
+ "The legend is rendered on the bottom of the chart.",
+ "The legend is rendered on the left of the chart.",
+ "The legend is rendered on the right of the chart.",
+ "The legend is rendered on the top of the chart.",
+ "No legend is rendered.",
+ "Each pie slice has a label attached to it."
],
"type": "string"
},
- "color": {
- "$ref": "Color",
- "description": "The color of the border."
+ "pieHole": {
+ "description": "The size of the hole in the pie chart.",
+ "format": "double",
+ "type": "number"
+ },
+ "domain": {
+ "$ref": "ChartData",
+ "description": "The data that covers the domain of the pie chart."
+ },
+ "threeDimensional": {
+ "description": "True if the pie is three dimensional.",
+ "type": "boolean"
}
},
"type": "object"
},
- "UpdateNamedRangeRequest": {
- "description": "Updates properties of the named range with the specified\nnamedRangeId.",
- "id": "UpdateNamedRangeRequest",
+ "UpdateFilterViewRequest": {
+ "description": "Updates properties of the filter view.",
+ "id": "UpdateFilterViewRequest",
"properties": {
- "namedRange": {
- "$ref": "NamedRange",
- "description": "The named range to update with the new properties."
+ "filter": {
+ "$ref": "FilterView",
+ "description": "The new properties of the filter view."
},
"fields": {
- "description": "The fields that should be updated. At least one field must be specified.\nThe root `namedRange` is implied and should not be specified.\nA single `\"*\"` can be used as short-hand for listing every field.",
+ "description": "The fields that should be updated. At least one field must be specified.\nThe root `filter` is implied and should not be specified.\nA single `\"*\"` can be used as short-hand for listing every field.",
"format": "google-fieldmask",
"type": "string"
}
},
"type": "object"
},
- "FindReplaceRequest": {
- "description": "Finds and replaces data in cells over a range, sheet, or all sheets.",
- "id": "FindReplaceRequest",
+ "ConditionalFormatRule": {
+ "description": "A rule describing a conditional format.",
+ "id": "ConditionalFormatRule",
"properties": {
- "includeFormulas": {
- "description": "True if the search should include cells with formulas.\nFalse to skip cells with formulas.",
- "type": "boolean"
- },
- "matchEntireCell": {
- "description": "True if the find value should match the entire cell.",
- "type": "boolean"
+ "gradientRule": {
+ "$ref": "GradientRule",
+ "description": "The formatting will vary based on the gradients in the rule."
},
- "searchByRegex": {
- "description": "True if the find value is a regex.\nThe regular expression and replacement should follow Java regex rules\nat https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html.\nThe replacement string is allowed to refer to capturing groups.\nFor example, if one cell has the contents `\"Google Sheets\"` and another\nhas `\"Google Docs\"`, then searching for `\"o.* (.*)\"` with a replacement of\n`\"$1 Rocks\"` would change the contents of the cells to\n`\"GSheets Rocks\"` and `\"GDocs Rocks\"` respectively.",
- "type": "boolean"
+ "booleanRule": {
+ "$ref": "BooleanRule",
+ "description": "The formatting is either \"on\" or \"off\" according to the rule."
},
- "find": {
- "description": "The value to search.",
- "type": "string"
+ "ranges": {
+ "description": "The ranges that will be formatted if the condition is true.\nAll the ranges must be on the same grid.",
+ "items": {
+ "$ref": "GridRange"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "CopyPasteRequest": {
+ "description": "Copies data from the source to the destination.",
+ "id": "CopyPasteRequest",
+ "properties": {
+ "destination": {
+ "$ref": "GridRange",
+ "description": "The location to paste to. If the range covers a span that's\na multiple of the source's height or width, then the\ndata will be repeated to fill in the destination range.\nIf the range is smaller than the source range, the entire\nsource data will still be copied (beyond the end of the destination range)."
},
- "replacement": {
- "description": "The value to use as the replacement.",
+ "pasteOrientation": {
+ "description": "How that data should be oriented when pasting.",
+ "enum": [
+ "NORMAL",
+ "TRANSPOSE"
+ ],
+ "enumDescriptions": [
+ "Paste normally.",
+ "Paste transposed, where all rows become columns and vice versa."
+ ],
"type": "string"
},
- "range": {
+ "source": {
"$ref": "GridRange",
- "description": "The range to find/replace over."
- },
- "sheetId": {
- "description": "The sheet to find/replace over.",
- "format": "int32",
- "type": "integer"
- },
- "allSheets": {
- "description": "True to find/replace over all sheets.",
- "type": "boolean"
+ "description": "The source range to copy."
},
- "matchCase": {
- "description": "True if the search is case sensitive.",
- "type": "boolean"
+ "pasteType": {
+ "description": "What kind of data to paste.",
+ "enum": [
+ "PASTE_NORMAL",
+ "PASTE_VALUES",
+ "PASTE_FORMAT",
+ "PASTE_NO_BORDERS",
+ "PASTE_FORMULA",
+ "PASTE_DATA_VALIDATION",
+ "PASTE_CONDITIONAL_FORMATTING"
+ ],
+ "enumDescriptions": [
+ "Paste values, formulas, formats, and merges.",
+ "Paste the values ONLY without formats, formulas, or merges.",
+ "Paste the format and data validation only.",
+ "Like PASTE_NORMAL but without borders.",
+ "Paste the formulas only.",
+ "Paste the data validation only.",
+ "Paste the conditional formatting rules only."
+ ],
+ "type": "string"
}
},
"type": "object"
},
- "AddSheetRequest": {
- "description": "Adds a new sheet.\nWhen a sheet is added at a given index,\nall subsequent sheets' indexes are incremented.\nTo add an object sheet, use AddChartRequest instead and specify\nEmbeddedObjectPosition.sheetId or\nEmbeddedObjectPosition.newSheet.",
- "id": "AddSheetRequest",
- "properties": {
- "properties": {
- "$ref": "SheetProperties",
- "description": "The properties the new sheet should have.\nAll properties are optional.\nThe sheetId field is optional; if one is not\nset, an id will be randomly generated. (It is an error to specify the ID\nof a sheet that already exists.)"
- }
- },
- "type": "object"
- },
- "UpdateCellsRequest": {
- "description": "Updates all cells in a range with new data.",
- "id": "UpdateCellsRequest",
+ "Request": {
+ "description": "A single kind of update to apply to a spreadsheet.",
+ "id": "Request",
"properties": {
- "start": {
- "$ref": "GridCoordinate",
- "description": "The coordinate to start writing data at.\nAny number of rows and columns (including a different number of\ncolumns per row) may be written."
+ "moveDimension": {
+ "$ref": "MoveDimensionRequest",
+ "description": "Moves rows or columns to another location in a sheet."
},
- "range": {
- "$ref": "GridRange",
- "description": "The range to write data to.\n\nIf the data in rows does not cover the entire requested range,\nthe fields matching those set in fields will be cleared."
+ "updateBanding": {
+ "$ref": "UpdateBandingRequest",
+ "description": "Updates a banded range"
},
- "rows": {
- "description": "The data to write.",
- "items": {
- "$ref": "RowData"
- },
- "type": "array"
+ "addProtectedRange": {
+ "$ref": "AddProtectedRangeRequest",
+ "description": "Adds a protected range."
},
- "fields": {
- "description": "The fields of CellData that should be updated.\nAt least one field must be specified.\nThe root is the CellData; 'row.values.' should not be specified.\nA single `\"*\"` can be used as short-hand for listing every field.",
- "format": "google-fieldmask",
- "type": "string"
- }
- },
- "type": "object"
- },
- "DeleteConditionalFormatRuleResponse": {
- "description": "The result of deleting a conditional format rule.",
- "id": "DeleteConditionalFormatRuleResponse",
- "properties": {
- "rule": {
- "$ref": "ConditionalFormatRule",
- "description": "The rule that was deleted."
- }
- },
- "type": "object"
- },
- "DeleteRangeRequest": {
- "description": "Deletes a range of cells, shifting other cells into the deleted area.",
- "id": "DeleteRangeRequest",
- "properties": {
- "shiftDimension": {
- "description": "The dimension from which deleted cells will be replaced with.\nIf ROWS, existing cells will be shifted upward to\nreplace the deleted cells. If COLUMNS, existing cells\nwill be shifted left to replace the deleted cells.",
- "enum": [
- "DIMENSION_UNSPECIFIED",
- "ROWS",
- "COLUMNS"
- ],
- "enumDescriptions": [
- "The default value, do not use.",
- "Operates on the rows of a sheet.",
- "Operates on the columns of a sheet."
- ],
- "type": "string"
+ "deleteNamedRange": {
+ "$ref": "DeleteNamedRangeRequest",
+ "description": "Deletes a named range."
},
- "range": {
- "$ref": "GridRange",
- "description": "The range of cells to delete."
- }
- },
- "type": "object"
- },
- "GridCoordinate": {
- "description": "A coordinate in a sheet.\nAll indexes are zero-based.",
- "id": "GridCoordinate",
- "properties": {
- "rowIndex": {
- "description": "The row index of the coordinate.",
- "format": "int32",
- "type": "integer"
+ "duplicateSheet": {
+ "$ref": "DuplicateSheetRequest",
+ "description": "Duplicates a sheet."
},
- "columnIndex": {
- "description": "The column index of the coordinate.",
- "format": "int32",
- "type": "integer"
+ "deleteSheet": {
+ "$ref": "DeleteSheetRequest",
+ "description": "Deletes a sheet."
},
- "sheetId": {
- "description": "The sheet this coordinate is on.",
- "format": "int32",
- "type": "integer"
- }
- },
- "type": "object"
- },
- "UpdateSheetPropertiesRequest": {
- "description": "Updates properties of the sheet with the specified\nsheetId.",
- "id": "UpdateSheetPropertiesRequest",
- "properties": {
- "fields": {
- "description": "The fields that should be updated. At least one field must be specified.\nThe root `properties` is implied and should not be specified.\nA single `\"*\"` can be used as short-hand for listing every field.",
- "format": "google-fieldmask",
- "type": "string"
+ "unmergeCells": {
+ "$ref": "UnmergeCellsRequest",
+ "description": "Unmerges merged cells."
},
- "properties": {
- "$ref": "SheetProperties",
- "description": "The properties to update."
- }
- },
- "type": "object"
- },
- "UnmergeCellsRequest": {
- "description": "Unmerges cells in the given range.",
- "id": "UnmergeCellsRequest",
- "properties": {
- "range": {
- "$ref": "GridRange",
- "description": "The range within which all cells should be unmerged.\nIf the range spans multiple merges, all will be unmerged.\nThe range must not partially span any merge."
- }
- },
- "type": "object"
- },
- "GridProperties": {
- "description": "Properties of a grid.",
- "id": "GridProperties",
- "properties": {
- "frozenRowCount": {
- "description": "The number of rows that are frozen in the grid.",
- "format": "int32",
- "type": "integer"
+ "updateEmbeddedObjectPosition": {
+ "$ref": "UpdateEmbeddedObjectPositionRequest",
+ "description": "Updates an embedded object's (e.g. chart, image) position."
},
- "hideGridlines": {
- "description": "True if the grid isn't showing gridlines in the UI.",
- "type": "boolean"
+ "updateDimensionProperties": {
+ "$ref": "UpdateDimensionPropertiesRequest",
+ "description": "Updates dimensions' properties."
},
- "columnCount": {
- "description": "The number of columns in the grid.",
- "format": "int32",
- "type": "integer"
+ "pasteData": {
+ "$ref": "PasteDataRequest",
+ "description": "Pastes data (HTML or delimited) into a sheet."
},
- "frozenColumnCount": {
- "description": "The number of columns that are frozen in the grid.",
- "format": "int32",
- "type": "integer"
+ "setBasicFilter": {
+ "$ref": "SetBasicFilterRequest",
+ "description": "Sets the basic filter on a sheet."
},
- "rowCount": {
- "description": "The number of rows in the grid.",
- "format": "int32",
- "type": "integer"
- }
- },
- "type": "object"
- },
- "Sheet": {
- "description": "A sheet in a spreadsheet.",
- "id": "Sheet",
- "properties": {
- "data": {
- "description": "Data in the grid, if this is a grid sheet.\nThe number of GridData objects returned is dependent on the number of\nranges requested on this sheet. For example, if this is representing\n`Sheet1`, and the spreadsheet was requested with ranges\n`Sheet1!A1:C10` and `Sheet1!D15:E20`, then the first GridData will have a\nstartRow/startColumn of `0`,\nwhile the second one will have `startRow 14` (zero-based row 15),\nand `startColumn 3` (zero-based column D).",
- "items": {
- "$ref": "GridData"
- },
- "type": "array"
+ "addConditionalFormatRule": {
+ "$ref": "AddConditionalFormatRuleRequest",
+ "description": "Adds a new conditional format rule."
},
- "bandedRanges": {
- "description": "The banded (i.e. alternating colors) ranges on this sheet.",
- "items": {
- "$ref": "BandedRange"
- },
- "type": "array"
+ "updateCells": {
+ "$ref": "UpdateCellsRequest",
+ "description": "Updates many cells at once."
},
- "properties": {
- "$ref": "SheetProperties",
- "description": "The properties of the sheet."
+ "addNamedRange": {
+ "$ref": "AddNamedRangeRequest",
+ "description": "Adds a named range."
},
- "charts": {
- "description": "The specifications of every chart on this sheet.",
- "items": {
- "$ref": "EmbeddedChart"
- },
- "type": "array"
+ "updateSpreadsheetProperties": {
+ "$ref": "UpdateSpreadsheetPropertiesRequest",
+ "description": "Updates the spreadsheet's properties."
},
- "filterViews": {
- "description": "The filter views in this sheet.",
- "items": {
- "$ref": "FilterView"
- },
- "type": "array"
+ "deleteEmbeddedObject": {
+ "$ref": "DeleteEmbeddedObjectRequest",
+ "description": "Deletes an embedded object (e.g, chart, image) in a sheet."
},
- "protectedRanges": {
- "description": "The protected ranges in this sheet.",
- "items": {
- "$ref": "ProtectedRange"
- },
- "type": "array"
+ "updateFilterView": {
+ "$ref": "UpdateFilterViewRequest",
+ "description": "Updates the properties of a filter view."
},
- "conditionalFormats": {
- "description": "The conditional format rules in this sheet.",
- "items": {
- "$ref": "ConditionalFormatRule"
- },
- "type": "array"
+ "addBanding": {
+ "$ref": "AddBandingRequest",
+ "description": "Adds a new banded range"
},
- "basicFilter": {
- "$ref": "BasicFilter",
- "description": "The filter on this sheet, if any."
+ "autoResizeDimensions": {
+ "$ref": "AutoResizeDimensionsRequest",
+ "description": "Automatically resizes one or more dimensions based on the contents\nof the cells in that dimension."
},
- "merges": {
- "description": "The ranges that are merged together.",
- "items": {
- "$ref": "GridRange"
- },
- "type": "array"
- }
- },
- "type": "object"
- },
- "SortSpec": {
- "description": "A sort order associated with a specific column or row.",
- "id": "SortSpec",
- "properties": {
- "dimensionIndex": {
- "description": "The dimension the sort should be applied to.",
- "format": "int32",
- "type": "integer"
- },
- "sortOrder": {
- "description": "The order data should be sorted.",
- "enum": [
- "SORT_ORDER_UNSPECIFIED",
- "ASCENDING",
- "DESCENDING"
- ],
- "enumDescriptions": [
- "Default value, do not use this.",
- "Sort ascending.",
- "Sort descending."
- ],
- "type": "string"
- }
- },
- "type": "object"
- },
- "UpdateEmbeddedObjectPositionResponse": {
- "description": "The result of updating an embedded object's position.",
- "id": "UpdateEmbeddedObjectPositionResponse",
- "properties": {
- "position": {
- "$ref": "EmbeddedObjectPosition",
- "description": "The new position of the embedded object."
- }
- },
- "type": "object"
- },
- "BooleanRule": {
- "description": "A rule that may or may not match, depending on the condition.",
- "id": "BooleanRule",
- "properties": {
- "format": {
- "$ref": "CellFormat",
- "description": "The format to apply.\nConditional formatting can only apply a subset of formatting:\nbold, italic,\nstrikethrough,\nforeground color &\nbackground color."
- },
- "condition": {
- "$ref": "BooleanCondition",
- "description": "The condition of the rule. If the condition evaluates to true,\nthe format will be applied."
- }
- },
- "type": "object"
- },
- "PivotGroupValueMetadata": {
- "description": "Metadata about a value in a pivot grouping.",
- "id": "PivotGroupValueMetadata",
- "properties": {
- "value": {
- "$ref": "ExtendedValue",
- "description": "The calculated value the metadata corresponds to.\n(Note that formulaValue is not valid,\n because the values will be calculated.)"
- },
- "collapsed": {
- "description": "True if the data corresponding to the value is collapsed.",
- "type": "boolean"
- }
- },
- "type": "object"
- },
- "FilterCriteria": {
- "description": "Criteria for showing/hiding rows in a filter or filter view.",
- "id": "FilterCriteria",
- "properties": {
- "hiddenValues": {
- "description": "Values that should be hidden.",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "condition": {
- "$ref": "BooleanCondition",
- "description": "A condition that must be true for values to be shown.\n(This does not override hiddenValues -- if a value is listed there,\n it will still be hidden.)"
- }
- },
- "type": "object"
- },
- "Editors": {
- "description": "The editors of a protected range.",
- "id": "Editors",
- "properties": {
- "users": {
- "description": "The email addresses of users with edit access to the protected range.",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "groups": {
- "description": "The email addresses of groups with edit access to the protected range.",
- "items": {
- "type": "string"
- },
- "type": "array"
+ "appendCells": {
+ "$ref": "AppendCellsRequest",
+ "description": "Appends cells after the last row with data in a sheet."
},
- "domainUsersCanEdit": {
- "description": "True if anyone in the document's domain has edit access to the protected\nrange. Domain protection is only supported on documents within a domain.",
- "type": "boolean"
- }
- },
- "type": "object"
- },
- "UpdateConditionalFormatRuleRequest": {
- "description": "Updates a conditional format rule at the given index,\nor moves a conditional format rule to another index.",
- "id": "UpdateConditionalFormatRuleRequest",
- "properties": {
- "index": {
- "description": "The zero-based index of the rule that should be replaced or moved.",
- "format": "int32",
- "type": "integer"
+ "cutPaste": {
+ "$ref": "CutPasteRequest",
+ "description": "Cuts data from one area and pastes it to another."
},
- "sheetId": {
- "description": "The sheet of the rule to move. Required if new_index is set,\nunused otherwise.",
- "format": "int32",
- "type": "integer"
+ "mergeCells": {
+ "$ref": "MergeCellsRequest",
+ "description": "Merges cells together."
},
- "newIndex": {
- "description": "The zero-based new index the rule should end up at.",
- "format": "int32",
- "type": "integer"
+ "updateNamedRange": {
+ "$ref": "UpdateNamedRangeRequest",
+ "description": "Updates a named range."
},
- "rule": {
- "$ref": "ConditionalFormatRule",
- "description": "The rule that should replace the rule at the given index."
- }
- },
- "type": "object"
- },
- "BasicChartDomain": {
- "description": "The domain of a chart.\nFor example, if charting stock prices over time, this would be the date.",
- "id": "BasicChartDomain",
- "properties": {
- "domain": {
- "$ref": "ChartData",
- "description": "The data of the domain. For example, if charting stock prices over time,\nthis is the data representing the dates."
- }
- },
- "type": "object"
- },
- "DataValidationRule": {
- "description": "A data validation rule.",
- "id": "DataValidationRule",
- "properties": {
- "showCustomUi": {
- "description": "True if the UI should be customized based on the kind of condition.\nIf true, \"List\" conditions will show a dropdown.",
- "type": "boolean"
+ "updateSheetProperties": {
+ "$ref": "UpdateSheetPropertiesRequest",
+ "description": "Updates a sheet's properties."
},
- "strict": {
- "description": "True if invalid data should be rejected.",
- "type": "boolean"
+ "autoFill": {
+ "$ref": "AutoFillRequest",
+ "description": "Automatically fills in more data based on existing data."
},
- "inputMessage": {
- "description": "A message to show the user when adding data to the cell.",
- "type": "string"
+ "deleteDimension": {
+ "$ref": "DeleteDimensionRequest",
+ "description": "Deletes rows or columns in a sheet."
},
- "condition": {
- "$ref": "BooleanCondition",
- "description": "The condition that data in the cell must match."
- }
- },
- "type": "object"
- },
- "PasteDataRequest": {
- "description": "Inserts data into the spreadsheet starting at the specified coordinate.",
- "id": "PasteDataRequest",
- "properties": {
- "coordinate": {
- "$ref": "GridCoordinate",
- "description": "The coordinate at which the data should start being inserted."
+ "sortRange": {
+ "$ref": "SortRangeRequest",
+ "description": "Sorts data in a range."
},
- "data": {
- "description": "The data to insert.",
- "type": "string"
+ "deleteProtectedRange": {
+ "$ref": "DeleteProtectedRangeRequest",
+ "description": "Deletes a protected range."
},
- "delimiter": {
- "description": "The delimiter in the data.",
- "type": "string"
+ "duplicateFilterView": {
+ "$ref": "DuplicateFilterViewRequest",
+ "description": "Duplicates a filter view."
},
- "type": {
- "description": "How the data should be pasted.",
- "enum": [
- "PASTE_NORMAL",
- "PASTE_VALUES",
- "PASTE_FORMAT",
- "PASTE_NO_BORDERS",
- "PASTE_FORMULA",
- "PASTE_DATA_VALIDATION",
- "PASTE_CONDITIONAL_FORMATTING"
- ],
- "enumDescriptions": [
- "Paste values, formulas, formats, and merges.",
- "Paste the values ONLY without formats, formulas, or merges.",
- "Paste the format and data validation only.",
- "Like PASTE_NORMAL but without borders.",
- "Paste the formulas only.",
- "Paste the data validation only.",
- "Paste the conditional formatting rules only."
- ],
- "type": "string"
+ "addChart": {
+ "$ref": "AddChartRequest",
+ "description": "Adds a chart."
},
- "html": {
- "description": "True if the data is HTML.",
- "type": "boolean"
- }
- },
- "type": "object"
- },
- "AppendDimensionRequest": {
- "description": "Appends rows or columns to the end of a sheet.",
- "id": "AppendDimensionRequest",
- "properties": {
- "dimension": {
- "description": "Whether rows or columns should be appended.",
- "enum": [
- "DIMENSION_UNSPECIFIED",
- "ROWS",
- "COLUMNS"
- ],
- "enumDescriptions": [
- "The default value, do not use.",
- "Operates on the rows of a sheet.",
- "Operates on the columns of a sheet."
- ],
- "type": "string"
+ "findReplace": {
+ "$ref": "FindReplaceRequest",
+ "description": "Finds and replaces occurrences of some text with other text."
},
- "length": {
- "description": "The number of rows or columns to append.",
- "format": "int32",
- "type": "integer"
+ "textToColumns": {
+ "$ref": "TextToColumnsRequest",
+ "description": "Converts a column of text into many columns of text."
},
- "sheetId": {
- "description": "The sheet to append rows or columns to.",
- "format": "int32",
- "type": "integer"
- }
- },
- "type": "object"
- },
- "AddNamedRangeRequest": {
- "description": "Adds a named range to the spreadsheet.",
- "id": "AddNamedRangeRequest",
- "properties": {
- "namedRange": {
- "$ref": "NamedRange",
- "description": "The named range to add. The namedRangeId\nfield is optional; if one is not set, an id will be randomly generated. (It\nis an error to specify the ID of a range that already exists.)"
- }
- },
- "type": "object"
- },
- "UpdateEmbeddedObjectPositionRequest": {
- "description": "Update an embedded object's position (such as a moving or resizing a\nchart or image).",
- "id": "UpdateEmbeddedObjectPositionRequest",
- "properties": {
- "fields": {
- "description": "The fields of OverlayPosition\nthat should be updated when setting a new position. Used only if\nnewPosition.overlayPosition\nis set, in which case at least one field must\nbe specified. The root `newPosition.overlayPosition` is implied and\nshould not be specified.\nA single `\"*\"` can be used as short-hand for listing every field.",
- "format": "google-fieldmask",
- "type": "string"
+ "updateChartSpec": {
+ "$ref": "UpdateChartSpecRequest",
+ "description": "Updates a chart's specifications."
},
- "objectId": {
- "description": "The ID of the object to moved.",
- "format": "int32",
- "type": "integer"
+ "updateProtectedRange": {
+ "$ref": "UpdateProtectedRangeRequest",
+ "description": "Updates a protected range."
},
- "newPosition": {
- "$ref": "EmbeddedObjectPosition",
- "description": "An explicit position to move the embedded object to.\nIf newPosition.sheetId is set,\na new sheet with that ID will be created.\nIf newPosition.newSheet is set to true,\na new sheet will be created with an ID that will be chosen for you."
- }
- },
- "type": "object"
- },
- "TextRotation": {
- "description": "The rotation applied to text in a cell.",
- "id": "TextRotation",
- "properties": {
- "angle": {
- "description": "The angle between the standard orientation and the desired orientation.\nMeasured in degrees. Valid values are between -90 and 90. Positive\nangles are angled upwards, negative are angled downwards.\n\nNote: For LTR text direction positive angles are in the counterclockwise\ndirection, whereas for RTL they are in the clockwise direction",
- "format": "int32",
- "type": "integer"
+ "addSheet": {
+ "$ref": "AddSheetRequest",
+ "description": "Adds a sheet."
},
- "vertical": {
- "description": "If true, text reads top to bottom, but the orientation of individual\ncharacters is unchanged.\nFor example:\n\n | V |\n | e |\n | r |\n | t |\n | i |\n | c |\n | a |\n | l |",
- "type": "boolean"
- }
- },
- "type": "object"
- },
- "PieChartSpec": {
- "description": "A <a href=\"/chart/interactive/docs/gallery/piechart\">pie chart</a>.",
- "id": "PieChartSpec",
- "properties": {
- "domain": {
- "$ref": "ChartData",
- "description": "The data that covers the domain of the pie chart."
+ "copyPaste": {
+ "$ref": "CopyPasteRequest",
+ "description": "Copies data from one area and pastes it to another."
},
- "threeDimensional": {
- "description": "True if the pie is three dimensional.",
- "type": "boolean"
+ "deleteFilterView": {
+ "$ref": "DeleteFilterViewRequest",
+ "description": "Deletes a filter view from a sheet."
},
- "series": {
- "$ref": "ChartData",
- "description": "The data that covers the one and only series of the pie chart."
+ "insertDimension": {
+ "$ref": "InsertDimensionRequest",
+ "description": "Inserts new rows or columns in a sheet."
},
- "legendPosition": {
- "description": "Where the legend of the pie chart should be drawn.",
- "enum": [
- "PIE_CHART_LEGEND_POSITION_UNSPECIFIED",
- "BOTTOM_LEGEND",
- "LEFT_LEGEND",
- "RIGHT_LEGEND",
- "TOP_LEGEND",
- "NO_LEGEND",
- "LABELED_LEGEND"
- ],
- "enumDescriptions": [
- "Default value, do not use.",
- "The legend is rendered on the bottom of the chart.",
- "The legend is rendered on the left of the chart.",
- "The legend is rendered on the right of the chart.",
- "The legend is rendered on the top of the chart.",
- "No legend is rendered.",
- "Each pie slice has a label attached to it."
- ],
- "type": "string"
+ "deleteRange": {
+ "$ref": "DeleteRangeRequest",
+ "description": "Deletes a range of cells from a sheet, shifting the remaining cells."
},
- "pieHole": {
- "description": "The size of the hole in the pie chart.",
- "format": "double",
- "type": "number"
- }
- },
- "type": "object"
- },
- "UpdateFilterViewRequest": {
- "description": "Updates properties of the filter view.",
- "id": "UpdateFilterViewRequest",
- "properties": {
- "filter": {
- "$ref": "FilterView",
- "description": "The new properties of the filter view."
+ "deleteBanding": {
+ "$ref": "DeleteBandingRequest",
+ "description": "Removes a banded range"
},
- "fields": {
- "description": "The fields that should be updated. At least one field must be specified.\nThe root `filter` is implied and should not be specified.\nA single `\"*\"` can be used as short-hand for listing every field.",
- "format": "google-fieldmask",
- "type": "string"
- }
- },
- "type": "object"
- },
- "ConditionalFormatRule": {
- "description": "A rule describing a conditional format.",
- "id": "ConditionalFormatRule",
- "properties": {
- "ranges": {
- "description": "The ranges that will be formatted if the condition is true.\nAll the ranges must be on the same grid.",
- "items": {
- "$ref": "GridRange"
- },
- "type": "array"
+ "addFilterView": {
+ "$ref": "AddFilterViewRequest",
+ "description": "Adds a filter view."
},
- "gradientRule": {
- "$ref": "GradientRule",
- "description": "The formatting will vary based on the gradients in the rule."
+ "updateBorders": {
+ "$ref": "UpdateBordersRequest",
+ "description": "Updates the borders in a range of cells."
},
- "booleanRule": {
- "$ref": "BooleanRule",
- "description": "The formatting is either \"on\" or \"off\" according to the rule."
- }
- },
- "type": "object"
- },
- "CopyPasteRequest": {
- "description": "Copies data from the source to the destination.",
- "id": "CopyPasteRequest",
- "properties": {
- "source": {
- "$ref": "GridRange",
- "description": "The source range to copy."
+ "setDataValidation": {
+ "$ref": "SetDataValidationRequest",
+ "description": "Sets data validation for one or more cells."
},
- "pasteType": {
- "description": "What kind of data to paste.",
- "enum": [
- "PASTE_NORMAL",
- "PASTE_VALUES",
- "PASTE_FORMAT",
- "PASTE_NO_BORDERS",
- "PASTE_FORMULA",
- "PASTE_DATA_VALIDATION",
- "PASTE_CONDITIONAL_FORMATTING"
- ],
- "enumDescriptions": [
- "Paste values, formulas, formats, and merges.",
- "Paste the values ONLY without formats, formulas, or merges.",
- "Paste the format and data validation only.",
- "Like PASTE_NORMAL but without borders.",
- "Paste the formulas only.",
- "Paste the data validation only.",
- "Paste the conditional formatting rules only."
- ],
- "type": "string"
+ "deleteConditionalFormatRule": {
+ "$ref": "DeleteConditionalFormatRuleRequest",
+ "description": "Deletes an existing conditional format rule."
},
- "destination": {
- "$ref": "GridRange",
- "description": "The location to paste to. If the range covers a span that's\na multiple of the source's height or width, then the\ndata will be repeated to fill in the destination range.\nIf the range is smaller than the source range, the entire\nsource data will still be copied (beyond the end of the destination range)."
+ "clearBasicFilter": {
+ "$ref": "ClearBasicFilterRequest",
+ "description": "Clears the basic filter on a sheet."
},
- "pasteOrientation": {
- "description": "How that data should be oriented when pasting.",
- "enum": [
- "NORMAL",
- "TRANSPOSE"
- ],
- "enumDescriptions": [
- "Paste normally.",
- "Paste transposed, where all rows become columns and vice versa."
- ],
- "type": "string"
+ "repeatCell": {
+ "$ref": "RepeatCellRequest",
+ "description": "Repeats a single cell across a range."
+ },
+ "appendDimension": {
+ "$ref": "AppendDimensionRequest",
+ "description": "Appends dimensions to the end of a sheet."
+ },
+ "updateConditionalFormatRule": {
+ "$ref": "UpdateConditionalFormatRuleRequest",
+ "description": "Updates an existing conditional format rule."
+ },
+ "insertRange": {
+ "$ref": "InsertRangeRequest",
+ "description": "Inserts new cells in a sheet, shifting the existing cells."
}
},
"type": "object"
@@ -3721,475 +3436,760 @@
},
"type": "object"
},
- "Request": {
- "description": "A single kind of update to apply to a spreadsheet.",
- "id": "Request",
+ "GridRange": {
+ "description": "A range on a sheet.\nAll indexes are zero-based.\nIndexes are half open, e.g the start index is inclusive\nand the end index is exclusive -- [start_index, end_index).\nMissing indexes indicate the range is unbounded on that side.\n\nFor example, if `\"Sheet1\"` is sheet ID 0, then:\n\n `Sheet1!A1:A1 == sheet_id: 0,\n start_row_index: 0, end_row_index: 1,\n start_column_index: 0, end_column_index: 1`\n\n `Sheet1!A3:B4 == sheet_id: 0,\n start_row_index: 2, end_row_index: 4,\n start_column_index: 0, end_column_index: 2`\n\n `Sheet1!A:B == sheet_id: 0,\n start_column_index: 0, end_column_index: 2`\n\n `Sheet1!A5:B == sheet_id: 0,\n start_row_index: 4,\n start_column_index: 0, end_column_index: 2`\n\n `Sheet1 == sheet_id:0`\n\nThe start index must always be less than or equal to the end index.\nIf the start index equals the end index, then the range is empty.\nEmpty ranges are typically not meaningful and are usually rendered in the\nUI as `#REF!`.",
+ "id": "GridRange",
"properties": {
- "moveDimension": {
- "$ref": "MoveDimensionRequest",
- "description": "Moves rows or columns to another location in a sheet."
- },
- "updateBanding": {
- "$ref": "UpdateBandingRequest",
- "description": "Updates a banded range"
- },
- "deleteNamedRange": {
- "$ref": "DeleteNamedRangeRequest",
- "description": "Deletes a named range."
- },
- "addProtectedRange": {
- "$ref": "AddProtectedRangeRequest",
- "description": "Adds a protected range."
- },
- "duplicateSheet": {
- "$ref": "DuplicateSheetRequest",
- "description": "Duplicates a sheet."
- },
- "unmergeCells": {
- "$ref": "UnmergeCellsRequest",
- "description": "Unmerges merged cells."
- },
- "deleteSheet": {
- "$ref": "DeleteSheetRequest",
- "description": "Deletes a sheet."
- },
- "updateEmbeddedObjectPosition": {
- "$ref": "UpdateEmbeddedObjectPositionRequest",
- "description": "Updates an embedded object's (e.g. chart, image) position."
- },
- "updateDimensionProperties": {
- "$ref": "UpdateDimensionPropertiesRequest",
- "description": "Updates dimensions' properties."
- },
- "pasteData": {
- "$ref": "PasteDataRequest",
- "description": "Pastes data (HTML or delimited) into a sheet."
- },
- "setBasicFilter": {
- "$ref": "SetBasicFilterRequest",
- "description": "Sets the basic filter on a sheet."
- },
- "addConditionalFormatRule": {
- "$ref": "AddConditionalFormatRuleRequest",
- "description": "Adds a new conditional format rule."
- },
- "updateCells": {
- "$ref": "UpdateCellsRequest",
- "description": "Updates many cells at once."
- },
- "addNamedRange": {
- "$ref": "AddNamedRangeRequest",
- "description": "Adds a named range."
- },
- "updateSpreadsheetProperties": {
- "$ref": "UpdateSpreadsheetPropertiesRequest",
- "description": "Updates the spreadsheet's properties."
+ "endRowIndex": {
+ "description": "The end row (exclusive) of the range, or not set if unbounded.",
+ "format": "int32",
+ "type": "integer"
},
- "deleteEmbeddedObject": {
- "$ref": "DeleteEmbeddedObjectRequest",
- "description": "Deletes an embedded object (e.g, chart, image) in a sheet."
+ "endColumnIndex": {
+ "description": "The end column (exclusive) of the range, or not set if unbounded.",
+ "format": "int32",
+ "type": "integer"
},
- "updateFilterView": {
- "$ref": "UpdateFilterViewRequest",
- "description": "Updates the properties of a filter view."
+ "startRowIndex": {
+ "description": "The start row (inclusive) of the range, or not set if unbounded.",
+ "format": "int32",
+ "type": "integer"
},
- "addBanding": {
- "$ref": "AddBandingRequest",
- "description": "Adds a new banded range"
+ "startColumnIndex": {
+ "description": "The start column (inclusive) of the range, or not set if unbounded.",
+ "format": "int32",
+ "type": "integer"
},
- "appendCells": {
- "$ref": "AppendCellsRequest",
- "description": "Appends cells after the last row with data in a sheet."
+ "sheetId": {
+ "description": "The sheet this range is on.",
+ "format": "int32",
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "BasicChartSpec": {
+ "description": "The specification for a basic chart. See BasicChartType for the list\nof charts this supports.",
+ "id": "BasicChartSpec",
+ "properties": {
+ "headerCount": {
+ "description": "The number of rows or columns in the data that are \"headers\".\nIf not set, Google Sheets will guess how many rows are headers based\non the data.\n\n(Note that BasicChartAxis.title may override the axis title\n inferred from the header values.)",
+ "format": "int32",
+ "type": "integer"
},
- "autoResizeDimensions": {
- "$ref": "AutoResizeDimensionsRequest",
- "description": "Automatically resizes one or more dimensions based on the contents\nof the cells in that dimension."
+ "axis": {
+ "description": "The axis on the chart.",
+ "items": {
+ "$ref": "BasicChartAxis"
+ },
+ "type": "array"
},
- "cutPaste": {
- "$ref": "CutPasteRequest",
- "description": "Cuts data from one area and pastes it to another."
+ "chartType": {
+ "description": "The type of the chart.",
+ "enum": [
+ "BASIC_CHART_TYPE_UNSPECIFIED",
+ "BAR",
+ "LINE",
+ "AREA",
+ "COLUMN",
+ "SCATTER",
+ "COMBO"
+ ],
+ "enumDescriptions": [
+ "Default value, do not use.",
+ "A <a href=\"/chart/interactive/docs/gallery/barchart\">bar chart</a>.",
+ "A <a href=\"/chart/interactive/docs/gallery/linechart\">line chart</a>.",
+ "An <a href=\"/chart/interactive/docs/gallery/areachart\">area chart</a>.",
+ "A <a href=\"/chart/interactive/docs/gallery/columnchart\">column chart</a>.",
+ "A <a href=\"/chart/interactive/docs/gallery/scatterchart\">scatter chart</a>.",
+ "A <a href=\"/chart/interactive/docs/gallery/combochart\">combo chart</a>."
+ ],
+ "type": "string"
},
- "mergeCells": {
- "$ref": "MergeCellsRequest",
- "description": "Merges cells together."
+ "series": {
+ "description": "The data this chart is visualizing.",
+ "items": {
+ "$ref": "BasicChartSeries"
+ },
+ "type": "array"
},
- "updateNamedRange": {
- "$ref": "UpdateNamedRangeRequest",
- "description": "Updates a named range."
+ "legendPosition": {
+ "description": "The position of the chart legend.",
+ "enum": [
+ "BASIC_CHART_LEGEND_POSITION_UNSPECIFIED",
+ "BOTTOM_LEGEND",
+ "LEFT_LEGEND",
+ "RIGHT_LEGEND",
+ "TOP_LEGEND",
+ "NO_LEGEND"
+ ],
+ "enumDescriptions": [
+ "Default value, do not use.",
+ "The legend is rendered on the bottom of the chart.",
+ "The legend is rendered on the left of the chart.",
+ "The legend is rendered on the right of the chart.",
+ "The legend is rendered on the top of the chart.",
+ "No legend is rendered."
+ ],
+ "type": "string"
},
- "updateSheetProperties": {
- "$ref": "UpdateSheetPropertiesRequest",
- "description": "Updates a sheet's properties."
+ "domains": {
+ "description": "The domain of data this is charting.\nOnly a single domain is supported.",
+ "items": {
+ "$ref": "BasicChartDomain"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "SetDataValidationRequest": {
+ "description": "Sets a data validation rule to every cell in the range.\nTo clear validation in a range, call this with no rule specified.",
+ "id": "SetDataValidationRequest",
+ "properties": {
+ "rule": {
+ "$ref": "DataValidationRule",
+ "description": "The data validation rule to set on each cell in the range,\nor empty to clear the data validation in the range."
},
- "autoFill": {
- "$ref": "AutoFillRequest",
- "description": "Automatically fills in more data based on existing data."
+ "range": {
+ "$ref": "GridRange",
+ "description": "The range the data validation rule should apply to."
+ }
+ },
+ "type": "object"
+ },
+ "CellData": {
+ "description": "Data about a specific cell.",
+ "id": "CellData",
+ "properties": {
+ "pivotTable": {
+ "$ref": "PivotTable",
+ "description": "A pivot table anchored at this cell. The size of pivot table itself\nis computed dynamically based on its data, grouping, filters, values,\netc. Only the top-left cell of the pivot table contains the pivot table\ndefinition. The other cells will contain the calculated values of the\nresults of the pivot in their effective_value fields."
},
- "deleteDimension": {
- "$ref": "DeleteDimensionRequest",
- "description": "Deletes rows or columns in a sheet."
+ "userEnteredFormat": {
+ "$ref": "CellFormat",
+ "description": "The format the user entered for the cell.\n\nWhen writing, the new format will be merged with the existing format."
},
- "sortRange": {
- "$ref": "SortRangeRequest",
- "description": "Sorts data in a range."
+ "note": {
+ "description": "Any note on the cell.",
+ "type": "string"
},
- "deleteProtectedRange": {
- "$ref": "DeleteProtectedRangeRequest",
- "description": "Deletes a protected range."
+ "effectiveFormat": {
+ "$ref": "CellFormat",
+ "description": "The effective format being used by the cell.\nThis includes the results of applying any conditional formatting and,\nif the cell contains a formula, the computed number format.\nIf the effective format is the default format, effective format will\nnot be written.\nThis field is read-only."
},
- "duplicateFilterView": {
- "$ref": "DuplicateFilterViewRequest",
- "description": "Duplicates a filter view."
+ "dataValidation": {
+ "$ref": "DataValidationRule",
+ "description": "A data validation rule on the cell, if any.\n\nWhen writing, the new data validation rule will overwrite any prior rule."
},
- "addChart": {
- "$ref": "AddChartRequest",
- "description": "Adds a chart."
+ "userEnteredValue": {
+ "$ref": "ExtendedValue",
+ "description": "The value the user entered in the cell. e.g, `1234`, `'Hello'`, or `=NOW()`\nNote: Dates, Times and DateTimes are represented as doubles in\nserial number format."
},
- "findReplace": {
- "$ref": "FindReplaceRequest",
- "description": "Finds and replaces occurrences of some text with other text."
+ "effectiveValue": {
+ "$ref": "ExtendedValue",
+ "description": "The effective value of the cell. For cells with formulas, this will be\nthe calculated value. For cells with literals, this will be\nthe same as the user_entered_value.\nThis field is read-only."
},
- "textToColumns": {
- "$ref": "TextToColumnsRequest",
- "description": "Converts a column of text into many columns of text."
+ "formattedValue": {
+ "description": "The formatted value of the cell.\nThis is the value as it's shown to the user.\nThis field is read-only.",
+ "type": "string"
},
- "updateChartSpec": {
- "$ref": "UpdateChartSpecRequest",
- "description": "Updates a chart's specifications."
+ "textFormatRuns": {
+ "description": "Runs of rich text applied to subsections of the cell. Runs are only valid\non user entered strings, not formulas, bools, or numbers.\nRuns start at specific indexes in the text and continue until the next\nrun. Properties of a run will continue unless explicitly changed\nin a subsequent run (and properties of the first run will continue\nthe properties of the cell unless explicitly changed).\n\nWhen writing, the new runs will overwrite any prior runs. When writing a\nnew user_entered_value, previous runs will be erased.",
+ "items": {
+ "$ref": "TextFormatRun"
+ },
+ "type": "array"
},
- "addSheet": {
- "$ref": "AddSheetRequest",
- "description": "Adds a sheet."
+ "hyperlink": {
+ "description": "A hyperlink this cell points to, if any.\nThis field is read-only. (To set it, use a `=HYPERLINK` formula.)",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "BatchUpdateSpreadsheetRequest": {
+ "description": "The request for updating any aspect of a spreadsheet.",
+ "id": "BatchUpdateSpreadsheetRequest",
+ "properties": {
+ "requests": {
+ "description": "A list of updates to apply to the spreadsheet.\nRequests will be applied in the order they are specified.\nIf any request is not valid, no requests will be applied.",
+ "items": {
+ "$ref": "Request"
+ },
+ "type": "array"
},
- "updateProtectedRange": {
- "$ref": "UpdateProtectedRangeRequest",
- "description": "Updates a protected range."
+ "includeSpreadsheetInResponse": {
+ "description": "Determines if the update response should include the spreadsheet\nresource.",
+ "type": "boolean"
},
- "deleteFilterView": {
- "$ref": "DeleteFilterViewRequest",
- "description": "Deletes a filter view from a sheet."
+ "responseRanges": {
+ "description": "Limits the ranges included in the response spreadsheet.\nMeaningful only if include_spreadsheet_response is 'true'.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
},
- "copyPaste": {
- "$ref": "CopyPasteRequest",
- "description": "Copies data from one area and pastes it to another."
+ "responseIncludeGridData": {
+ "description": "True if grid data should be returned. Meaningful only if\nif include_spreadsheet_response is 'true'.\nThis parameter is ignored if a field mask was set in the request.",
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ },
+ "BasicChartAxis": {
+ "description": "An axis of the chart.\nA chart may not have more than one axis per\naxis position.",
+ "id": "BasicChartAxis",
+ "properties": {
+ "position": {
+ "description": "The position of this axis.",
+ "enum": [
+ "BASIC_CHART_AXIS_POSITION_UNSPECIFIED",
+ "BOTTOM_AXIS",
+ "LEFT_AXIS",
+ "RIGHT_AXIS"
+ ],
+ "enumDescriptions": [
+ "Default value, do not use.",
+ "The axis rendered at the bottom of a chart.\nFor most charts, this is the standard major axis.\nFor bar charts, this is a minor axis.",
+ "The axis rendered at the left of a chart.\nFor most charts, this is a minor axis.\nFor bar charts, this is the standard major axis.",
+ "The axis rendered at the right of a chart.\nFor most charts, this is a minor axis.\nFor bar charts, this is an unusual major axis."
+ ],
+ "type": "string"
},
- "insertDimension": {
- "$ref": "InsertDimensionRequest",
- "description": "Inserts new rows or columns in a sheet."
+ "title": {
+ "description": "The title of this axis. If set, this overrides any title inferred\nfrom headers of the data.",
+ "type": "string"
},
- "deleteRange": {
- "$ref": "DeleteRangeRequest",
- "description": "Deletes a range of cells from a sheet, shifting the remaining cells."
+ "format": {
+ "$ref": "TextFormat",
+ "description": "The format of the title.\nOnly valid if the axis is not associated with the domain."
+ }
+ },
+ "type": "object"
+ },
+ "Padding": {
+ "description": "The amount of padding around the cell, in pixels.\nWhen updating padding, every field must be specified.",
+ "id": "Padding",
+ "properties": {
+ "top": {
+ "description": "The top padding of the cell.",
+ "format": "int32",
+ "type": "integer"
},
- "deleteBanding": {
- "$ref": "DeleteBandingRequest",
- "description": "Removes a banded range"
+ "left": {
+ "description": "The left padding of the cell.",
+ "format": "int32",
+ "type": "integer"
},
- "addFilterView": {
- "$ref": "AddFilterViewRequest",
- "description": "Adds a filter view."
+ "right": {
+ "description": "The right padding of the cell.",
+ "format": "int32",
+ "type": "integer"
},
- "updateBorders": {
- "$ref": "UpdateBordersRequest",
- "description": "Updates the borders in a range of cells."
+ "bottom": {
+ "description": "The bottom padding of the cell.",
+ "format": "int32",
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "DeleteDimensionRequest": {
+ "description": "Deletes the dimensions from the sheet.",
+ "id": "DeleteDimensionRequest",
+ "properties": {
+ "range": {
+ "$ref": "DimensionRange",
+ "description": "The dimensions to delete from the sheet."
+ }
+ },
+ "type": "object"
+ },
+ "UpdateChartSpecRequest": {
+ "description": "Updates a chart's specifications.\n(This does not move or resize a chart. To move or resize a chart, use\n UpdateEmbeddedObjectPositionRequest.)",
+ "id": "UpdateChartSpecRequest",
+ "properties": {
+ "chartId": {
+ "description": "The ID of the chart to update.",
+ "format": "int32",
+ "type": "integer"
},
- "setDataValidation": {
- "$ref": "SetDataValidationRequest",
- "description": "Sets data validation for one or more cells."
+ "spec": {
+ "$ref": "ChartSpec",
+ "description": "The specification to apply to the chart."
+ }
+ },
+ "type": "object"
+ },
+ "DeleteFilterViewRequest": {
+ "description": "Deletes a particular filter view.",
+ "id": "DeleteFilterViewRequest",
+ "properties": {
+ "filterId": {
+ "description": "The ID of the filter to delete.",
+ "format": "int32",
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "BatchUpdateValuesResponse": {
+ "description": "The response when updating a range of values in a spreadsheet.",
+ "id": "BatchUpdateValuesResponse",
+ "properties": {
+ "totalUpdatedRows": {
+ "description": "The total number of rows where at least one cell in the row was updated.",
+ "format": "int32",
+ "type": "integer"
},
- "deleteConditionalFormatRule": {
- "$ref": "DeleteConditionalFormatRuleRequest",
- "description": "Deletes an existing conditional format rule."
+ "responses": {
+ "description": "One UpdateValuesResponse per requested range, in the same order as\nthe requests appeared.",
+ "items": {
+ "$ref": "UpdateValuesResponse"
+ },
+ "type": "array"
},
- "repeatCell": {
- "$ref": "RepeatCellRequest",
- "description": "Repeats a single cell across a range."
+ "totalUpdatedSheets": {
+ "description": "The total number of sheets where at least one cell in the sheet was\nupdated.",
+ "format": "int32",
+ "type": "integer"
},
- "clearBasicFilter": {
- "$ref": "ClearBasicFilterRequest",
- "description": "Clears the basic filter on a sheet."
+ "totalUpdatedCells": {
+ "description": "The total number of cells updated.",
+ "format": "int32",
+ "type": "integer"
},
- "appendDimension": {
- "$ref": "AppendDimensionRequest",
- "description": "Appends dimensions to the end of a sheet."
+ "totalUpdatedColumns": {
+ "description": "The total number of columns where at least one cell in the column was\nupdated.",
+ "format": "int32",
+ "type": "integer"
},
- "updateConditionalFormatRule": {
- "$ref": "UpdateConditionalFormatRuleRequest",
- "description": "Updates an existing conditional format rule."
+ "spreadsheetId": {
+ "description": "The spreadsheet the updates were applied to.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "SortRangeRequest": {
+ "description": "Sorts data in rows based on a sort order per column.",
+ "id": "SortRangeRequest",
+ "properties": {
+ "range": {
+ "$ref": "GridRange",
+ "description": "The range to sort."
},
- "insertRange": {
- "$ref": "InsertRangeRequest",
- "description": "Inserts new cells in a sheet, shifting the existing cells."
+ "sortSpecs": {
+ "description": "The sort order per column. Later specifications are used when values\nare equal in the earlier specifications.",
+ "items": {
+ "$ref": "SortSpec"
+ },
+ "type": "array"
}
},
"type": "object"
},
- "GridRange": {
- "description": "A range on a sheet.\nAll indexes are zero-based.\nIndexes are half open, e.g the start index is inclusive\nand the end index is exclusive -- [start_index, end_index).\nMissing indexes indicate the range is unbounded on that side.\n\nFor example, if `\"Sheet1\"` is sheet ID 0, then:\n\n `Sheet1!A1:A1 == sheet_id: 0,\n start_row_index: 0, end_row_index: 1,\n start_column_index: 0, end_column_index: 1`\n\n `Sheet1!A3:B4 == sheet_id: 0,\n start_row_index: 2, end_row_index: 4,\n start_column_index: 0, end_column_index: 2`\n\n `Sheet1!A:B == sheet_id: 0,\n start_column_index: 0, end_column_index: 2`\n\n `Sheet1!A5:B == sheet_id: 0,\n start_row_index: 4,\n start_column_index: 0, end_column_index: 2`\n\n `Sheet1 == sheet_id:0`\n\nThe start index must always be less than or equal to the end index.\nIf the start index equals the end index, then the range is empty.\nEmpty ranges are typically not meaningful and are usually rendered in the\nUI as `#REF!`.",
- "id": "GridRange",
+ "MergeCellsRequest": {
+ "description": "Merges all cells in the range.",
+ "id": "MergeCellsRequest",
"properties": {
- "endRowIndex": {
- "description": "The end row (exclusive) of the range, or not set if unbounded.",
- "format": "int32",
- "type": "integer"
- },
- "endColumnIndex": {
- "description": "The end column (exclusive) of the range, or not set if unbounded.",
- "format": "int32",
- "type": "integer"
+ "mergeType": {
+ "description": "How the cells should be merged.",
+ "enum": [
+ "MERGE_ALL",
+ "MERGE_COLUMNS",
+ "MERGE_ROWS"
+ ],
+ "enumDescriptions": [
+ "Create a single merge from the range",
+ "Create a merge for each column in the range",
+ "Create a merge for each row in the range"
+ ],
+ "type": "string"
},
- "startRowIndex": {
- "description": "The start row (inclusive) of the range, or not set if unbounded.",
- "format": "int32",
- "type": "integer"
+ "range": {
+ "$ref": "GridRange",
+ "description": "The range of cells to merge."
+ }
+ },
+ "type": "object"
+ },
+ "AddProtectedRangeRequest": {
+ "description": "Adds a new protected range.",
+ "id": "AddProtectedRangeRequest",
+ "properties": {
+ "protectedRange": {
+ "$ref": "ProtectedRange",
+ "description": "The protected range to be added. The\nprotectedRangeId field is optional; if\none is not set, an id will be randomly generated. (It is an error to\nspecify the ID of a range that already exists.)"
+ }
+ },
+ "type": "object"
+ },
+ "BatchClearValuesRequest": {
+ "description": "The request for clearing more than one range of values in a spreadsheet.",
+ "id": "BatchClearValuesRequest",
+ "properties": {
+ "ranges": {
+ "description": "The ranges to clear, in A1 notation.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "DuplicateFilterViewResponse": {
+ "description": "The result of a filter view being duplicated.",
+ "id": "DuplicateFilterViewResponse",
+ "properties": {
+ "filter": {
+ "$ref": "FilterView",
+ "description": "The newly created filter."
+ }
+ },
+ "type": "object"
+ },
+ "DuplicateSheetResponse": {
+ "description": "The result of duplicating a sheet.",
+ "id": "DuplicateSheetResponse",
+ "properties": {
+ "properties": {
+ "$ref": "SheetProperties",
+ "description": "The properties of the duplicate sheet."
+ }
+ },
+ "type": "object"
+ },
+ "TextToColumnsRequest": {
+ "description": "Splits a column of text into multiple columns,\nbased on a delimiter in each cell.",
+ "id": "TextToColumnsRequest",
+ "properties": {
+ "delimiter": {
+ "description": "The delimiter to use. Used only if delimiterType is\nCUSTOM.",
+ "type": "string"
},
- "startColumnIndex": {
- "description": "The start column (inclusive) of the range, or not set if unbounded.",
- "format": "int32",
- "type": "integer"
+ "source": {
+ "$ref": "GridRange",
+ "description": "The source data range. This must span exactly one column."
},
+ "delimiterType": {
+ "description": "The delimiter type to use.",
+ "enum": [
+ "DELIMITER_TYPE_UNSPECIFIED",
+ "COMMA",
+ "SEMICOLON",
+ "PERIOD",
+ "SPACE",
+ "CUSTOM"
+ ],
+ "enumDescriptions": [
+ "Default value. This value must not be used.",
+ "\",\"",
+ "\";\"",
+ "\".\"",
+ "\" \"",
+ "A custom value as defined in delimiter."
+ ],
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "ClearBasicFilterRequest": {
+ "description": "Clears the basic filter, if any exists on the sheet.",
+ "id": "ClearBasicFilterRequest",
+ "properties": {
"sheetId": {
- "description": "The sheet this range is on.",
+ "description": "The sheet ID on which the basic filter should be cleared.",
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
- "BasicChartSpec": {
- "description": "The specification for a basic chart. See BasicChartType for the list\nof charts this supports.",
- "id": "BasicChartSpec",
+ "BatchUpdateSpreadsheetResponse": {
+ "description": "The reply for batch updating a spreadsheet.",
+ "id": "BatchUpdateSpreadsheetResponse",
"properties": {
- "legendPosition": {
- "description": "The position of the chart legend.",
- "enum": [
- "BASIC_CHART_LEGEND_POSITION_UNSPECIFIED",
- "BOTTOM_LEGEND",
- "LEFT_LEGEND",
- "RIGHT_LEGEND",
- "TOP_LEGEND",
- "NO_LEGEND"
- ],
- "enumDescriptions": [
- "Default value, do not use.",
- "The legend is rendered on the bottom of the chart.",
- "The legend is rendered on the left of the chart.",
- "The legend is rendered on the right of the chart.",
- "The legend is rendered on the top of the chart.",
- "No legend is rendered."
- ],
+ "spreadsheetId": {
+ "description": "The spreadsheet the updates were applied to.",
"type": "string"
},
- "domains": {
- "description": "The domain of data this is charting.\nOnly a single domain is currently supported.",
+ "replies": {
+ "description": "The reply of the updates. This maps 1:1 with the updates, although\nreplies to some requests may be empty.",
"items": {
- "$ref": "BasicChartDomain"
+ "$ref": "Response"
},
"type": "array"
},
- "headerCount": {
- "description": "The number of rows or columns in the data that are \"headers\".\nIf not set, Google Sheets will guess how many rows are headers based\non the data.\n\n(Note that BasicChartAxis.title may override the axis title\n inferred from the header values.)",
+ "updatedSpreadsheet": {
+ "$ref": "Spreadsheet",
+ "description": "The spreadsheet after updates were applied. This is only set if\n[BatchUpdateSpreadsheetRequest.include_spreadsheet_in_response] is `true`."
+ }
+ },
+ "type": "object"
+ },
+ "DeleteBandingRequest": {
+ "description": "Removes the banded range with the given ID from the spreadsheet.",
+ "id": "DeleteBandingRequest",
+ "properties": {
+ "bandedRangeId": {
+ "description": "The ID of the banded range to delete.",
"format": "int32",
"type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "AppendValuesResponse": {
+ "description": "The response when updating a range of values in a spreadsheet.",
+ "id": "AppendValuesResponse",
+ "properties": {
+ "updates": {
+ "$ref": "UpdateValuesResponse",
+ "description": "Information about the updates that were applied."
},
- "axis": {
- "description": "The axis on the chart.",
- "items": {
- "$ref": "BasicChartAxis"
- },
- "type": "array"
+ "tableRange": {
+ "description": "The range (in A1 notation) of the table that values are being appended to\n(before the values were appended).\nEmpty if no table was found.",
+ "type": "string"
},
- "chartType": {
- "description": "The type of the chart.",
- "enum": [
- "BASIC_CHART_TYPE_UNSPECIFIED",
- "BAR",
- "LINE",
- "AREA",
- "COLUMN",
- "SCATTER",
- "COMBO"
- ],
- "enumDescriptions": [
- "Default value, do not use.",
- "A <a href=\"/chart/interactive/docs/gallery/barchart\">bar chart</a>.",
- "A <a href=\"/chart/interactive/docs/gallery/linechart\">line chart</a>.",
- "An <a href=\"/chart/interactive/docs/gallery/areachart\">area chart</a>.",
- "A <a href=\"/chart/interactive/docs/gallery/columnchart\">column chart</a>.",
- "A <a href=\"/chart/interactive/docs/gallery/scatterchart\">scatter chart</a>.",
- "A <a href=\"/chart/interactive/docs/gallery/combochart\">combo chart</a>."
- ],
+ "spreadsheetId": {
+ "description": "The spreadsheet the updates were applied to.",
"type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "MoveDimensionRequest": {
+ "description": "Moves one or more rows or columns.",
+ "id": "MoveDimensionRequest",
+ "properties": {
+ "destinationIndex": {
+ "description": "The zero-based start index of where to move the source data to,\nbased on the coordinates *before* the source data is removed\nfrom the grid. Existing data will be shifted down or right\n(depending on the dimension) to make room for the moved dimensions.\nThe source dimensions are removed from the grid, so the\nthe data may end up in a different index than specified.\n\nFor example, given `A1..A5` of `0, 1, 2, 3, 4` and wanting to move\n`\"1\"` and `\"2\"` to between `\"3\"` and `\"4\"`, the source would be\n`ROWS [1..3)`,and the destination index would be `\"4\"`\n(the zero-based index of row 5).\nThe end result would be `A1..A5` of `0, 3, 1, 2, 4`.",
+ "format": "int32",
+ "type": "integer"
},
- "series": {
- "description": "The data this chart is visualizing.",
+ "source": {
+ "$ref": "DimensionRange",
+ "description": "The source dimensions to move."
+ }
+ },
+ "type": "object"
+ },
+ "PivotFilterCriteria": {
+ "description": "Criteria for showing/hiding rows in a pivot table.",
+ "id": "PivotFilterCriteria",
+ "properties": {
+ "visibleValues": {
+ "description": "Values that should be included. Values not listed here are excluded.",
"items": {
- "$ref": "BasicChartSeries"
+ "type": "string"
},
"type": "array"
}
},
"type": "object"
},
- "SetDataValidationRequest": {
- "description": "Sets a data validation rule to every cell in the range.\nTo clear validation in a range, call this with no rule specified.",
- "id": "SetDataValidationRequest",
+ "AddFilterViewRequest": {
+ "description": "Adds a filter view.",
+ "id": "AddFilterViewRequest",
+ "properties": {
+ "filter": {
+ "$ref": "FilterView",
+ "description": "The filter to add. The filterViewId\nfield is optional; if one is not set, an id will be randomly generated. (It\nis an error to specify the ID of a filter that already exists.)"
+ }
+ },
+ "type": "object"
+ },
+ "AddConditionalFormatRuleRequest": {
+ "description": "Adds a new conditional format rule at the given index.\nAll subsequent rules' indexes are incremented.",
+ "id": "AddConditionalFormatRuleRequest",
"properties": {
"rule": {
- "$ref": "DataValidationRule",
- "description": "The data validation rule to set on each cell in the range,\nor empty to clear the data validation in the range."
+ "$ref": "ConditionalFormatRule",
+ "description": "The rule to add."
},
- "range": {
- "$ref": "GridRange",
- "description": "The range the data validation rule should apply to."
+ "index": {
+ "description": "The zero-based index where the rule should be inserted.",
+ "format": "int32",
+ "type": "integer"
}
},
"type": "object"
},
- "CellData": {
- "description": "Data about a specific cell.",
- "id": "CellData",
+ "ChartSpec": {
+ "description": "The specifications of a chart.",
+ "id": "ChartSpec",
"properties": {
- "pivotTable": {
- "$ref": "PivotTable",
- "description": "A pivot table anchored at this cell. The size of pivot table itself\nis computed dynamically based on its data, grouping, filters, values,\netc. Only the top-left cell of the pivot table contains the pivot table\ndefinition. The other cells will contain the calculated values of the\nresults of the pivot in their effective_value fields."
- },
- "userEnteredFormat": {
- "$ref": "CellFormat",
- "description": "The format the user entered for the cell.\n\nWhen writing, the new format will be merged with the existing format."
+ "basicChart": {
+ "$ref": "BasicChartSpec",
+ "description": "A basic chart specification, can be one of many kinds of charts.\nSee BasicChartType for the list of all\ncharts this supports."
},
- "note": {
- "description": "Any note on the cell.",
+ "hiddenDimensionStrategy": {
+ "description": "Determines how the charts will use hidden rows or columns.",
+ "enum": [
+ "CHART_HIDDEN_DIMENSION_STRATEGY_UNSPECIFIED",
+ "SKIP_HIDDEN_ROWS_AND_COLUMNS",
+ "SKIP_HIDDEN_ROWS",
+ "SKIP_HIDDEN_COLUMNS",
+ "SHOW_ALL"
+ ],
+ "enumDescriptions": [
+ "Default value, do not use.",
+ "Charts will skip hidden rows and columns.",
+ "Charts will skip hidden rows only.",
+ "Charts will skip hidden columns only.",
+ "Charts will not skip any hidden rows or columns."
+ ],
"type": "string"
},
- "effectiveFormat": {
- "$ref": "CellFormat",
- "description": "The effective format being used by the cell.\nThis includes the results of applying any conditional formatting and,\nif the cell contains a formula, the computed number format.\nIf the effective format is the default format, effective format will\nnot be written.\nThis field is read-only."
- },
- "userEnteredValue": {
- "$ref": "ExtendedValue",
- "description": "The value the user entered in the cell. e.g, `1234`, `'Hello'`, or `=NOW()`\nNote: Dates, Times and DateTimes are represented as doubles in\nserial number format."
- },
- "dataValidation": {
- "$ref": "DataValidationRule",
- "description": "A data validation rule on the cell, if any.\n\nWhen writing, the new data validation rule will overwrite any prior rule."
- },
- "effectiveValue": {
- "$ref": "ExtendedValue",
- "description": "The effective value of the cell. For cells with formulas, this will be\nthe calculated value. For cells with literals, this will be\nthe same as the user_entered_value.\nThis field is read-only."
- },
- "formattedValue": {
- "description": "The formatted value of the cell.\nThis is the value as it's shown to the user.\nThis field is read-only.",
+ "title": {
+ "description": "The title of the chart.",
"type": "string"
},
- "textFormatRuns": {
- "description": "Runs of rich text applied to subsections of the cell. Runs are only valid\non user entered strings, not formulas, bools, or numbers.\nRuns start at specific indexes in the text and continue until the next\nrun. Properties of a run will continue unless explicitly changed\nin a subsequent run (and properties of the first run will continue\nthe properties of the cell unless explicitly changed).\n\nWhen writing, the new runs will overwrite any prior runs. When writing a\nnew user_entered_value, previous runs will be erased.",
- "items": {
- "$ref": "TextFormatRun"
- },
- "type": "array"
- },
- "hyperlink": {
- "description": "A hyperlink this cell points to, if any.\nThis field is read-only. (To set it, use a `=HYPERLINK` formula.)",
- "type": "string"
+ "pieChart": {
+ "$ref": "PieChartSpec",
+ "description": "A pie chart specification."
}
},
"type": "object"
},
- "BatchUpdateSpreadsheetRequest": {
- "description": "The request for updating any aspect of a spreadsheet.",
- "id": "BatchUpdateSpreadsheetRequest",
+ "NumberFormat": {
+ "description": "The number format of a cell.",
+ "id": "NumberFormat",
"properties": {
- "includeSpreadsheetInResponse": {
- "description": "Determines if the update response should include the spreadsheet\nresource.",
- "type": "boolean"
- },
- "responseRanges": {
- "description": "Limits the ranges included in the response spreadsheet.\nMeaningful only if include_spreadsheet_response is 'true'.",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "responseIncludeGridData": {
- "description": "True if grid data should be returned. Meaningful only if\nif include_spreadsheet_response is 'true'.\nThis parameter is ignored if a field mask was set in the request.",
- "type": "boolean"
+ "type": {
+ "description": "The type of the number format.\nWhen writing, this field must be set.",
+ "enum": [
+ "NUMBER_FORMAT_TYPE_UNSPECIFIED",
+ "TEXT",
+ "NUMBER",
+ "PERCENT",
+ "CURRENCY",
+ "DATE",
+ "TIME",
+ "DATE_TIME",
+ "SCIENTIFIC"
+ ],
+ "enumDescriptions": [
+ "The number format is not specified\nand is based on the contents of the cell.\nDo not explicitly use this.",
+ "Text formatting, e.g `1000.12`",
+ "Number formatting, e.g, `1,000.12`",
+ "Percent formatting, e.g `10.12%`",
+ "Currency formatting, e.g `$1,000.12`",
+ "Date formatting, e.g `9/26/2008`",
+ "Time formatting, e.g `3:59:00 PM`",
+ "Date+Time formatting, e.g `9/26/08 15:59:00`",
+ "Scientific number formatting, e.g `1.01E+03`"
+ ],
+ "type": "string"
},
- "requests": {
- "description": "A list of updates to apply to the spreadsheet.",
- "items": {
- "$ref": "Request"
- },
- "type": "array"
+ "pattern": {
+ "description": "Pattern string used for formatting. If not set, a default pattern based on\nthe user's locale will be used if necessary for the given type.\nSee the [Date and Number Formats guide](/sheets/api/guides/formats) for more\ninformation about the supported patterns.",
+ "type": "string"
}
},
"type": "object"
},
- "Padding": {
- "description": "The amount of padding around the cell, in pixels.\nWhen updating padding, every field must be specified.",
- "id": "Padding",
+ "SheetProperties": {
+ "description": "Properties of a sheet.",
+ "id": "SheetProperties",
"properties": {
- "left": {
- "description": "The left padding of the cell.",
- "format": "int32",
- "type": "integer"
+ "title": {
+ "description": "The name of the sheet.",
+ "type": "string"
},
- "right": {
- "description": "The right padding of the cell.",
- "format": "int32",
- "type": "integer"
+ "tabColor": {
+ "$ref": "Color",
+ "description": "The color of the tab in the UI."
},
- "bottom": {
- "description": "The bottom padding of the cell.",
+ "index": {
+ "description": "The index of the sheet within the spreadsheet.\nWhen adding or updating sheet properties, if this field\nis excluded then the sheet will be added or moved to the end\nof the sheet list. When updating sheet indices or inserting\nsheets, movement is considered in \"before the move\" indexes.\nFor example, if there were 3 sheets (S1, S2, S3) in order to\nmove S1 ahead of S2 the index would have to be set to 2. A sheet\nindex update request will be ignored if the requested index is\nidentical to the sheets current index or if the requested new\nindex is equal to the current sheet index + 1.",
"format": "int32",
"type": "integer"
},
- "top": {
- "description": "The top padding of the cell.",
+ "sheetId": {
+ "description": "The ID of the sheet. Must be non-negative.\nThis field cannot be changed once set.",
"format": "int32",
"type": "integer"
- }
- },
- "type": "object"
- },
- "BasicChartAxis": {
- "description": "An axis of the chart.\nA chart may not have more than one axis per\naxis position.",
- "id": "BasicChartAxis",
- "properties": {
- "position": {
- "description": "The position of this axis.",
+ },
+ "rightToLeft": {
+ "description": "True if the sheet is an RTL sheet instead of an LTR sheet.",
+ "type": "boolean"
+ },
+ "hidden": {
+ "description": "True if the sheet is hidden in the UI, false if it's visible.",
+ "type": "boolean"
+ },
+ "gridProperties": {
+ "$ref": "GridProperties",
+ "description": "Additional properties of the sheet if this sheet is a grid.\n(If the sheet is an object sheet, containing a chart or image, then\nthis field will be absent.)\nWhen writing it is an error to set any grid properties on non-grid sheets."
+ },
+ "sheetType": {
+ "description": "The type of sheet. Defaults to GRID.\nThis field cannot be changed once set.",
"enum": [
- "BASIC_CHART_AXIS_POSITION_UNSPECIFIED",
- "BOTTOM_AXIS",
- "LEFT_AXIS",
- "RIGHT_AXIS"
+ "SHEET_TYPE_UNSPECIFIED",
+ "GRID",
+ "OBJECT"
],
"enumDescriptions": [
"Default value, do not use.",
- "The axis rendered at the bottom of a chart.\nFor most charts, this is the standard major axis.\nFor bar charts, this is a minor axis.",
- "The axis rendered at the left of a chart.\nFor most charts, this is a minor axis.\nFor bar charts, this is the standard major axis.",
- "The axis rendered at the right of a chart.\nFor most charts, this is a minor axis.\nFor bar charts, this is an unusual major axis."
+ "The sheet is a grid.",
+ "The sheet has no grid and instead has an object like a chart or image."
],
"type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "UpdateDimensionPropertiesRequest": {
+ "description": "Updates properties of dimensions within the specified range.",
+ "id": "UpdateDimensionPropertiesRequest",
+ "properties": {
+ "range": {
+ "$ref": "DimensionRange",
+ "description": "The rows or columns to update."
},
- "title": {
- "description": "The title of this axis. If set, this overrides any title inferred\nfrom headers of the data.",
+ "fields": {
+ "description": "The fields that should be updated. At least one field must be specified.\nThe root `properties` is implied and should not be specified.\nA single `\"*\"` can be used as short-hand for listing every field.",
+ "format": "google-fieldmask",
"type": "string"
},
- "format": {
- "$ref": "TextFormat",
- "description": "The format of the title.\nOnly valid if the axis is not associated with the domain."
+ "properties": {
+ "$ref": "DimensionProperties",
+ "description": "Properties to update."
}
},
"type": "object"
},
- "DeleteDimensionRequest": {
- "description": "Deletes the dimensions from the sheet.",
- "id": "DeleteDimensionRequest",
+ "SourceAndDestination": {
+ "description": "A combination of a source range and how to extend that source.",
+ "id": "SourceAndDestination",
"properties": {
- "range": {
- "$ref": "DimensionRange",
- "description": "The dimensions to delete from the sheet."
+ "fillLength": {
+ "description": "The number of rows or columns that data should be filled into.\nPositive numbers expand beyond the last row or last column\nof the source. Negative numbers expand before the first row\nor first column of the source.",
+ "format": "int32",
+ "type": "integer"
+ },
+ "source": {
+ "$ref": "GridRange",
+ "description": "The location of the data to use as the source of the autofill."
+ },
+ "dimension": {
+ "description": "The dimension that data should be filled into.",
+ "enum": [
+ "DIMENSION_UNSPECIFIED",
+ "ROWS",
+ "COLUMNS"
+ ],
+ "enumDescriptions": [
+ "The default value, do not use.",
+ "Operates on the rows of a sheet.",
+ "Operates on the columns of a sheet."
+ ],
+ "type": "string"
}
},
"type": "object"
« no previous file with comments | « discovery/googleapis/serviceuser__v1.json ('k') | discovery/googleapis/siteVerification__v1.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698