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 and Description |
|---|
DAY
The time unit representing a day.
|
HOUR
The time unit representing an hour.
|
MINUTE
The time unit representing a minute.
|
SECOND
The time unit representing a second.
|
UNKNOWN
The time unit is not known.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
DAY_VALUE
The time unit representing a day.
|
static int |
HOUR_VALUE
The time unit representing an hour.
|
static int |
MINUTE_VALUE
The time unit representing a minute.
|
static int |
SECOND_VALUE
The time unit representing a second.
|
static int |
UNKNOWN_VALUE
The time unit is not known.
|
| Modifier and Type | Method and Description |
|---|---|
static RateLimitUnit |
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<RateLimitUnit> |
internalGetValueMap() |
static RateLimitUnit |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static RateLimitUnit |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static RateLimitUnit |
valueOf(String name)
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.
|
public static final RateLimitUnit UNKNOWN
The time unit is not known.
UNKNOWN = 0;public static final RateLimitUnit SECOND
The time unit representing a second.
SECOND = 1;public static final RateLimitUnit MINUTE
The time unit representing a minute.
MINUTE = 2;public static final RateLimitUnit HOUR
The time unit representing an hour.
HOUR = 3;public static final RateLimitUnit DAY
The time unit representing a day.
DAY = 4;public static final RateLimitUnit UNRECOGNIZED
public static final int UNKNOWN_VALUE
The time unit is not known.
UNKNOWN = 0;public static final int SECOND_VALUE
The time unit representing a second.
SECOND = 1;public static final int MINUTE_VALUE
The time unit representing a minute.
MINUTE = 2;public static final int HOUR_VALUE
The time unit representing an hour.
HOUR = 3;public static final int DAY_VALUE
The time unit representing a day.
DAY = 4;public static RateLimitUnit[] values()
for (RateLimitUnit c : RateLimitUnit.values()) System.out.println(c);
public static RateLimitUnit valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static RateLimitUnit valueOf(int value)
forNumber(int) instead.public static RateLimitUnit forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<RateLimitUnit> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static RateLimitUnit valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2018–2021 The Envoy Project. All rights reserved.