public final class McfData 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 Analytics API. For a detailed explanation see: http://code.google.com/p/google-http-java-client/wiki/JSON
Modifier and Type | Class and Description |
---|---|
static class |
McfData.ColumnHeaders
Model definition for McfDataColumnHeaders.
|
static class |
McfData.ProfileInfo
Information for the view (profile), for which the Analytics data was requested.
|
static class |
McfData.Query
Analytics data request query parameters.
|
static class |
McfData.Rows
A union object representing a dimension or metric value.
|
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
McfData() |
Modifier and Type | Method and Description |
---|---|
McfData |
clone() |
List<McfData.ColumnHeaders> |
getColumnHeaders()
Column headers that list dimension names followed by the metric names.
|
Boolean |
getContainsSampledData()
Determines if the Analytics data contains sampled data.
|
String |
getId()
Unique ID for this data response.
|
Integer |
getItemsPerPage()
The maximum number of rows the response can contain, regardless of the actual number of rows
returned.
|
String |
getKind()
Resource type.
|
String |
getNextLink()
Link to next page for this Analytics data query.
|
String |
getPreviousLink()
Link to previous page for this Analytics data query.
|
McfData.ProfileInfo |
getProfileInfo()
Information for the view (profile), for which the Analytics data was requested.
|
McfData.Query |
getQuery()
Analytics data request query parameters.
|
List<List<McfData.Rows>> |
getRows()
Analytics data rows, where each row contains a list of dimension values followed by the metric
values.
|
Long |
getSampleSize()
The number of samples used to calculate the result.
|
Long |
getSampleSpace()
Total size of the sample space from which the samples were selected.
|
String |
getSelfLink()
Link to this page.
|
Integer |
getTotalResults()
The total number of rows for the query, regardless of the number of rows in the response.
|
Map<String,String> |
getTotalsForAllResults()
Total values for the requested metrics over all the results, not just the results returned in
this response.
|
McfData |
set(String fieldName,
Object value) |
McfData |
setColumnHeaders(List<McfData.ColumnHeaders> columnHeaders)
Column headers that list dimension names followed by the metric names.
|
McfData |
setContainsSampledData(Boolean containsSampledData)
Determines if the Analytics data contains sampled data.
|
McfData |
setId(String id)
Unique ID for this data response.
|
McfData |
setItemsPerPage(Integer itemsPerPage)
The maximum number of rows the response can contain, regardless of the actual number of rows
returned.
|
McfData |
setKind(String kind)
Resource type.
|
McfData |
setNextLink(String nextLink)
Link to next page for this Analytics data query.
|
McfData |
setPreviousLink(String previousLink)
Link to previous page for this Analytics data query.
|
McfData |
setProfileInfo(McfData.ProfileInfo profileInfo)
Information for the view (profile), for which the Analytics data was requested.
|
McfData |
setQuery(McfData.Query query)
Analytics data request query parameters.
|
McfData |
setRows(List<List<McfData.Rows>> rows)
Analytics data rows, where each row contains a list of dimension values followed by the metric
values.
|
McfData |
setSampleSize(Long sampleSize)
The number of samples used to calculate the result.
|
McfData |
setSampleSpace(Long sampleSpace)
Total size of the sample space from which the samples were selected.
|
McfData |
setSelfLink(String selfLink)
Link to this page.
|
McfData |
setTotalResults(Integer totalResults)
The total number of rows for the query, regardless of the number of rows in the response.
|
McfData |
setTotalsForAllResults(Map<String,String> totalsForAllResults)
Total values for the requested metrics over all the results, not just the results returned in
this response.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public List<McfData.ColumnHeaders> getColumnHeaders()
null
for nonepublic McfData setColumnHeaders(List<McfData.ColumnHeaders> columnHeaders)
columnHeaders
- columnHeaders or null
for nonepublic Boolean getContainsSampledData()
null
for nonepublic McfData setContainsSampledData(Boolean containsSampledData)
containsSampledData
- containsSampledData or null
for nonepublic String getId()
null
for nonepublic McfData setId(String id)
id
- id or null
for nonepublic Integer getItemsPerPage()
null
for nonepublic McfData setItemsPerPage(Integer itemsPerPage)
itemsPerPage
- itemsPerPage or null
for nonepublic String getKind()
null
for nonepublic String getNextLink()
null
for nonepublic McfData setNextLink(String nextLink)
nextLink
- nextLink or null
for nonepublic String getPreviousLink()
null
for nonepublic McfData setPreviousLink(String previousLink)
previousLink
- previousLink or null
for nonepublic McfData.ProfileInfo getProfileInfo()
null
for nonepublic McfData setProfileInfo(McfData.ProfileInfo profileInfo)
profileInfo
- profileInfo or null
for nonepublic McfData.Query getQuery()
null
for nonepublic McfData setQuery(McfData.Query query)
query
- query or null
for nonepublic List<List<McfData.Rows>> getRows()
null
for nonepublic McfData setRows(List<List<McfData.Rows>> rows)
rows
- rows or null
for nonepublic Long getSampleSize()
null
for nonepublic McfData setSampleSize(Long sampleSize)
sampleSize
- sampleSize or null
for nonepublic Long getSampleSpace()
null
for nonepublic McfData setSampleSpace(Long sampleSpace)
sampleSpace
- sampleSpace or null
for nonepublic String getSelfLink()
null
for nonepublic McfData setSelfLink(String selfLink)
selfLink
- selfLink or null
for nonepublic Integer getTotalResults()
null
for nonepublic McfData setTotalResults(Integer totalResults)
totalResults
- totalResults or null
for nonepublic Map<String,String> getTotalsForAllResults()
null
for nonepublic McfData setTotalsForAllResults(Map<String,String> totalsForAllResults)
totalsForAllResults
- totalsForAllResults or null
for nonepublic McfData set(String fieldName, Object value)
set
in class GenericJson
public McfData clone()
clone
in class GenericJson