Class CohortsRange.Builder (0.26.0)

public static final class CohortsRange.Builder extends GeneratedMessageV3.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.v1beta.CohortsRange

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CohortsRange.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CohortsRange.Builder
Overrides

build()

public CohortsRange build()
Returns
TypeDescription
CohortsRange

buildPartial()

public CohortsRange buildPartial()
Returns
TypeDescription
CohortsRange

clear()

public CohortsRange.Builder clear()
Returns
TypeDescription
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
TypeDescription
CohortsRange.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public CohortsRange.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CohortsRange.Builder
Overrides

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.v1beta.CohortsRange.Granularity granularity = 1;

Returns
TypeDescription
CohortsRange.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CohortsRange.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CohortsRange.Builder
Overrides

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
TypeDescription
CohortsRange.Builder

This builder for chaining.

clone()

public CohortsRange.Builder clone()
Returns
TypeDescription
CohortsRange.Builder
Overrides

getDefaultInstanceForType()

public CohortsRange getDefaultInstanceForType()
Returns
TypeDescription
CohortsRange

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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.v1beta.CohortsRange.Granularity granularity = 1;

Returns
TypeDescription
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.v1beta.CohortsRange.Granularity granularity = 1;

Returns
TypeDescription
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
TypeDescription
int

The startOffset.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CohortsRange other)

public CohortsRange.Builder mergeFrom(CohortsRange other)
Parameter
NameDescription
otherCohortsRange
Returns
TypeDescription
CohortsRange.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CohortsRange.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CohortsRange.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CohortsRange.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CohortsRange.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CohortsRange.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueint

The endOffset to set.

Returns
TypeDescription
CohortsRange.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public CohortsRange.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CohortsRange.Builder
Overrides

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.v1beta.CohortsRange.Granularity granularity = 1;

Parameter
NameDescription
valueCohortsRange.Granularity

The granularity to set.

Returns
TypeDescription
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.v1beta.CohortsRange.Granularity granularity = 1;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
CohortsRange.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CohortsRange.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CohortsRange.Builder
Overrides

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
NameDescription
valueint

The startOffset to set.

Returns
TypeDescription
CohortsRange.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final CohortsRange.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CohortsRange.Builder
Overrides