public final class SpreadsheetProperties
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Google Sheets API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
SpreadsheetProperties() |
Modifier and Type | Method and Description |
---|---|
SpreadsheetProperties |
clone() |
java.lang.String |
getAutoRecalc()
The amount of time to wait before volatile functions are recalculated.
|
CellFormat |
getDefaultFormat()
The default format of all cells in the spreadsheet.
|
java.lang.String |
getLocale()
The locale of the spreadsheet in one of the following formats:
* an ISO 639-1 language code such as `en`
* an ISO 639-2 language code such as `fil`, if no 639-1 code exists
* a combination of the ISO language code and country code, such as `en_US`
Note: when updating this field, not all locales/languages are supported.
|
java.lang.String |
getTimeZone()
The time zone of the spreadsheet, in CLDR format such as `America/New_York`.
|
java.lang.String |
getTitle()
The title of the spreadsheet.
|
SpreadsheetProperties |
set(java.lang.String fieldName,
java.lang.Object value) |
SpreadsheetProperties |
setAutoRecalc(java.lang.String autoRecalc)
The amount of time to wait before volatile functions are recalculated.
|
SpreadsheetProperties |
setDefaultFormat(CellFormat defaultFormat)
The default format of all cells in the spreadsheet.
|
SpreadsheetProperties |
setLocale(java.lang.String locale)
The locale of the spreadsheet in one of the following formats:
* an ISO 639-1 language code such as `en`
* an ISO 639-2 language code such as `fil`, if no 639-1 code exists
* a combination of the ISO language code and country code, such as `en_US`
Note: when updating this field, not all locales/languages are supported.
|
SpreadsheetProperties |
setTimeZone(java.lang.String timeZone)
The time zone of the spreadsheet, in CLDR format such as `America/New_York`.
|
SpreadsheetProperties |
setTitle(java.lang.String title)
The title of the spreadsheet.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
public java.lang.String getAutoRecalc()
null
for nonepublic SpreadsheetProperties setAutoRecalc(java.lang.String autoRecalc)
autoRecalc
- autoRecalc or null
for nonepublic CellFormat getDefaultFormat()
null
for nonepublic SpreadsheetProperties setDefaultFormat(CellFormat defaultFormat)
defaultFormat
- defaultFormat or null
for nonepublic java.lang.String getLocale()
null
for nonepublic SpreadsheetProperties setLocale(java.lang.String locale)
locale
- locale or null
for nonepublic java.lang.String getTimeZone()
null
for nonepublic SpreadsheetProperties setTimeZone(java.lang.String timeZone)
timeZone
- timeZone or null
for nonepublic java.lang.String getTitle()
null
for nonepublic SpreadsheetProperties setTitle(java.lang.String title)
title
- title or null
for nonepublic SpreadsheetProperties set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public SpreadsheetProperties clone()
clone
in class com.google.api.client.json.GenericJson