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: https://developers.google.com/api-client-library/java/google-http-java-client/json
Modifier and Type | Class and Description |
---|---|
static class |
GaData.ColumnHeaders
Model definition for GaDataColumnHeaders.
|
static class |
GaData.DataTable
Model definition for GaDataDataTable.
|
static class |
GaData.ProfileInfo
Information for the view (profile), for which the Analytics data was requested.
|
static class |
GaData.Query
Analytics data request query parameters.
|
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
GaData() |
Modifier and Type | Method and Description |
---|---|
GaData |
clone() |
List<GaData.ColumnHeaders> |
getColumnHeaders()
Column headers that list dimension names followed by the metric names.
|
Boolean |
getContainsSampledData()
Determines if Analytics data contains samples.
|
Long |
getDataLastRefreshed()
The last refreshed time in seconds for Analytics data.
|
GaData.DataTable |
getDataTable() |
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 view (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.
|
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.
|
GaData |
set(String fieldName,
Object value) |
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 |
setDataLastRefreshed(Long dataLastRefreshed)
The last refreshed time in seconds for Analytics data.
|
GaData |
setDataTable(GaData.DataTable dataTable) |
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 view (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 |
setSampleSize(Long sampleSize)
The number of samples used to calculate the result.
|
GaData |
setSampleSpace(Long sampleSpace)
Total size of the sample space from which the samples were selected.
|
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.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public List<GaData.ColumnHeaders> getColumnHeaders()
null
for nonepublic GaData setColumnHeaders(List<GaData.ColumnHeaders> columnHeaders)
columnHeaders
- columnHeaders or null
for nonepublic Boolean getContainsSampledData()
null
for nonepublic GaData setContainsSampledData(Boolean containsSampledData)
containsSampledData
- containsSampledData or null
for nonepublic Long getDataLastRefreshed()
null
for nonepublic GaData setDataLastRefreshed(Long dataLastRefreshed)
dataLastRefreshed
- dataLastRefreshed or null
for nonepublic GaData.DataTable getDataTable()
null
for nonepublic GaData setDataTable(GaData.DataTable dataTable)
dataTable
- dataTable or null
for nonepublic String getId()
null
for nonepublic GaData setId(String id)
id
- id or null
for nonepublic Integer getItemsPerPage()
null
for nonepublic GaData setItemsPerPage(Integer itemsPerPage)
itemsPerPage
- itemsPerPage or null
for nonepublic String getKind()
null
for nonepublic String getNextLink()
null
for nonepublic GaData setNextLink(String nextLink)
nextLink
- nextLink or null
for nonepublic String getPreviousLink()
null
for nonepublic GaData setPreviousLink(String previousLink)
previousLink
- previousLink or null
for nonepublic GaData.ProfileInfo getProfileInfo()
null
for nonepublic GaData setProfileInfo(GaData.ProfileInfo profileInfo)
profileInfo
- profileInfo or null
for nonepublic GaData.Query getQuery()
null
for nonepublic GaData setQuery(GaData.Query query)
query
- query or null
for nonepublic List<List<String>> getRows()
null
for nonepublic GaData setRows(List<List<String>> rows)
rows
- rows or null
for nonepublic Long getSampleSize()
null
for nonepublic GaData setSampleSize(Long sampleSize)
sampleSize
- sampleSize or null
for nonepublic Long getSampleSpace()
null
for nonepublic GaData setSampleSpace(Long sampleSpace)
sampleSpace
- sampleSpace or null
for nonepublic String getSelfLink()
null
for nonepublic GaData setSelfLink(String selfLink)
selfLink
- selfLink or null
for nonepublic Integer getTotalResults()
null
for nonepublic GaData setTotalResults(Integer totalResults)
totalResults
- totalResults or null
for nonepublic Map<String,String> getTotalsForAllResults()
null
for nonepublic GaData setTotalsForAllResults(Map<String,String> totalsForAllResults)
totalsForAllResults
- totalsForAllResults or null
for nonepublic GaData set(String fieldName, Object value)
set
in class GenericJson
public GaData clone()
clone
in class GenericJson
Copyright © 2011–2022 Google. All rights reserved.