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 Details

    • TIME_GRANULARITY_UNSPECIFIED

      public static final QueryMetricsRequest.TimeGranularity TIME_GRANULARITY_UNSPECIFIED
       The time granularity is unspecified and will default to NONE.
       
      TIME_GRANULARITY_UNSPECIFIED = 0;
    • NONE

      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;
    • DAILY

      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;
    • HOURLY

      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;
    • PER_MINUTE

      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;
    • PER_5_MINUTES

      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;
    • MONTHLY

      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;
    • UNRECOGNIZED

      public static final QueryMetricsRequest.TimeGranularity UNRECOGNIZED
  • Field Details

    • TIME_GRANULARITY_UNSPECIFIED_VALUE

      public static final int TIME_GRANULARITY_UNSPECIFIED_VALUE
       The time granularity is unspecified and will default to NONE.
       
      TIME_GRANULARITY_UNSPECIFIED = 0;
      See Also:
    • NONE_VALUE

      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;
      See Also:
    • DAILY_VALUE

      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;
      See Also:
    • HOURLY_VALUE

      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;
      See Also:
    • PER_MINUTE_VALUE

      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;
      See Also:
    • PER_5_MINUTES_VALUE

      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;
      See Also:
    • MONTHLY_VALUE

      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;
      See Also:
  • Method Details

    • values

      public static QueryMetricsRequest.TimeGranularity[] 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

      public static QueryMetricsRequest.TimeGranularity valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static QueryMetricsRequest.TimeGranularity valueOf(int value)
      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 name
      NullPointerException - if the argument is null
    • forNumber

      public static QueryMetricsRequest.TimeGranularity forNumber(int value)
      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:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.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 name
      NullPointerException - if the argument is null