Enum RateLimitResponse.RateLimit.Unit
java.lang.Object
java.lang.Enum<RateLimitResponse.RateLimit.Unit>
io.envoyproxy.envoy.service.ratelimit.v3.RateLimitResponse.RateLimit.Unit
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<RateLimitResponse.RateLimit.Unit>,java.lang.constant.Constable
- Enclosing class:
- RateLimitResponse.RateLimit
public static enum RateLimitResponse.RateLimit.Unit
extends Enum<RateLimitResponse.RateLimit.Unit>
implements com.google.protobuf.ProtocolMessageEnum
Identifies the unit of of time for rate limit. [#comment: replace by envoy/type/v3/ratelimit_unit.proto in v4]Protobuf enum
envoy.service.ratelimit.v3.RateLimitResponse.RateLimit.Unit-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe time unit representing a day.The time unit representing an hour.The time unit representing a minute.The time unit representing a month.The time unit representing a second.The time unit is not known.The time unit representing a week.The time unit representing a year. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe time unit representing a day.static final intThe time unit representing an hour.static final intThe time unit representing a minute.static final intThe time unit representing a month.static final intThe time unit representing a second.static final intThe time unit is not known.static final intThe time unit representing a week.static final intThe time unit representing a year. -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static final com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<RateLimitResponse.RateLimit.Unit>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 RateLimitResponse.RateLimit.Unit[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
The time unit is not known.
UNKNOWN = 0; -
SECOND
The time unit representing a second.
SECOND = 1; -
MINUTE
The time unit representing a minute.
MINUTE = 2; -
HOUR
The time unit representing an hour.
HOUR = 3; -
DAY
The time unit representing a day.
DAY = 4; -
WEEK
The time unit representing a week.
WEEK = 7; -
MONTH
The time unit representing a month.
MONTH = 5; -
YEAR
The time unit representing a year.
YEAR = 6; -
UNRECOGNIZED
-
-
Field Details
-
UNKNOWN_VALUE
public static final int UNKNOWN_VALUEThe time unit is not known.
UNKNOWN = 0;- See Also:
-
SECOND_VALUE
public static final int SECOND_VALUEThe time unit representing a second.
SECOND = 1;- See Also:
-
MINUTE_VALUE
public static final int MINUTE_VALUEThe time unit representing a minute.
MINUTE = 2;- See Also:
-
HOUR_VALUE
public static final int HOUR_VALUEThe time unit representing an hour.
HOUR = 3;- See Also:
-
DAY_VALUE
public static final int DAY_VALUEThe time unit representing a day.
DAY = 4;- See Also:
-
WEEK_VALUE
public static final int WEEK_VALUEThe time unit representing a week.
WEEK = 7;- See Also:
-
MONTH_VALUE
public static final int MONTH_VALUEThe time unit representing a month.
MONTH = 5;- See Also:
-
YEAR_VALUE
public static final int YEAR_VALUEThe time unit representing a year.
YEAR = 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<RateLimitResponse.RateLimit.Unit> 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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static RateLimitResponse.RateLimit.Unit 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
-