public final class SpreadsheetProperties extends 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
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
SpreadsheetProperties() |
Modifier and Type | Method and Description |
---|---|
SpreadsheetProperties |
clone() |
String |
getAutoRecalc()
The amount of time to wait before volatile functions are recalculated.
|
CellFormat |
getDefaultFormat()
The default format of all cells in the spreadsheet.
|
IterativeCalculationSettings |
getIterativeCalculationSettings()
Determines whether and how circular references are resolved with iterative calculation.
|
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.
|
SpreadsheetTheme |
getSpreadsheetTheme()
Theme applied to the spreadsheet.
|
String |
getTimeZone()
The time zone of the spreadsheet, in CLDR format such as `America/New_York`.
|
String |
getTitle()
The title of the spreadsheet.
|
SpreadsheetProperties |
set(String fieldName,
Object value) |
SpreadsheetProperties |
setAutoRecalc(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 |
setIterativeCalculationSettings(IterativeCalculationSettings iterativeCalculationSettings)
Determines whether and how circular references are resolved with iterative calculation.
|
SpreadsheetProperties |
setLocale(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 |
setSpreadsheetTheme(SpreadsheetTheme spreadsheetTheme)
Theme applied to the spreadsheet.
|
SpreadsheetProperties |
setTimeZone(String timeZone)
The time zone of the spreadsheet, in CLDR format such as `America/New_York`.
|
SpreadsheetProperties |
setTitle(String title)
The title of the spreadsheet.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public String getAutoRecalc()
null
for nonepublic SpreadsheetProperties setAutoRecalc(String autoRecalc)
autoRecalc
- autoRecalc or null
for nonepublic CellFormat getDefaultFormat()
null
for nonepublic SpreadsheetProperties setDefaultFormat(CellFormat defaultFormat)
defaultFormat
- defaultFormat or null
for nonepublic IterativeCalculationSettings getIterativeCalculationSettings()
null
for nonepublic SpreadsheetProperties setIterativeCalculationSettings(IterativeCalculationSettings iterativeCalculationSettings)
iterativeCalculationSettings
- iterativeCalculationSettings or null
for nonepublic String getLocale()
null
for nonepublic SpreadsheetProperties setLocale(String locale)
locale
- locale or null
for nonepublic SpreadsheetTheme getSpreadsheetTheme()
null
for nonepublic SpreadsheetProperties setSpreadsheetTheme(SpreadsheetTheme spreadsheetTheme)
spreadsheetTheme
- spreadsheetTheme or null
for nonepublic String getTimeZone()
null
for nonepublic SpreadsheetProperties setTimeZone(String timeZone)
timeZone
- timeZone or null
for nonepublic String getTitle()
null
for nonepublic SpreadsheetProperties setTitle(String title)
title
- title or null
for nonepublic SpreadsheetProperties set(String fieldName, Object value)
set
in class GenericJson
public SpreadsheetProperties clone()
clone
in class GenericJson
Copyright © 2011–2019 Google. All rights reserved.