public final class GridData 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: http://code.google.com/p/google-http-java-client/wiki/JSON
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
GridData() |
Modifier and Type | Method and Description |
---|---|
GridData |
clone() |
List<DimensionProperties> |
getColumnMetadata()
Metadata about the requested columns in the grid, starting with the column in start_column.
|
List<RowData> |
getRowData()
The data in the grid, one entry per row, starting with the row in startRow.
|
List<DimensionProperties> |
getRowMetadata()
Metadata about the requested rows in the grid, starting with the row in start_row.
|
Integer |
getStartColumn()
The first column this GridData refers to, zero-based.
|
Integer |
getStartRow()
The first row this GridData refers to, zero-based.
|
GridData |
set(String fieldName,
Object value) |
GridData |
setColumnMetadata(List<DimensionProperties> columnMetadata)
Metadata about the requested columns in the grid, starting with the column in start_column.
|
GridData |
setRowData(List<RowData> rowData)
The data in the grid, one entry per row, starting with the row in startRow.
|
GridData |
setRowMetadata(List<DimensionProperties> rowMetadata)
Metadata about the requested rows in the grid, starting with the row in start_row.
|
GridData |
setStartColumn(Integer startColumn)
The first column this GridData refers to, zero-based.
|
GridData |
setStartRow(Integer startRow)
The first row this GridData refers to, zero-based.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public List<DimensionProperties> getColumnMetadata()
null
for nonepublic GridData setColumnMetadata(List<DimensionProperties> columnMetadata)
columnMetadata
- columnMetadata or null
for nonepublic List<RowData> getRowData()
null
for nonepublic GridData setRowData(List<RowData> rowData)
rowData
- rowData or null
for nonepublic List<DimensionProperties> getRowMetadata()
null
for nonepublic GridData setRowMetadata(List<DimensionProperties> rowMetadata)
rowMetadata
- rowMetadata or null
for nonepublic Integer getStartColumn()
null
for nonepublic GridData setStartColumn(Integer startColumn)
startColumn
- startColumn or null
for nonepublic Integer getStartRow()
null
for nonepublic GridData setStartRow(Integer startRow)
startRow
- startRow or null
for nonepublic GridData set(String fieldName, Object value)
set
in class GenericJson
public GridData clone()
clone
in class GenericJson