Class CohortsRange.Builder (0.94.0)

public static final class CohortsRange.Builder extends GeneratedMessage.Builder<CohortsRange.Builder> implements CohortsRangeOrBuilder

Configures the extended reporting date range for a cohort report. Specifies an offset duration to follow the cohorts over.

Protobuf type google.analytics.data.v1alpha.CohortsRange

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public CohortsRange build()
Returns
Type Description
CohortsRange

buildPartial()

public CohortsRange buildPartial()
Returns
Type Description
CohortsRange

clear()

public CohortsRange.Builder clear()
Returns
Type Description
CohortsRange.Builder
Overrides

clearEndOffset()

public CohortsRange.Builder clearEndOffset()

Required. endOffset specifies the end date of the extended reporting date range for a cohort report. endOffset can be any positive integer but is commonly set to 5 to 10 so that reports contain data on the cohort for the next several granularity time periods.

If granularity is DAILY, the endDate of the extended reporting date range is endDate of the cohort plus endOffset days.

If granularity is WEEKLY, the endDate of the extended reporting date range is endDate of the cohort plus endOffset * 7 days.

If granularity is MONTHLY, the endDate of the extended reporting date range is endDate of the cohort plus endOffset * 30 days.

int32 end_offset = 3;

Returns
Type Description
CohortsRange.Builder

This builder for chaining.

clearGranularity()

public CohortsRange.Builder clearGranularity()

Required. The granularity used to interpret the startOffset and endOffset for the extended reporting date range for a cohort report.

.google.analytics.data.v1alpha.CohortsRange.Granularity granularity = 1;

Returns
Type Description
CohortsRange.Builder

This builder for chaining.

clearStartOffset()

public CohortsRange.Builder clearStartOffset()

startOffset specifies the start date of the extended reporting date range for a cohort report. startOffset is commonly set to 0 so that reports contain data from the acquisition of the cohort forward.

If granularity is DAILY, the startDate of the extended reporting date range is startDate of the cohort plus startOffset days.

If granularity is WEEKLY, the startDate of the extended reporting date range is startDate of the cohort plus startOffset * 7 days.

If granularity is MONTHLY, the startDate of the extended reporting date range is startDate of the cohort plus startOffset * 30 days.

int32 start_offset = 2;

Returns
Type Description
CohortsRange.Builder

This builder for chaining.

getDefaultInstanceForType()

public CohortsRange getDefaultInstanceForType()
Returns
Type Description
CohortsRange

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEndOffset()

public int getEndOffset()

Required. endOffset specifies the end date of the extended reporting date range for a cohort report. endOffset can be any positive integer but is commonly set to 5 to 10 so that reports contain data on the cohort for the next several granularity time periods.

If granularity is DAILY, the endDate of the extended reporting date range is endDate of the cohort plus endOffset days.

If granularity is WEEKLY, the endDate of the extended reporting date range is endDate of the cohort plus endOffset * 7 days.

If granularity is MONTHLY, the endDate of the extended reporting date range is endDate of the cohort plus endOffset * 30 days.

int32 end_offset = 3;

Returns
Type Description
int

The endOffset.

getGranularity()

public CohortsRange.Granularity getGranularity()

Required. The granularity used to interpret the startOffset and endOffset for the extended reporting date range for a cohort report.

.google.analytics.data.v1alpha.CohortsRange.Granularity granularity = 1;

Returns
Type Description
CohortsRange.Granularity

The granularity.

getGranularityValue()

public int getGranularityValue()

Required. The granularity used to interpret the startOffset and endOffset for the extended reporting date range for a cohort report.

.google.analytics.data.v1alpha.CohortsRange.Granularity granularity = 1;

Returns
Type Description
int

The enum numeric value on the wire for granularity.

getStartOffset()

public int getStartOffset()

startOffset specifies the start date of the extended reporting date range for a cohort report. startOffset is commonly set to 0 so that reports contain data from the acquisition of the cohort forward.

If granularity is DAILY, the startDate of the extended reporting date range is startDate of the cohort plus startOffset days.

If granularity is WEEKLY, the startDate of the extended reporting date range is startDate of the cohort plus startOffset * 7 days.

If granularity is MONTHLY, the startDate of the extended reporting date range is startDate of the cohort plus startOffset * 30 days.

int32 start_offset = 2;

Returns
Type Description
int

The startOffset.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CohortsRange other)

public CohortsRange.Builder mergeFrom(CohortsRange other)
Parameter
Name Description
other CohortsRange
Returns
Type Description
CohortsRange.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CohortsRange.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CohortsRange.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CohortsRange.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CohortsRange.Builder
Overrides

setEndOffset(int value)

public CohortsRange.Builder setEndOffset(int value)

Required. endOffset specifies the end date of the extended reporting date range for a cohort report. endOffset can be any positive integer but is commonly set to 5 to 10 so that reports contain data on the cohort for the next several granularity time periods.

If granularity is DAILY, the endDate of the extended reporting date range is endDate of the cohort plus endOffset days.

If granularity is WEEKLY, the endDate of the extended reporting date range is endDate of the cohort plus endOffset * 7 days.

If granularity is MONTHLY, the endDate of the extended reporting date range is endDate of the cohort plus endOffset * 30 days.

int32 end_offset = 3;

Parameter
Name Description
value int

The endOffset to set.

Returns
Type Description
CohortsRange.Builder

This builder for chaining.

setGranularity(CohortsRange.Granularity value)

public CohortsRange.Builder setGranularity(CohortsRange.Granularity value)

Required. The granularity used to interpret the startOffset and endOffset for the extended reporting date range for a cohort report.

.google.analytics.data.v1alpha.CohortsRange.Granularity granularity = 1;

Parameter
Name Description
value CohortsRange.Granularity

The granularity to set.

Returns
Type Description
CohortsRange.Builder

This builder for chaining.

setGranularityValue(int value)

public CohortsRange.Builder setGranularityValue(int value)

Required. The granularity used to interpret the startOffset and endOffset for the extended reporting date range for a cohort report.

.google.analytics.data.v1alpha.CohortsRange.Granularity granularity = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for granularity to set.

Returns
Type Description
CohortsRange.Builder

This builder for chaining.

setStartOffset(int value)

public CohortsRange.Builder setStartOffset(int value)

startOffset specifies the start date of the extended reporting date range for a cohort report. startOffset is commonly set to 0 so that reports contain data from the acquisition of the cohort forward.

If granularity is DAILY, the startDate of the extended reporting date range is startDate of the cohort plus startOffset days.

If granularity is WEEKLY, the startDate of the extended reporting date range is startDate of the cohort plus startOffset * 7 days.

If granularity is MONTHLY, the startDate of the extended reporting date range is startDate of the cohort plus startOffset * 30 days.

int32 start_offset = 2;

Parameter
Name Description
value int

The startOffset to set.

Returns
Type Description
CohortsRange.Builder

This builder for chaining.