public final class GaData 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-api-java-client/wiki/Json
Upgrade warning: starting with version 1.12 getResponseHeaders() is removed, instead use
JsonHttpRequest.getLastResponseHeaders()
| Modifier and Type | Class and Description |
|---|---|
static class |
GaData.ColumnHeaders
Model definition for GaDataColumnHeaders.
|
static class |
GaData.ProfileInfo
Information for the profile, for which the Analytics data was requested.
|
static class |
GaData.Query
Analytics data request query parameters.
|
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
GaData() |
| Modifier and Type | Method and Description |
|---|---|
List<GaData.ColumnHeaders> |
getColumnHeaders()
Column headers that list dimension names followed by the metric names.
|
Boolean |
getContainsSampledData()
Determines if Analytics data contains samples.
|
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.
|
GaData.ProfileInfo |
getProfileInfo()
Information for the profile, for which the Analytics data was requested.
|
GaData.Query |
getQuery()
Analytics data request query parameters.
|
List<List<String>> |
getRows()
Analytics data rows, where each row contains a list of dimension values followed by the metric
values.
|
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.
|
GaData |
setColumnHeaders(List<GaData.ColumnHeaders> columnHeaders)
Column headers that list dimension names followed by the metric names.
|
GaData |
setContainsSampledData(Boolean containsSampledData)
Determines if Analytics data contains samples.
|
GaData |
setId(String id)
Unique ID for this data response.
|
GaData |
setItemsPerPage(Integer itemsPerPage)
The maximum number of rows the response can contain, regardless of the actual number of rows
returned.
|
GaData |
setKind(String kind)
Resource type.
|
GaData |
setNextLink(String nextLink)
Link to next page for this Analytics data query.
|
GaData |
setPreviousLink(String previousLink)
Link to previous page for this Analytics data query.
|
GaData |
setProfileInfo(GaData.ProfileInfo profileInfo)
Information for the profile, for which the Analytics data was requested.
|
GaData |
setQuery(GaData.Query query)
Analytics data request query parameters.
|
GaData |
setRows(List<List<String>> rows)
Analytics data rows, where each row contains a list of dimension values followed by the metric
values.
|
GaData |
setSelfLink(String selfLink)
Link to this page.
|
GaData |
setTotalResults(Integer totalResults)
The total number of rows for the query, regardless of the number of rows in the response.
|
GaData |
setTotalsForAllResults(Map<String,String> totalsForAllResults)
Total values for the requested metrics over all the results, not just the results returned in
this response.
|
clone, getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, set, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic List<GaData.ColumnHeaders> getColumnHeaders()
null.public GaData setColumnHeaders(List<GaData.ColumnHeaders> columnHeaders)
null.public Boolean getContainsSampledData()
null.public GaData setContainsSampledData(Boolean containsSampledData)
null.public String getId()
null.public Integer getItemsPerPage()
null.public GaData setItemsPerPage(Integer itemsPerPage)
null.public String getKind()
null.public String getNextLink()
null.public GaData setNextLink(String nextLink)
null.public String getPreviousLink()
null.public GaData setPreviousLink(String previousLink)
null.public GaData.ProfileInfo getProfileInfo()
null.public GaData setProfileInfo(GaData.ProfileInfo profileInfo)
null.public GaData.Query getQuery()
null.public GaData setQuery(GaData.Query query)
null.public List<List<String>> getRows()
null.public GaData setRows(List<List<String>> rows)
null.public String getSelfLink()
null.public GaData setSelfLink(String selfLink)
null.public Integer getTotalResults()
null.public GaData setTotalResults(Integer totalResults)
null.public Map<String,String> getTotalsForAllResults()
null.public GaData setTotalsForAllResults(Map<String,String> totalsForAllResults)
null.