Enum QueryMetricsRequest.TimeGranularity
java.lang.Object
java.lang.Enum<QueryMetricsRequest.TimeGranularity>
com.google.cloud.contactcenterinsights.v1.QueryMetricsRequest.TimeGranularity
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<QueryMetricsRequest.TimeGranularity>
- Enclosing class:
- QueryMetricsRequest
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 Summary
Enum ConstantsEnum ConstantDescriptionData points in the time series will aggregate at a daily granularity. 1 day means [midnight to midnight).Data points in the time series will aggregate at a daily granularity. 1 HOUR means [01:00 to 02:00).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).No time granularity.Data points in the time series will aggregate at a 1 minute granularity.Data points in the time series will aggregate at a daily granularity.The time granularity is unspecified and will default to NONE. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intData points in the time series will aggregate at a daily granularity. 1 day means [midnight to midnight).static final intData points in the time series will aggregate at a daily granularity. 1 HOUR means [01:00 to 02:00).static final intData 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 final intNo time granularity.static final intData points in the time series will aggregate at a 1 minute granularity.static final intData points in the time series will aggregate at a daily granularity.static final intThe time granularity is unspecified and will default to NONE. -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<QueryMetricsRequest.TimeGranularity>valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified 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.
-
Enum Constant Details
-
TIME_GRANULARITY_UNSPECIFIED
The time granularity is unspecified and will default to NONE.
TIME_GRANULARITY_UNSPECIFIED = 0; -
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; -
DAILY
Data points in the time series will aggregate at a daily granularity. 1 day means [midnight to midnight).
DAILY = 2; -
HOURLY
Data points in the time series will aggregate at a daily granularity. 1 HOUR means [01:00 to 02:00).
HOURLY = 3; -
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; -
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; -
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; -
UNRECOGNIZED
-
-
Field Details
-
TIME_GRANULARITY_UNSPECIFIED_VALUE
public static final int TIME_GRANULARITY_UNSPECIFIED_VALUEThe time granularity is unspecified and will default to NONE.
TIME_GRANULARITY_UNSPECIFIED = 0;- See Also:
-
NONE_VALUE
public static final int NONE_VALUENo time granularity. The response won't contain a time series. This is the default value if no time granularity is specified.
NONE = 1;- See Also:
-
DAILY_VALUE
public static final int DAILY_VALUEData points in the time series will aggregate at a daily granularity. 1 day means [midnight to midnight).
DAILY = 2;- See Also:
-
HOURLY_VALUE
public static final int HOURLY_VALUEData points in the time series will aggregate at a daily granularity. 1 HOUR means [01:00 to 02:00).
HOURLY = 3;- See Also:
-
PER_MINUTE_VALUE
public static final int PER_MINUTE_VALUEData points in the time series will aggregate at a daily granularity. PER_MINUTE means [01:00 to 01:01).
PER_MINUTE = 4;- See Also:
-
PER_5_MINUTES_VALUE
public static final int PER_5_MINUTES_VALUEData 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;- See Also:
-
MONTHLY_VALUE
public static final int MONTHLY_VALUEData 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;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<QueryMetricsRequest.TimeGranularity> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static QueryMetricsRequest.TimeGranularity valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-