public final class CellData
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 |
---|
CellData() |
Modifier and Type | Method and Description |
---|---|
CellData |
clone() |
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.
|
java.lang.String |
getFormattedValue()
The formatted value of the cell.
|
java.lang.String |
getHyperlink()
A hyperlink this cell points to, if any.
|
java.lang.String |
getNote()
Any note on the cell.
|
PivotTable |
getPivotTable()
A pivot table anchored at this cell.
|
java.util.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(java.lang.String fieldName,
java.lang.Object value) |
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(java.lang.String formattedValue)
The formatted value of the cell.
|
CellData |
setHyperlink(java.lang.String hyperlink)
A hyperlink this cell points to, if any.
|
CellData |
setNote(java.lang.String note)
Any note on the cell.
|
CellData |
setPivotTable(PivotTable pivotTable)
A pivot table anchored at this cell.
|
CellData |
setTextFormatRuns(java.util.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, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public 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 java.lang.String getFormattedValue()
null
for nonepublic CellData setFormattedValue(java.lang.String formattedValue)
formattedValue
- formattedValue or null
for nonepublic java.lang.String getHyperlink()
null
for nonepublic CellData setHyperlink(java.lang.String hyperlink)
hyperlink
- hyperlink or null
for nonepublic java.lang.String getNote()
null
for nonepublic CellData setNote(java.lang.String note)
note
- note or null
for nonepublic PivotTable getPivotTable()
null
for nonepublic CellData setPivotTable(PivotTable pivotTable)
pivotTable
- pivotTable or null
for nonepublic java.util.List<TextFormatRun> getTextFormatRuns()
null
for nonepublic CellData setTextFormatRuns(java.util.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(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public CellData clone()
clone
in class com.google.api.client.json.GenericJson