public final class CellData 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.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
CellData() |
| Modifier and Type | Method and Description |
|---|---|
CellData |
clone() |
DataSourceFormula |
getDataSourceFormula()
Output only.
|
DataSourceTable |
getDataSourceTable()
A data source table anchored at this cell.
|
DataValidationRule |
getDataValidation()
A data validation rule on the cell, if any.
|
CellFormat |
getEffectiveFormat()
The effective format being used by the cell.
|
ExtendedValue |
getEffectiveValue()
The effective value of the cell.
|
String |
getFormattedValue()
The formatted value of the cell.
|
String |
getHyperlink()
A hyperlink this cell points to, if any.
|
String |
getNote()
Any note on the cell.
|
PivotTable |
getPivotTable()
A pivot table anchored at this cell.
|
List<TextFormatRun> |
getTextFormatRuns()
Runs of rich text applied to subsections of the cell.
|
CellFormat |
getUserEnteredFormat()
The format the user entered for the cell.
|
ExtendedValue |
getUserEnteredValue()
The value the user entered in the cell.
|
CellData |
set(String fieldName,
Object value) |
CellData |
setDataSourceFormula(DataSourceFormula dataSourceFormula)
Output only.
|
CellData |
setDataSourceTable(DataSourceTable dataSourceTable)
A data source table anchored at this cell.
|
CellData |
setDataValidation(DataValidationRule dataValidation)
A data validation rule on the cell, if any.
|
CellData |
setEffectiveFormat(CellFormat effectiveFormat)
The effective format being used by the cell.
|
CellData |
setEffectiveValue(ExtendedValue effectiveValue)
The effective value of the cell.
|
CellData |
setFormattedValue(String formattedValue)
The formatted value of the cell.
|
CellData |
setHyperlink(String hyperlink)
A hyperlink this cell points to, if any.
|
CellData |
setNote(String note)
Any note on the cell.
|
CellData |
setPivotTable(PivotTable pivotTable)
A pivot table anchored at this cell.
|
CellData |
setTextFormatRuns(List<TextFormatRun> textFormatRuns)
Runs of rich text applied to subsections of the cell.
|
CellData |
setUserEnteredFormat(CellFormat userEnteredFormat)
The format the user entered for the cell.
|
CellData |
setUserEnteredValue(ExtendedValue userEnteredValue)
The value the user entered in the cell.
|
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 DataSourceFormula getDataSourceFormula()
null for nonepublic CellData setDataSourceFormula(DataSourceFormula dataSourceFormula)
dataSourceFormula - dataSourceFormula or null for nonepublic DataSourceTable getDataSourceTable()
null for nonepublic CellData setDataSourceTable(DataSourceTable dataSourceTable)
dataSourceTable - dataSourceTable or null for nonepublic DataValidationRule getDataValidation()
null for nonepublic CellData setDataValidation(DataValidationRule dataValidation)
dataValidation - dataValidation or null for nonepublic CellFormat getEffectiveFormat()
null for nonepublic CellData setEffectiveFormat(CellFormat effectiveFormat)
effectiveFormat - effectiveFormat or null for nonepublic ExtendedValue getEffectiveValue()
null for nonepublic CellData setEffectiveValue(ExtendedValue effectiveValue)
effectiveValue - effectiveValue or null for nonepublic String getFormattedValue()
null for nonepublic CellData setFormattedValue(String formattedValue)
formattedValue - formattedValue or null for nonepublic String getHyperlink()
null for nonepublic CellData setHyperlink(String hyperlink)
hyperlink - hyperlink or null for nonepublic String getNote()
null for nonepublic CellData setNote(String note)
note - note or null for nonepublic PivotTable getPivotTable()
null for nonepublic CellData setPivotTable(PivotTable pivotTable)
pivotTable - pivotTable or null for nonepublic List<TextFormatRun> getTextFormatRuns()
null for nonepublic CellData setTextFormatRuns(List<TextFormatRun> textFormatRuns)
textFormatRuns - textFormatRuns or null for nonepublic CellFormat getUserEnteredFormat()
null for nonepublic CellData setUserEnteredFormat(CellFormat userEnteredFormat)
userEnteredFormat - userEnteredFormat or null for nonepublic ExtendedValue getUserEnteredValue()
null for nonepublic CellData setUserEnteredValue(ExtendedValue userEnteredValue)
userEnteredValue - userEnteredValue or null for nonepublic CellData set(String fieldName, Object value)
set in class GenericJsonpublic CellData clone()
clone in class GenericJsonCopyright © 2011–2021 Google. All rights reserved.