public static enum CohortsRange.Granularity extends Enum<CohortsRange.Granularity> implements com.google.protobuf.ProtocolMessageEnum
The granularity used to interpret the `startOffset` and `endOffset` for the extended reporting date range for a cohort report.Protobuf enum
google.analytics.data.v1beta.CohortsRange.Granularity| Enum Constant and Description |
|---|
DAILY
Daily granularity.
|
GRANULARITY_UNSPECIFIED
Should never be specified.
|
MONTHLY
Monthly granularity.
|
UNRECOGNIZED |
WEEKLY
Weekly granularity.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
DAILY_VALUE
Daily granularity.
|
static int |
GRANULARITY_UNSPECIFIED_VALUE
Should never be specified.
|
static int |
MONTHLY_VALUE
Monthly granularity.
|
static int |
WEEKLY_VALUE
Weekly granularity.
|
| Modifier and Type | Method and Description |
|---|---|
static CohortsRange.Granularity |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<CohortsRange.Granularity> |
internalGetValueMap() |
static CohortsRange.Granularity |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static CohortsRange.Granularity |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static CohortsRange.Granularity |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CohortsRange.Granularity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CohortsRange.Granularity GRANULARITY_UNSPECIFIED
Should never be specified.
GRANULARITY_UNSPECIFIED = 0;public static final CohortsRange.Granularity DAILY
Daily granularity. Commonly used if the cohort's `dateRange` is a single day and the request contains `cohortNthDay`.
DAILY = 1;public static final CohortsRange.Granularity WEEKLY
Weekly granularity. Commonly used if the cohort's `dateRange` is a week in duration (starting on Sunday and ending on Saturday) and the request contains `cohortNthWeek`.
WEEKLY = 2;public static final CohortsRange.Granularity MONTHLY
Monthly granularity. Commonly used if the cohort's `dateRange` is a month in duration and the request contains `cohortNthMonth`.
MONTHLY = 3;public static final CohortsRange.Granularity UNRECOGNIZED
public static final int GRANULARITY_UNSPECIFIED_VALUE
Should never be specified.
GRANULARITY_UNSPECIFIED = 0;public static final int DAILY_VALUE
Daily granularity. Commonly used if the cohort's `dateRange` is a single day and the request contains `cohortNthDay`.
DAILY = 1;public static final int WEEKLY_VALUE
Weekly granularity. Commonly used if the cohort's `dateRange` is a week in duration (starting on Sunday and ending on Saturday) and the request contains `cohortNthWeek`.
WEEKLY = 2;public static final int MONTHLY_VALUE
Monthly granularity. Commonly used if the cohort's `dateRange` is a month in duration and the request contains `cohortNthMonth`.
MONTHLY = 3;public static CohortsRange.Granularity[] values()
for (CohortsRange.Granularity c : CohortsRange.Granularity.values()) System.out.println(c);
public static CohortsRange.Granularity valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static CohortsRange.Granularity valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static CohortsRange.Granularity forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<CohortsRange.Granularity> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static CohortsRange.Granularity valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.