public static enum RateLimitResponse.Code extends Enum<RateLimitResponse.Code> implements com.google.protobuf.ProtocolMessageEnum
envoy.service.ratelimit.v3.RateLimitResponse.Code| Enum Constant and Description |
|---|
OK
The response code to notify that the number of requests are under limit.
|
OVER_LIMIT
The response code to notify that the number of requests are over limit.
|
UNKNOWN
The response code is not known.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
OK_VALUE
The response code to notify that the number of requests are under limit.
|
static int |
OVER_LIMIT_VALUE
The response code to notify that the number of requests are over limit.
|
static int |
UNKNOWN_VALUE
The response code is not known.
|
| Modifier and Type | Method and Description |
|---|---|
static RateLimitResponse.Code |
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<RateLimitResponse.Code> |
internalGetValueMap() |
static RateLimitResponse.Code |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static RateLimitResponse.Code |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static RateLimitResponse.Code |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RateLimitResponse.Code[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RateLimitResponse.Code UNKNOWN
The response code is not known.
UNKNOWN = 0;public static final RateLimitResponse.Code OK
The response code to notify that the number of requests are under limit.
OK = 1;public static final RateLimitResponse.Code OVER_LIMIT
The response code to notify that the number of requests are over limit.
OVER_LIMIT = 2;public static final RateLimitResponse.Code UNRECOGNIZED
public static final int UNKNOWN_VALUE
The response code is not known.
UNKNOWN = 0;public static final int OK_VALUE
The response code to notify that the number of requests are under limit.
OK = 1;public static final int OVER_LIMIT_VALUE
The response code to notify that the number of requests are over limit.
OVER_LIMIT = 2;public static RateLimitResponse.Code[] values()
for (RateLimitResponse.Code c : RateLimitResponse.Code.values()) System.out.println(c);
public static RateLimitResponse.Code 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 RateLimitResponse.Code valueOf(int value)
forNumber(int) instead.public static RateLimitResponse.Code forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<RateLimitResponse.Code> 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 RateLimitResponse.Code valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2018–2021 The Envoy Project. All rights reserved.