public static enum QueryMetricsRequest.TimeGranularity extends Enum<QueryMetricsRequest.TimeGranularity> implements com.google.protobuf.ProtocolMessageEnum
A time granularity divides the time line into discrete time periods. This is useful for defining buckets over which filtering and aggregation should be performed.Protobuf enum
google.cloud.contactcenterinsights.v1.QueryMetricsRequest.TimeGranularity| Enum Constant and Description |
|---|
DAILY
Data points in the time series will aggregate at a daily granularity.
1 day means [midnight to midnight).
|
HOURLY
Data points in the time series will aggregate at a daily granularity.
1 HOUR means [01:00 to 02:00).
|
MONTHLY
Data points in the time series will aggregate at a monthly granularity.
1 MONTH means [01st of the month to 1st of the next month).
|
NONE
No time granularity.
|
PER_5_MINUTES
Data points in the time series will aggregate at a 1 minute granularity.
|
PER_MINUTE
Data points in the time series will aggregate at a daily granularity.
|
TIME_GRANULARITY_UNSPECIFIED
The time granularity is unspecified and will default to NONE.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
DAILY_VALUE
Data points in the time series will aggregate at a daily granularity.
1 day means [midnight to midnight).
|
static int |
HOURLY_VALUE
Data points in the time series will aggregate at a daily granularity.
1 HOUR means [01:00 to 02:00).
|
static int |
MONTHLY_VALUE
Data points in the time series will aggregate at a monthly granularity.
1 MONTH means [01st of the month to 1st of the next month).
|
static int |
NONE_VALUE
No time granularity.
|
static int |
PER_5_MINUTES_VALUE
Data points in the time series will aggregate at a 1 minute granularity.
|
static int |
PER_MINUTE_VALUE
Data points in the time series will aggregate at a daily granularity.
|
static int |
TIME_GRANULARITY_UNSPECIFIED_VALUE
The time granularity is unspecified and will default to NONE.
|
| Modifier and Type | Method and Description |
|---|---|
static QueryMetricsRequest.TimeGranularity |
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<QueryMetricsRequest.TimeGranularity> |
internalGetValueMap() |
static QueryMetricsRequest.TimeGranularity |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static QueryMetricsRequest.TimeGranularity |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static QueryMetricsRequest.TimeGranularity |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static QueryMetricsRequest.TimeGranularity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final QueryMetricsRequest.TimeGranularity TIME_GRANULARITY_UNSPECIFIED
The time granularity is unspecified and will default to NONE.
TIME_GRANULARITY_UNSPECIFIED = 0;public static final QueryMetricsRequest.TimeGranularity NONE
No time granularity. The response won't contain a time series. This is the default value if no time granularity is specified.
NONE = 1;public static final QueryMetricsRequest.TimeGranularity DAILY
Data points in the time series will aggregate at a daily granularity. 1 day means [midnight to midnight).
DAILY = 2;public static final QueryMetricsRequest.TimeGranularity HOURLY
Data points in the time series will aggregate at a daily granularity. 1 HOUR means [01:00 to 02:00).
HOURLY = 3;public static final QueryMetricsRequest.TimeGranularity PER_MINUTE
Data points in the time series will aggregate at a daily granularity. PER_MINUTE means [01:00 to 01:01).
PER_MINUTE = 4;public static final QueryMetricsRequest.TimeGranularity PER_5_MINUTES
Data points in the time series will aggregate at a 1 minute granularity. PER_5_MINUTES means [01:00 to 01:05).
PER_5_MINUTES = 5;public static final QueryMetricsRequest.TimeGranularity MONTHLY
Data points in the time series will aggregate at a monthly granularity. 1 MONTH means [01st of the month to 1st of the next month).
MONTHLY = 6;public static final QueryMetricsRequest.TimeGranularity UNRECOGNIZED
public static final int TIME_GRANULARITY_UNSPECIFIED_VALUE
The time granularity is unspecified and will default to NONE.
TIME_GRANULARITY_UNSPECIFIED = 0;public static final int NONE_VALUE
No time granularity. The response won't contain a time series. This is the default value if no time granularity is specified.
NONE = 1;public static final int DAILY_VALUE
Data points in the time series will aggregate at a daily granularity. 1 day means [midnight to midnight).
DAILY = 2;public static final int HOURLY_VALUE
Data points in the time series will aggregate at a daily granularity. 1 HOUR means [01:00 to 02:00).
HOURLY = 3;public static final int PER_MINUTE_VALUE
Data points in the time series will aggregate at a daily granularity. PER_MINUTE means [01:00 to 01:01).
PER_MINUTE = 4;public static final int PER_5_MINUTES_VALUE
Data points in the time series will aggregate at a 1 minute granularity. PER_5_MINUTES means [01:00 to 01:05).
PER_5_MINUTES = 5;public static final int MONTHLY_VALUE
Data points in the time series will aggregate at a monthly granularity. 1 MONTH means [01st of the month to 1st of the next month).
MONTHLY = 6;public static QueryMetricsRequest.TimeGranularity[] values()
for (QueryMetricsRequest.TimeGranularity c : QueryMetricsRequest.TimeGranularity.values()) System.out.println(c);
public static QueryMetricsRequest.TimeGranularity 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 QueryMetricsRequest.TimeGranularity valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static QueryMetricsRequest.TimeGranularity forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<QueryMetricsRequest.TimeGranularity> 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 QueryMetricsRequest.TimeGranularity valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025 Google LLC. All rights reserved.