public final class Cohort
extends com.google.api.client.json.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 Reporting API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags| 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.
|
java.lang.String |
getName()
A unique name for the cohort.
|
java.lang.String |
getType()
Type of the cohort.
|
Cohort |
set(java.lang.String fieldName,
java.lang.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(java.lang.String name)
A unique name for the cohort.
|
Cohort |
setType(java.lang.String type)
Type of the cohort.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeyspublic DateRange getDateRange()
null for nonepublic Cohort setDateRange(DateRange dateRange)
dateRange - dateRange or null for nonepublic java.lang.String getName()
null for nonepublic Cohort setName(java.lang.String name)
name - name or null for nonepublic java.lang.String getType()
null for nonepublic Cohort setType(java.lang.String type)
type - type or null for nonepublic Cohort set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic Cohort clone()
clone in class com.google.api.client.json.GenericJson