public final class RealtimeData 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 |
RealtimeData.ColumnHeaders
Model definition for RealtimeDataColumnHeaders.
|
static class |
RealtimeData.ProfileInfo
Information for the view (profile), for which the real time data was requested.
|
static class |
RealtimeData.Query
Real time data request query parameters.
|
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
RealtimeData() |
Modifier and Type | Method and Description |
---|---|
RealtimeData |
clone() |
List<RealtimeData.ColumnHeaders> |
getColumnHeaders()
Column headers that list dimension names followed by the metric names.
|
String |
getId()
Unique ID for this data response.
|
String |
getKind()
Resource type.
|
RealtimeData.ProfileInfo |
getProfileInfo()
Information for the view (profile), for which the real time data was requested.
|
RealtimeData.Query |
getQuery()
Real time data request query parameters.
|
List<List<String>> |
getRows()
Real time 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.
|
RealtimeData |
set(String fieldName,
Object value) |
RealtimeData |
setColumnHeaders(List<RealtimeData.ColumnHeaders> columnHeaders)
Column headers that list dimension names followed by the metric names.
|
RealtimeData |
setId(String id)
Unique ID for this data response.
|
RealtimeData |
setKind(String kind)
Resource type.
|
RealtimeData |
setProfileInfo(RealtimeData.ProfileInfo profileInfo)
Information for the view (profile), for which the real time data was requested.
|
RealtimeData |
setQuery(RealtimeData.Query query)
Real time data request query parameters.
|
RealtimeData |
setRows(List<List<String>> rows)
Real time data rows, where each row contains a list of dimension values followed by the metric
values.
|
RealtimeData |
setSelfLink(String selfLink)
Link to this page.
|
RealtimeData |
setTotalResults(Integer totalResults)
The total number of rows for the query, regardless of the number of rows in the response.
|
RealtimeData |
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<RealtimeData.ColumnHeaders> getColumnHeaders()
null
for nonepublic RealtimeData setColumnHeaders(List<RealtimeData.ColumnHeaders> columnHeaders)
columnHeaders
- columnHeaders or null
for nonepublic String getId()
null
for nonepublic RealtimeData setId(String id)
id
- id or null
for nonepublic String getKind()
null
for nonepublic RealtimeData setKind(String kind)
kind
- kind or null
for nonepublic RealtimeData.ProfileInfo getProfileInfo()
null
for nonepublic RealtimeData setProfileInfo(RealtimeData.ProfileInfo profileInfo)
profileInfo
- profileInfo or null
for nonepublic RealtimeData.Query getQuery()
null
for nonepublic RealtimeData setQuery(RealtimeData.Query query)
query
- query or null
for nonepublic List<List<String>> getRows()
null
for nonepublic RealtimeData setRows(List<List<String>> rows)
rows
- rows or null
for nonepublic String getSelfLink()
null
for nonepublic RealtimeData setSelfLink(String selfLink)
selfLink
- selfLink or null
for nonepublic Integer getTotalResults()
null
for nonepublic RealtimeData setTotalResults(Integer totalResults)
totalResults
- totalResults or null
for nonepublic Map<String,String> getTotalsForAllResults()
null
for nonepublic RealtimeData setTotalsForAllResults(Map<String,String> totalsForAllResults)
totalsForAllResults
- totalsForAllResults or null
for nonepublic RealtimeData set(String fieldName, Object value)
set
in class GenericJson
public RealtimeData clone()
clone
in class GenericJson
Copyright © 2011–2022 Google. All rights reserved.