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.Flags
AbstractMap.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, 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 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 GenericJson
public Cohort clone()
clone
in class GenericJson
Copyright © 2011–2022 Google. All rights reserved.