google_api_sheets v0.0.1 API Reference
Modules
API calls for all endpoints tagged Spreadsheets
Handle Tesla connections for GoogleApi.Sheets.V4
Helper functions for deserializing responses into models
Adds a new banded range to the spreadsheet
The result of adding a banded range
Adds a chart to a sheet in the spreadsheet
The result of adding a chart to a spreadsheet
Adds a new conditional format rule at the given index. All subsequent rules' indexes are incremented
Adds a filter view
The result of adding a filter view
Adds a named range to the spreadsheet
The result of adding a named range
Adds a new protected range
The result of adding a new protected range
Adds a new sheet. When a sheet is added at a given index, all subsequent sheets' indexes are incremented. To add an object sheet, use AddChartRequest instead and specify EmbeddedObjectPosition.sheetId or EmbeddedObjectPosition.newSheet
The result of adding a sheet
Adds new cells after the last row with data in a sheet, inserting new rows into the sheet if necessary
Appends rows or columns to the end of a sheet
The response when updating a range of values in a spreadsheet
Fills in more data based on existing data
Automatically resizes one or more dimensions based on the contents of the cells in that dimension
A banded (alternating colors) range in a sheet
Properties referring a single dimension (either row or column). If both BandedRange.row_properties and BandedRange.column_properties are set, the fill colors are applied to cells according to the following rules: header_color and footer_color take priority over band colors. first_band_color takes priority over second_band_color. * row_properties takes priority over column_properties. For example, the first row color takes priority over the first column color, but the first column color takes priority over the second row color. Similarly, the row header takes priority over the column header in the top left cell, but the column header takes priority over the first row color if the row header is not set
An axis of the chart. A chart may not have more than one axis per axis position
The domain of a chart. For example, if charting stock prices over time, this would be the date
A single series of data in a chart. For example, if charting stock prices over time, multiple series may exist, one for the "Open Price", "High Price", "Low Price" and "Close Price"
The specification for a basic chart. See BasicChartType for the list of charts this supports
The default filter associated with a sheet
The request for clearing more than one range of values in a spreadsheet
The response when clearing a range of values in a spreadsheet
The response when retrieving more than one range of values in a spreadsheet
The request for updating any aspect of a spreadsheet
The reply for batch updating a spreadsheet
The request for updating more than one range of values in a spreadsheet
The response when updating a range of values in a spreadsheet
A condition that can evaluate to true or false. BooleanConditions are used by conditional formatting, data validation, and the criteria in filters
A rule that may or may not match, depending on the condition
A border along a cell
The borders of the cell
A <a href="/chart/interactive/docs/gallery/bubblechart">bubble chart</a>
A <a href="/chart/interactive/docs/gallery/candlestickchart">candlestick chart</a>
The Candlestick chart data, each containing the low, open, close, and high values for a series
The domain of a CandlestickChart
The series of a CandlestickData
Data about a specific cell
The format of a cell
The data included in a domain or series
Source ranges for a chart
The specifications of a chart
Clears the basic filter, if any exists on the sheet
The request for clearing a range of values in a spreadsheet
The response when clearing a range of values in a spreadsheet
Represents a color in the RGBA color space. This representation is designed for simplicity of conversion to/from color representations in various languages over compactness; for example, the fields of this representation can be trivially provided to the constructor of "java.awt.Color" in Java; it can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha" method in iOS; and, with just a little work, it can be easily formatted into a CSS "rgba()" string in JavaScript, as well. Here are some examples: Example (Java): import com.google.type.Color; // … public static java.awt.Color fromProto(Color protocolor) { float alpha = protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); } public static Color toProto(java.awt.Color color) { float red = (float) color.getRed(); float green = (float) color.getGreen(); float blue = (float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255) { result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .build()); } return resultBuilder.build(); } // … Example (iOS / Obj-C): // … static UIColor fromProto(Color protocolor) { float red = [protocolor red]; float green = [protocolor green]; float blue = [protocolor blue]; FloatValue alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper != nil) { alpha = [alpha_wrapper value]; } return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; } static Color toProto(UIColor color) { CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) { return nil; } Color result = [Color alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <= 0.9999) { [result setAlpha:floatWrapperWithValue(alpha)]; } [result autorelease]; return result; } // … Example (JavaScript): // … var protoToCssColor = function(rgbcolor) { var redFrac = rgb_color.red || 0.0; var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0; var red = Math.floor(redFrac 255); var green = Math.floor(greenFrac 255); var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) { return rgbToCssColor(red, green, blue); } var alphaFrac = rgbcolor.alpha.value || 0.0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(''); }; var rgbToCssColor = function(red, green, blue) { var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) { resultBuilder.push('0'); } resultBuilder.push(hexString); return resultBuilder.join(''); }; //
The value of the condition
A rule describing a conditional format
Copies data from the source to the destination
The request to copy a sheet across spreadsheets
Moves data from the source to the destination
A data validation rule
Removes the banded range with the given ID from the spreadsheet
Deletes a conditional format rule at the given index. All subsequent rules' indexes are decremented
The result of deleting a conditional format rule
Deletes the dimensions from the sheet
Deletes the embedded object with the given ID
Deletes a particular filter view
Removes the named range with the given ID from the spreadsheet
Deletes the protected range with the given ID
Deletes a range of cells, shifting other cells into the deleted area
Deletes the requested sheet
Properties about a dimension
A range along a single dimension on a sheet. All indexes are zero-based. Indexes are half open: the start index is inclusive and the end index is exclusive. Missing indexes indicate the range is unbounded on that side
Duplicates a particular filter view
The result of a filter view being duplicated
Duplicates the contents of a sheet
The result of duplicating a sheet
The editors of a protected range
A chart embedded in a sheet
The position of an embedded object such as a chart
An error in a cell
The kinds of value that a cell in a spreadsheet can have
Criteria for showing/hiding rows in a filter or filter view
A filter view
Finds and replaces data in cells over a range, sheet, or all sheets
The result of the find/replace
A rule that applies a gradient color scale format, based on the interpolation points listed. The format of a cell will vary based on its contents as compared to the values of the interpolation points
A coordinate in a sheet. All indexes are zero-based
Data in the grid, as well as metadata about the dimensions
Properties of a grid
A range on a sheet. All indexes are zero-based. Indexes are half open, e.g the start index is inclusive and the end index is exclusive — [start_index, end_index). Missing indexes indicate the range is unbounded on that side. For example, if `"Sheet1"` is sheet ID 0, then: `Sheet1!A1:A1 == sheet_id: 0, start_row_index: 0, end_row_index: 1, start_column_index: 0, end_column_index: 1` `Sheet1!A3:B4 == sheet_id: 0, start_row_index: 2, end_row_index: 4, start_column_index: 0, end_column_index: 2` `Sheet1!A:B == sheet_id: 0, start_column_index: 0, end_column_index: 2` `Sheet1!A5:B == sheet_id: 0, start_row_index: 4, start_column_index: 0, end_column_index: 2` `Sheet1 == sheet_id:0` The start index must always be less than or equal to the end index. If the start index equals the end index, then the range is empty. Empty ranges are typically not meaningful and are usually rendered in the UI as `#REF!`
A <a href="/chart/interactive/docs/gallery/histogram">histogram chart</a>. A histogram chart groups data items into bins, displaying each bin as a column of stacked items. Histograms are used to display the distribution of a dataset. Each column of items represents a range into which those items fall. The number of bins can be chosen automatically or specified explicitly
A histogram series containing the series color and data
Inserts rows or columns in a sheet at a particular index
Inserts cells into a range, shifting the existing cells over or down
A single interpolation point on a gradient conditional format. These pin the gradient color scale according to the color, type and value chosen
Settings to control how circular dependencies are resolved with iterative calculation
Merges all cells in the range
Moves one or more rows or columns
A named range
The number format of a cell
An <a href="/chart/interactive/docs/gallery/orgchart">org chart</a>. Org charts require a unique set of labels in labels and may optionally include parent_labels and tooltips. parent_labels contain, for each node, the label identifying the parent node. tooltips contain, for each node, an optional tooltip. For example, to describe an OrgChart with Alice as the CEO, Bob as the President (reporting to Alice) and Cathy as VP of Sales (also reporting to Alice), have labels contain "Alice", "Bob", "Cathy", parent_labels contain "", "Alice", "Alice" and tooltips contain "CEO", "President", "VP Sales"
The location an object is overlaid on top of a grid
The amount of padding around the cell, in pixels. When updating padding, every field must be specified
Inserts data into the spreadsheet starting at the specified coordinate
A <a href="/chart/interactive/docs/gallery/piechart">pie chart</a>
Criteria for showing/hiding rows in a pivot table
A single grouping (either row or column) in a pivot table
Information about which values in a pivot group should be used for sorting
Metadata about a value in a pivot grouping
A pivot table
The definition of how a value in a pivot table should be calculated
A protected range
Randomizes the order of the rows in a range
Updates all cells in the range to the values in the given Cell object. Only the fields listed in the fields field are updated; others are unchanged. If writing a cell with a formula, the formula's ranges will automatically increment for each field in the range. For example, if writing a cell with formula `=A1` into range B2:C4, B2 would be `=A1`, B3 would be `=A2`, B4 would be `=A3`, C2 would be `=B1`, C3 would be `=B2`, C4 would be `=B3`. To keep the formula's ranges static, use the `$` indicator. For example, use the formula `=$A$1` to prevent both the row and the column from incrementing
A single kind of update to apply to a spreadsheet
A single response from an update
Data about each cell in a row
Sets the basic filter associated with a sheet
Sets a data validation rule to every cell in the range. To clear validation in a range, call this with no rule specified
A sheet in a spreadsheet
Properties of a sheet
Sorts data in rows based on a sort order per column
A sort order associated with a specific column or row
A combination of a source range and how to extend that source
Resource that represents a spreadsheet
Properties of a spreadsheet
The format of a run of text in a cell. Absent values indicate that the field isn't specified
A run of a text format. The format of this run continues until the start index of the next run. When updating, all fields must be set
The rotation applied to text in a cell
Splits a column of text into multiple columns, based on a delimiter in each cell
Unmerges cells in the given range
Updates properties of the supplied banded range
Updates the borders of a range. If a field is not set in the request, that means the border remains as-is. For example, with two subsequent UpdateBordersRequest: 1. range: A1:A5 `{ top: RED, bottom: WHITE }` 2. range: A1:A5 `{ left: BLUE }` That would result in A1:A5 having a borders of `{ top: RED, bottom: WHITE, left: BLUE }`. If you want to clear a border, explicitly set the style to NONE
Updates all cells in a range with new data
Updates a chart's specifications. (This does not move or resize a chart. To move or resize a chart, use UpdateEmbeddedObjectPositionRequest.)
Updates a conditional format rule at the given index, or moves a conditional format rule to another index
The result of updating a conditional format rule
Updates properties of dimensions within the specified range
Update an embedded object's position (such as a moving or resizing a chart or image)
The result of updating an embedded object's position
Updates properties of the filter view
Updates properties of the named range with the specified namedRangeId
Updates an existing protected range with the specified protectedRangeId
Updates properties of the sheet with the specified sheetId
Updates properties of a spreadsheet
The response when updating a range of values in a spreadsheet
Data within a range of the spreadsheet
Helper functions for building Tesla requests