public final class DataSource
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.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
DataSource() |
| Modifier and Type | Method and Description |
|---|---|
DataSource |
clone() |
List<DataSourceColumn> |
getCalculatedColumns()
All calculated columns in the data source.
|
String |
getDataSourceId()
The spreadsheet-scoped unique ID that identifies the data source.
|
Integer |
getSheetId()
The ID of the Sheet connected with the data source.
|
DataSourceSpec |
getSpec()
The DataSourceSpec for the data source connected with this spreadsheet.
|
DataSource |
set(String fieldName,
Object value) |
DataSource |
setCalculatedColumns(List<DataSourceColumn> calculatedColumns)
All calculated columns in the data source.
|
DataSource |
setDataSourceId(String dataSourceId)
The spreadsheet-scoped unique ID that identifies the data source.
|
DataSource |
setSheetId(Integer sheetId)
The ID of the Sheet connected with the data source.
|
DataSource |
setSpec(DataSourceSpec spec)
The DataSourceSpec for the data source connected with this spreadsheet.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic List<DataSourceColumn> getCalculatedColumns()
null for nonepublic DataSource setCalculatedColumns(List<DataSourceColumn> calculatedColumns)
calculatedColumns - calculatedColumns or null for nonepublic String getDataSourceId()
null for nonepublic DataSource setDataSourceId(String dataSourceId)
dataSourceId - dataSourceId or null for nonepublic Integer getSheetId()
null for nonepublic DataSource setSheetId(Integer sheetId)
sheetId - sheetId or null for nonepublic DataSourceSpec getSpec()
null for nonepublic DataSource setSpec(DataSourceSpec spec)
spec - spec or null for nonepublic DataSource set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic DataSource clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.