public final class Cohort 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 Analytics Reporting API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Cohort() |
| Modifier and Type | Method and Description |
|---|---|
Cohort |
clone() |
DateRange |
getDateRange()
This is used for `FIRST_VISIT_DATE` cohort, the cohort selects users whose first visit date is
between start date and end date defined in the DateRange.
|
String |
getName()
A unique name for the cohort.
|
String |
getType()
Type of the cohort.
|
Cohort |
set(String fieldName,
Object value) |
Cohort |
setDateRange(DateRange dateRange)
This is used for `FIRST_VISIT_DATE` cohort, the cohort selects users whose first visit date is
between start date and end date defined in the DateRange.
|
Cohort |
setName(String name)
A unique name for the cohort.
|
Cohort |
setType(String type)
Type of the cohort.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic DateRange getDateRange()
null for nonepublic Cohort setDateRange(DateRange dateRange)
dateRange - dateRange or null for nonepublic String getName()
null for nonepublic Cohort setName(String name)
name - name or null for nonepublic String getType()
null for nonepublic Cohort setType(String type)
type - type or null for nonepublic Cohort set(String fieldName, Object value)
set in class GenericJsonpublic Cohort clone()
clone in class GenericJsonCopyright © 2011–2021 Google. All rights reserved.