Enum QueryTimeRange.Period
- java.lang.Object
-
- java.lang.Enum<QueryTimeRange.Period>
-
- com.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.Period
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<QueryTimeRange.Period>
- Enclosing class:
- QueryTimeRange
public static enum QueryTimeRange.Period extends Enum<QueryTimeRange.Period> implements com.google.protobuf.ProtocolMessageEnum
The supported time ranges.
Protobuf enumgoogle.devtools.clouderrorreporting.v1beta1.QueryTimeRange.Period
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PERIOD_1_DAY
Retrieve data for the last day.PERIOD_1_HOUR
Retrieve data for the last hour.PERIOD_1_WEEK
Retrieve data for the last week.PERIOD_30_DAYS
Retrieve data for the last 30 days.PERIOD_6_HOURS
Retrieve data for the last 6 hours.PERIOD_UNSPECIFIED
Do not use.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static int
PERIOD_1_DAY_VALUE
Retrieve data for the last day.static int
PERIOD_1_HOUR_VALUE
Retrieve data for the last hour.static int
PERIOD_1_WEEK_VALUE
Retrieve data for the last week.static int
PERIOD_30_DAYS_VALUE
Retrieve data for the last 30 days.static int
PERIOD_6_HOURS_VALUE
Retrieve data for the last 6 hours.static int
PERIOD_UNSPECIFIED_VALUE
Do not use.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static QueryTimeRange.Period
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<QueryTimeRange.Period>
internalGetValueMap()
static QueryTimeRange.Period
valueOf(int value)
Deprecated.static QueryTimeRange.Period
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static QueryTimeRange.Period
valueOf(String name)
Returns the enum constant of this type with the specified name.static QueryTimeRange.Period[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PERIOD_UNSPECIFIED
public static final QueryTimeRange.Period PERIOD_UNSPECIFIED
Do not use.
PERIOD_UNSPECIFIED = 0;
-
PERIOD_1_HOUR
public static final QueryTimeRange.Period PERIOD_1_HOUR
Retrieve data for the last hour. Recommended minimum timed count duration: 1 min.
PERIOD_1_HOUR = 1;
-
PERIOD_6_HOURS
public static final QueryTimeRange.Period PERIOD_6_HOURS
Retrieve data for the last 6 hours. Recommended minimum timed count duration: 10 min.
PERIOD_6_HOURS = 2;
-
PERIOD_1_DAY
public static final QueryTimeRange.Period PERIOD_1_DAY
Retrieve data for the last day. Recommended minimum timed count duration: 1 hour.
PERIOD_1_DAY = 3;
-
PERIOD_1_WEEK
public static final QueryTimeRange.Period PERIOD_1_WEEK
Retrieve data for the last week. Recommended minimum timed count duration: 6 hours.
PERIOD_1_WEEK = 4;
-
PERIOD_30_DAYS
public static final QueryTimeRange.Period PERIOD_30_DAYS
Retrieve data for the last 30 days. Recommended minimum timed count duration: 1 day.
PERIOD_30_DAYS = 5;
-
UNRECOGNIZED
public static final QueryTimeRange.Period UNRECOGNIZED
-
-
Field Detail
-
PERIOD_UNSPECIFIED_VALUE
public static final int PERIOD_UNSPECIFIED_VALUE
Do not use.
PERIOD_UNSPECIFIED = 0;
- See Also:
- Constant Field Values
-
PERIOD_1_HOUR_VALUE
public static final int PERIOD_1_HOUR_VALUE
Retrieve data for the last hour. Recommended minimum timed count duration: 1 min.
PERIOD_1_HOUR = 1;
- See Also:
- Constant Field Values
-
PERIOD_6_HOURS_VALUE
public static final int PERIOD_6_HOURS_VALUE
Retrieve data for the last 6 hours. Recommended minimum timed count duration: 10 min.
PERIOD_6_HOURS = 2;
- See Also:
- Constant Field Values
-
PERIOD_1_DAY_VALUE
public static final int PERIOD_1_DAY_VALUE
Retrieve data for the last day. Recommended minimum timed count duration: 1 hour.
PERIOD_1_DAY = 3;
- See Also:
- Constant Field Values
-
PERIOD_1_WEEK_VALUE
public static final int PERIOD_1_WEEK_VALUE
Retrieve data for the last week. Recommended minimum timed count duration: 6 hours.
PERIOD_1_WEEK = 4;
- See Also:
- Constant Field Values
-
PERIOD_30_DAYS_VALUE
public static final int PERIOD_30_DAYS_VALUE
Retrieve data for the last 30 days. Recommended minimum timed count duration: 1 day.
PERIOD_30_DAYS = 5;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static QueryTimeRange.Period[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (QueryTimeRange.Period c : QueryTimeRange.Period.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static QueryTimeRange.Period 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 nameNullPointerException
- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static QueryTimeRange.Period 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 nameNullPointerException
- if the argument is null
-
forNumber
public static QueryTimeRange.Period 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<QueryTimeRange.Period> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static QueryTimeRange.Period 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
-
-