Class CohortSpec.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CohortSpec.Builder>
com.google.analytics.data.v1alpha.CohortSpec.Builder
- All Implemented Interfaces:
CohortSpecOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- CohortSpec
public static final class CohortSpec.Builder
extends com.google.protobuf.GeneratedMessage.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.v1alpha.CohortSpec-
Method Summary
Modifier and TypeMethodDescriptionaddAllCohorts(Iterable<? extends Cohort> values) Defines the selection criteria to group users into cohorts.addCohorts(int index, Cohort value) Defines the selection criteria to group users into cohorts.addCohorts(int index, Cohort.Builder builderForValue) Defines the selection criteria to group users into cohorts.addCohorts(Cohort value) Defines the selection criteria to group users into cohorts.addCohorts(Cohort.Builder builderForValue) Defines the selection criteria to group users into cohorts.Defines the selection criteria to group users into cohorts.addCohortsBuilder(int index) Defines the selection criteria to group users into cohorts.build()clear()Optional settings for a cohort report.Defines the selection criteria to group users into cohorts.Cohort reports follow cohorts over an extended reporting date range.Optional settings for a cohort report.Optional settings for a cohort report.Optional settings for a cohort report.getCohorts(int index) Defines the selection criteria to group users into cohorts.getCohortsBuilder(int index) Defines the selection criteria to group users into cohorts.Defines the selection criteria to group users into cohorts.intDefines the selection criteria to group users into cohorts.Defines the selection criteria to group users into cohorts.getCohortsOrBuilder(int index) Defines the selection criteria to group users into cohorts.List<? extends CohortOrBuilder>Defines the selection criteria to group users into cohorts.Cohort reports follow cohorts over an extended reporting date range.Cohort reports follow cohorts over an extended reporting date range.Cohort reports follow cohorts over an extended reporting date range.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanOptional settings for a cohort report.booleanCohort reports follow cohorts over an extended reporting date range.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanOptional settings for a cohort report.mergeCohortsRange(CohortsRange value) Cohort reports follow cohorts over an extended reporting date range.mergeFrom(CohortSpec other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeCohorts(int index) Defines the selection criteria to group users into cohorts.Optional settings for a cohort report.setCohortReportSettings(CohortReportSettings.Builder builderForValue) Optional settings for a cohort report.setCohorts(int index, Cohort value) Defines the selection criteria to group users into cohorts.setCohorts(int index, Cohort.Builder builderForValue) Defines the selection criteria to group users into cohorts.setCohortsRange(CohortsRange value) Cohort reports follow cohorts over an extended reporting date range.setCohortsRange(CohortsRange.Builder builderForValue) Cohort reports follow cohorts over an extended reporting date range.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<CohortSpec.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<CohortSpec.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<CohortSpec.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CohortSpec.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<CohortSpec.Builder>
-
mergeFrom
public CohortSpec.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CohortSpec.Builder>- Throws:
IOException
-
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.v1alpha.Cohort cohorts = 1;- Specified by:
getCohortsListin interfaceCohortSpecOrBuilder
-
getCohortsCount
public 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.v1alpha.Cohort cohorts = 1;- Specified by:
getCohortsCountin interfaceCohortSpecOrBuilder
-
getCohorts
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.v1alpha.Cohort cohorts = 1;- Specified by:
getCohortsin interfaceCohortSpecOrBuilder
-
setCohorts
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.v1alpha.Cohort cohorts = 1; -
setCohorts
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.v1alpha.Cohort cohorts = 1; -
addCohorts
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.v1alpha.Cohort cohorts = 1; -
addCohorts
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.v1alpha.Cohort cohorts = 1; -
addCohorts
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.v1alpha.Cohort cohorts = 1; -
addCohorts
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.v1alpha.Cohort cohorts = 1; -
addAllCohorts
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.v1alpha.Cohort cohorts = 1; -
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.v1alpha.Cohort cohorts = 1; -
removeCohorts
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.v1alpha.Cohort cohorts = 1; -
getCohortsBuilder
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.v1alpha.Cohort cohorts = 1; -
getCohortsOrBuilder
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.v1alpha.Cohort cohorts = 1;- Specified by:
getCohortsOrBuilderin interfaceCohortSpecOrBuilder
-
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.v1alpha.Cohort cohorts = 1;- Specified by:
getCohortsOrBuilderListin interfaceCohortSpecOrBuilder
-
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.v1alpha.Cohort cohorts = 1; -
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.v1alpha.Cohort cohorts = 1; -
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.v1alpha.Cohort cohorts = 1; -
hasCohortsRange
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.v1alpha.CohortsRange cohorts_range = 2;- Specified by:
hasCohortsRangein interfaceCohortSpecOrBuilder- Returns:
- Whether the cohortsRange field is set.
-
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.v1alpha.CohortsRange cohorts_range = 2;- Specified by:
getCohortsRangein interfaceCohortSpecOrBuilder- Returns:
- The cohortsRange.
-
setCohortsRange
Cohort reports follow cohorts over an extended reporting date range. This range specifies an offset duration to follow the cohorts over.
.google.analytics.data.v1alpha.CohortsRange cohorts_range = 2; -
setCohortsRange
Cohort reports follow cohorts over an extended reporting date range. This range specifies an offset duration to follow the cohorts over.
.google.analytics.data.v1alpha.CohortsRange cohorts_range = 2; -
mergeCohortsRange
Cohort reports follow cohorts over an extended reporting date range. This range specifies an offset duration to follow the cohorts over.
.google.analytics.data.v1alpha.CohortsRange cohorts_range = 2; -
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.v1alpha.CohortsRange cohorts_range = 2; -
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.v1alpha.CohortsRange cohorts_range = 2; -
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.v1alpha.CohortsRange cohorts_range = 2;- Specified by:
getCohortsRangeOrBuilderin interfaceCohortSpecOrBuilder
-
hasCohortReportSettings
public boolean hasCohortReportSettings()Optional settings for a cohort report.
.google.analytics.data.v1alpha.CohortReportSettings cohort_report_settings = 3;- Specified by:
hasCohortReportSettingsin interfaceCohortSpecOrBuilder- Returns:
- Whether the cohortReportSettings field is set.
-
getCohortReportSettings
Optional settings for a cohort report.
.google.analytics.data.v1alpha.CohortReportSettings cohort_report_settings = 3;- Specified by:
getCohortReportSettingsin interfaceCohortSpecOrBuilder- Returns:
- The cohortReportSettings.
-
setCohortReportSettings
Optional settings for a cohort report.
.google.analytics.data.v1alpha.CohortReportSettings cohort_report_settings = 3; -
setCohortReportSettings
Optional settings for a cohort report.
.google.analytics.data.v1alpha.CohortReportSettings cohort_report_settings = 3; -
mergeCohortReportSettings
Optional settings for a cohort report.
.google.analytics.data.v1alpha.CohortReportSettings cohort_report_settings = 3; -
clearCohortReportSettings
Optional settings for a cohort report.
.google.analytics.data.v1alpha.CohortReportSettings cohort_report_settings = 3; -
getCohortReportSettingsBuilder
Optional settings for a cohort report.
.google.analytics.data.v1alpha.CohortReportSettings cohort_report_settings = 3; -
getCohortReportSettingsOrBuilder
Optional settings for a cohort report.
.google.analytics.data.v1alpha.CohortReportSettings cohort_report_settings = 3;- Specified by:
getCohortReportSettingsOrBuilderin interfaceCohortSpecOrBuilder
-