Package io.envoyproxy.envoy.type.v3
Enum RateLimitUnit
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<RateLimitUnit>
public enum RateLimitUnit
extends Enum<RateLimitUnit>
implements com.google.protobuf.ProtocolMessageEnum
Identifies the unit of of time for rate limit.Protobuf enum
envoy.type.v3.RateLimitUnit
-
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 year. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The time unit representing a day.static final int
The time unit representing an hour.private static final com.google.protobuf.Internal.EnumLiteMap
<RateLimitUnit> static final int
The time unit representing a minute.static final int
The time unit representing a month.static final int
The time unit representing a second.static final int
The time unit is not known.private final int
private static final RateLimitUnit[]
static final int
The time unit representing a year. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RateLimitUnit
forNumber
(int value) static final com.google.protobuf.Descriptors.EnumDescriptor
final com.google.protobuf.Descriptors.EnumDescriptor
final int
final com.google.protobuf.Descriptors.EnumValueDescriptor
static com.google.protobuf.Internal.EnumLiteMap
<RateLimitUnit> static RateLimitUnit
valueOf
(int value) Deprecated.static RateLimitUnit
valueOf
(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static RateLimitUnit
Returns the enum constant of this type with the specified name.static RateLimitUnit[]
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;
-
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:
-
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:
-
internalValueMap
-
VALUES
-
value
private final int value
-
-
Constructor Details
-
RateLimitUnit
private RateLimitUnit(int value)
-
-
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:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in 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
-
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
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
-