public static final class CohortSpec.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CohortSpec.Builder> implements CohortSpecOrBuilder
The specification of cohorts for a cohort report. Cohort reports create a time series of user retention for the cohort. For example, you could select the cohort of users that were acquired in the first week of September and follow that cohort for the next six weeks. Selecting the users acquired in the first week of September cohort is specified in the `cohort` object. Following that cohort for the next six weeks is specified in the `cohortsRange` object. For examples, see [Cohort Report Examples](https://developers.google.com/analytics/devguides/reporting/data/v1/advanced#cohort_report_examples). The report response could show a weekly time series where say your app has retained 60% of this cohort after three weeks and 25% of this cohort after six weeks. These two percentages can be calculated by the metric `cohortActiveUsers/cohortTotalUsers` and will be separate rows in the report.Protobuf type
google.analytics.data.v1beta.CohortSpec| Modifier and Type | Method and Description |
|---|---|
CohortSpec.Builder |
addAllCohorts(Iterable<? extends Cohort> values)
Defines the selection criteria to group users into cohorts.
|
CohortSpec.Builder |
addCohorts(Cohort.Builder builderForValue)
Defines the selection criteria to group users into cohorts.
|
CohortSpec.Builder |
addCohorts(Cohort value)
Defines the selection criteria to group users into cohorts.
|
CohortSpec.Builder |
addCohorts(int index,
Cohort.Builder builderForValue)
Defines the selection criteria to group users into cohorts.
|
CohortSpec.Builder |
addCohorts(int index,
Cohort value)
Defines the selection criteria to group users into cohorts.
|
Cohort.Builder |
addCohortsBuilder()
Defines the selection criteria to group users into cohorts.
|
Cohort.Builder |
addCohortsBuilder(int index)
Defines the selection criteria to group users into cohorts.
|
CohortSpec.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
CohortSpec |
build() |
CohortSpec |
buildPartial() |
CohortSpec.Builder |
clear() |
CohortSpec.Builder |
clearCohortReportSettings()
Optional settings for a cohort report.
|
CohortSpec.Builder |
clearCohorts()
Defines the selection criteria to group users into cohorts.
|
CohortSpec.Builder |
clearCohortsRange()
Cohort reports follow cohorts over an extended reporting date range.
|
CohortSpec.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
CohortSpec.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
CohortSpec.Builder |
clone() |
CohortReportSettings |
getCohortReportSettings()
Optional settings for a cohort report.
|
CohortReportSettings.Builder |
getCohortReportSettingsBuilder()
Optional settings for a cohort report.
|
CohortReportSettingsOrBuilder |
getCohortReportSettingsOrBuilder()
Optional settings for a cohort report.
|
Cohort |
getCohorts(int index)
Defines the selection criteria to group users into cohorts.
|
Cohort.Builder |
getCohortsBuilder(int index)
Defines the selection criteria to group users into cohorts.
|
List<Cohort.Builder> |
getCohortsBuilderList()
Defines the selection criteria to group users into cohorts.
|
int |
getCohortsCount()
Defines the selection criteria to group users into cohorts.
|
List<Cohort> |
getCohortsList()
Defines the selection criteria to group users into cohorts.
|
CohortOrBuilder |
getCohortsOrBuilder(int index)
Defines the selection criteria to group users into cohorts.
|
List<? extends CohortOrBuilder> |
getCohortsOrBuilderList()
Defines the selection criteria to group users into cohorts.
|
CohortsRange |
getCohortsRange()
Cohort reports follow cohorts over an extended reporting date range.
|
CohortsRange.Builder |
getCohortsRangeBuilder()
Cohort reports follow cohorts over an extended reporting date range.
|
CohortsRangeOrBuilder |
getCohortsRangeOrBuilder()
Cohort reports follow cohorts over an extended reporting date range.
|
CohortSpec |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
hasCohortReportSettings()
Optional settings for a cohort report.
|
boolean |
hasCohortsRange()
Cohort reports follow cohorts over an extended reporting date range.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
CohortSpec.Builder |
mergeCohortReportSettings(CohortReportSettings value)
Optional settings for a cohort report.
|
CohortSpec.Builder |
mergeCohortsRange(CohortsRange value)
Cohort reports follow cohorts over an extended reporting date range.
|
CohortSpec.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
CohortSpec.Builder |
mergeFrom(CohortSpec other) |
CohortSpec.Builder |
mergeFrom(com.google.protobuf.Message other) |
CohortSpec.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
CohortSpec.Builder |
removeCohorts(int index)
Defines the selection criteria to group users into cohorts.
|
CohortSpec.Builder |
setCohortReportSettings(CohortReportSettings.Builder builderForValue)
Optional settings for a cohort report.
|
CohortSpec.Builder |
setCohortReportSettings(CohortReportSettings value)
Optional settings for a cohort report.
|
CohortSpec.Builder |
setCohorts(int index,
Cohort.Builder builderForValue)
Defines the selection criteria to group users into cohorts.
|
CohortSpec.Builder |
setCohorts(int index,
Cohort value)
Defines the selection criteria to group users into cohorts.
|
CohortSpec.Builder |
setCohortsRange(CohortsRange.Builder builderForValue)
Cohort reports follow cohorts over an extended reporting date range.
|
CohortSpec.Builder |
setCohortsRange(CohortsRange value)
Cohort reports follow cohorts over an extended reporting date range.
|
CohortSpec.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
CohortSpec.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
CohortSpec.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<CohortSpec.Builder>public CohortSpec.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<CohortSpec.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<CohortSpec.Builder>public CohortSpec getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic CohortSpec build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic CohortSpec buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic CohortSpec.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<CohortSpec.Builder>public CohortSpec.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<CohortSpec.Builder>public CohortSpec.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<CohortSpec.Builder>public CohortSpec.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<CohortSpec.Builder>public CohortSpec.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CohortSpec.Builder>public CohortSpec.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CohortSpec.Builder>public CohortSpec.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CohortSpec.Builder>public CohortSpec.Builder mergeFrom(CohortSpec other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<CohortSpec.Builder>public CohortSpec.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CohortSpec.Builder>IOExceptionpublic List<Cohort> getCohortsList()
Defines the selection criteria to group users into cohorts. Most cohort reports define only a single cohort. If multiple cohorts are specified, each cohort can be recognized in the report by their name.
repeated .google.analytics.data.v1beta.Cohort cohorts = 1;getCohortsList in interface CohortSpecOrBuilderpublic int getCohortsCount()
Defines the selection criteria to group users into cohorts. Most cohort reports define only a single cohort. If multiple cohorts are specified, each cohort can be recognized in the report by their name.
repeated .google.analytics.data.v1beta.Cohort cohorts = 1;getCohortsCount in interface CohortSpecOrBuilderpublic Cohort getCohorts(int index)
Defines the selection criteria to group users into cohorts. Most cohort reports define only a single cohort. If multiple cohorts are specified, each cohort can be recognized in the report by their name.
repeated .google.analytics.data.v1beta.Cohort cohorts = 1;getCohorts in interface CohortSpecOrBuilderpublic CohortSpec.Builder setCohorts(int index, Cohort value)
Defines the selection criteria to group users into cohorts. Most cohort reports define only a single cohort. If multiple cohorts are specified, each cohort can be recognized in the report by their name.
repeated .google.analytics.data.v1beta.Cohort cohorts = 1;public CohortSpec.Builder setCohorts(int index, Cohort.Builder builderForValue)
Defines the selection criteria to group users into cohorts. Most cohort reports define only a single cohort. If multiple cohorts are specified, each cohort can be recognized in the report by their name.
repeated .google.analytics.data.v1beta.Cohort cohorts = 1;public CohortSpec.Builder addCohorts(Cohort value)
Defines the selection criteria to group users into cohorts. Most cohort reports define only a single cohort. If multiple cohorts are specified, each cohort can be recognized in the report by their name.
repeated .google.analytics.data.v1beta.Cohort cohorts = 1;public CohortSpec.Builder addCohorts(int index, Cohort value)
Defines the selection criteria to group users into cohorts. Most cohort reports define only a single cohort. If multiple cohorts are specified, each cohort can be recognized in the report by their name.
repeated .google.analytics.data.v1beta.Cohort cohorts = 1;public CohortSpec.Builder addCohorts(Cohort.Builder builderForValue)
Defines the selection criteria to group users into cohorts. Most cohort reports define only a single cohort. If multiple cohorts are specified, each cohort can be recognized in the report by their name.
repeated .google.analytics.data.v1beta.Cohort cohorts = 1;public CohortSpec.Builder addCohorts(int index, Cohort.Builder builderForValue)
Defines the selection criteria to group users into cohorts. Most cohort reports define only a single cohort. If multiple cohorts are specified, each cohort can be recognized in the report by their name.
repeated .google.analytics.data.v1beta.Cohort cohorts = 1;public CohortSpec.Builder addAllCohorts(Iterable<? extends Cohort> values)
Defines the selection criteria to group users into cohorts. Most cohort reports define only a single cohort. If multiple cohorts are specified, each cohort can be recognized in the report by their name.
repeated .google.analytics.data.v1beta.Cohort cohorts = 1;public CohortSpec.Builder clearCohorts()
Defines the selection criteria to group users into cohorts. Most cohort reports define only a single cohort. If multiple cohorts are specified, each cohort can be recognized in the report by their name.
repeated .google.analytics.data.v1beta.Cohort cohorts = 1;public CohortSpec.Builder removeCohorts(int index)
Defines the selection criteria to group users into cohorts. Most cohort reports define only a single cohort. If multiple cohorts are specified, each cohort can be recognized in the report by their name.
repeated .google.analytics.data.v1beta.Cohort cohorts = 1;public Cohort.Builder getCohortsBuilder(int index)
Defines the selection criteria to group users into cohorts. Most cohort reports define only a single cohort. If multiple cohorts are specified, each cohort can be recognized in the report by their name.
repeated .google.analytics.data.v1beta.Cohort cohorts = 1;public CohortOrBuilder getCohortsOrBuilder(int index)
Defines the selection criteria to group users into cohorts. Most cohort reports define only a single cohort. If multiple cohorts are specified, each cohort can be recognized in the report by their name.
repeated .google.analytics.data.v1beta.Cohort cohorts = 1;getCohortsOrBuilder in interface CohortSpecOrBuilderpublic List<? extends CohortOrBuilder> getCohortsOrBuilderList()
Defines the selection criteria to group users into cohorts. Most cohort reports define only a single cohort. If multiple cohorts are specified, each cohort can be recognized in the report by their name.
repeated .google.analytics.data.v1beta.Cohort cohorts = 1;getCohortsOrBuilderList in interface CohortSpecOrBuilderpublic Cohort.Builder addCohortsBuilder()
Defines the selection criteria to group users into cohorts. Most cohort reports define only a single cohort. If multiple cohorts are specified, each cohort can be recognized in the report by their name.
repeated .google.analytics.data.v1beta.Cohort cohorts = 1;public Cohort.Builder addCohortsBuilder(int index)
Defines the selection criteria to group users into cohorts. Most cohort reports define only a single cohort. If multiple cohorts are specified, each cohort can be recognized in the report by their name.
repeated .google.analytics.data.v1beta.Cohort cohorts = 1;public List<Cohort.Builder> getCohortsBuilderList()
Defines the selection criteria to group users into cohorts. Most cohort reports define only a single cohort. If multiple cohorts are specified, each cohort can be recognized in the report by their name.
repeated .google.analytics.data.v1beta.Cohort cohorts = 1;public boolean hasCohortsRange()
Cohort reports follow cohorts over an extended reporting date range. This range specifies an offset duration to follow the cohorts over.
.google.analytics.data.v1beta.CohortsRange cohorts_range = 2;hasCohortsRange in interface CohortSpecOrBuilderpublic CohortsRange getCohortsRange()
Cohort reports follow cohorts over an extended reporting date range. This range specifies an offset duration to follow the cohorts over.
.google.analytics.data.v1beta.CohortsRange cohorts_range = 2;getCohortsRange in interface CohortSpecOrBuilderpublic CohortSpec.Builder setCohortsRange(CohortsRange value)
Cohort reports follow cohorts over an extended reporting date range. This range specifies an offset duration to follow the cohorts over.
.google.analytics.data.v1beta.CohortsRange cohorts_range = 2;public CohortSpec.Builder setCohortsRange(CohortsRange.Builder builderForValue)
Cohort reports follow cohorts over an extended reporting date range. This range specifies an offset duration to follow the cohorts over.
.google.analytics.data.v1beta.CohortsRange cohorts_range = 2;public CohortSpec.Builder mergeCohortsRange(CohortsRange value)
Cohort reports follow cohorts over an extended reporting date range. This range specifies an offset duration to follow the cohorts over.
.google.analytics.data.v1beta.CohortsRange cohorts_range = 2;public CohortSpec.Builder clearCohortsRange()
Cohort reports follow cohorts over an extended reporting date range. This range specifies an offset duration to follow the cohorts over.
.google.analytics.data.v1beta.CohortsRange cohorts_range = 2;public CohortsRange.Builder getCohortsRangeBuilder()
Cohort reports follow cohorts over an extended reporting date range. This range specifies an offset duration to follow the cohorts over.
.google.analytics.data.v1beta.CohortsRange cohorts_range = 2;public CohortsRangeOrBuilder getCohortsRangeOrBuilder()
Cohort reports follow cohorts over an extended reporting date range. This range specifies an offset duration to follow the cohorts over.
.google.analytics.data.v1beta.CohortsRange cohorts_range = 2;getCohortsRangeOrBuilder in interface CohortSpecOrBuilderpublic boolean hasCohortReportSettings()
Optional settings for a cohort report.
.google.analytics.data.v1beta.CohortReportSettings cohort_report_settings = 3;hasCohortReportSettings in interface CohortSpecOrBuilderpublic CohortReportSettings getCohortReportSettings()
Optional settings for a cohort report.
.google.analytics.data.v1beta.CohortReportSettings cohort_report_settings = 3;getCohortReportSettings in interface CohortSpecOrBuilderpublic CohortSpec.Builder setCohortReportSettings(CohortReportSettings value)
Optional settings for a cohort report.
.google.analytics.data.v1beta.CohortReportSettings cohort_report_settings = 3;public CohortSpec.Builder setCohortReportSettings(CohortReportSettings.Builder builderForValue)
Optional settings for a cohort report.
.google.analytics.data.v1beta.CohortReportSettings cohort_report_settings = 3;public CohortSpec.Builder mergeCohortReportSettings(CohortReportSettings value)
Optional settings for a cohort report.
.google.analytics.data.v1beta.CohortReportSettings cohort_report_settings = 3;public CohortSpec.Builder clearCohortReportSettings()
Optional settings for a cohort report.
.google.analytics.data.v1beta.CohortReportSettings cohort_report_settings = 3;public CohortReportSettings.Builder getCohortReportSettingsBuilder()
Optional settings for a cohort report.
.google.analytics.data.v1beta.CohortReportSettings cohort_report_settings = 3;public CohortReportSettingsOrBuilder getCohortReportSettingsOrBuilder()
Optional settings for a cohort report.
.google.analytics.data.v1beta.CohortReportSettings cohort_report_settings = 3;getCohortReportSettingsOrBuilder in interface CohortSpecOrBuilderpublic final CohortSpec.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CohortSpec.Builder>public final CohortSpec.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CohortSpec.Builder>Copyright © 2022 Google LLC. All rights reserved.