public final class PivotValue 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 |
---|
PivotValue() |
Modifier and Type | Method and Description |
---|---|
PivotValue |
clone() |
String |
getCalculatedDisplayType()
If specified, indicates that pivot values should be displayed as the result of a calculation
with another pivot value.
|
String |
getFormula()
A custom formula to calculate the value.
|
String |
getName()
A name to use for the value.
|
Integer |
getSourceColumnOffset()
The column offset of the source range that this value reads from.
|
String |
getSummarizeFunction()
A function to summarize the value.
|
PivotValue |
set(String fieldName,
Object value) |
PivotValue |
setCalculatedDisplayType(String calculatedDisplayType)
If specified, indicates that pivot values should be displayed as the result of a calculation
with another pivot value.
|
PivotValue |
setFormula(String formula)
A custom formula to calculate the value.
|
PivotValue |
setName(String name)
A name to use for the value.
|
PivotValue |
setSourceColumnOffset(Integer sourceColumnOffset)
The column offset of the source range that this value reads from.
|
PivotValue |
setSummarizeFunction(String summarizeFunction)
A function to summarize the value.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public String getCalculatedDisplayType()
null
for nonepublic PivotValue setCalculatedDisplayType(String calculatedDisplayType)
calculatedDisplayType
- calculatedDisplayType or null
for nonepublic String getFormula()
null
for nonepublic PivotValue setFormula(String formula)
formula
- formula or null
for nonepublic String getName()
null
for nonepublic PivotValue setName(String name)
name
- name or null
for nonepublic Integer getSourceColumnOffset()
null
for nonepublic PivotValue setSourceColumnOffset(Integer sourceColumnOffset)
sourceColumnOffset
- sourceColumnOffset or null
for nonepublic String getSummarizeFunction()
null
for nonepublic PivotValue setSummarizeFunction(String summarizeFunction)
summarizeFunction
- summarizeFunction or null
for nonepublic PivotValue set(String fieldName, Object value)
set
in class GenericJson
public PivotValue clone()
clone
in class GenericJson