public static enum RateLimit.XRateLimitHeadersRFCVersion extends Enum<RateLimit.XRateLimitHeadersRFCVersion> implements com.google.protobuf.ProtocolMessageEnum
Defines the version of the standard to use for X-RateLimit headers.Protobuf enum
envoy.extensions.filters.http.ratelimit.v4alpha.RateLimit.XRateLimitHeadersRFCVersion| Enum Constant and Description |
|---|
DRAFT_VERSION_03
Use `draft RFC Version 03 <https://tools.ietf.org/id/draft-polli-ratelimit-headers-03.html>`_.
|
OFF
X-RateLimit headers disabled.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
DRAFT_VERSION_03_VALUE
Use `draft RFC Version 03 <https://tools.ietf.org/id/draft-polli-ratelimit-headers-03.html>`_.
|
static int |
OFF_VALUE
X-RateLimit headers disabled.
|
| Modifier and Type | Method and Description |
|---|---|
static RateLimit.XRateLimitHeadersRFCVersion |
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<RateLimit.XRateLimitHeadersRFCVersion> |
internalGetValueMap() |
static RateLimit.XRateLimitHeadersRFCVersion |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static RateLimit.XRateLimitHeadersRFCVersion |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static RateLimit.XRateLimitHeadersRFCVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RateLimit.XRateLimitHeadersRFCVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RateLimit.XRateLimitHeadersRFCVersion OFF
X-RateLimit headers disabled.
OFF = 0;public static final RateLimit.XRateLimitHeadersRFCVersion DRAFT_VERSION_03
Use `draft RFC Version 03 <https://tools.ietf.org/id/draft-polli-ratelimit-headers-03.html>`_.
DRAFT_VERSION_03 = 1;public static final RateLimit.XRateLimitHeadersRFCVersion UNRECOGNIZED
public static final int OFF_VALUE
X-RateLimit headers disabled.
OFF = 0;public static final int DRAFT_VERSION_03_VALUE
Use `draft RFC Version 03 <https://tools.ietf.org/id/draft-polli-ratelimit-headers-03.html>`_.
DRAFT_VERSION_03 = 1;public static RateLimit.XRateLimitHeadersRFCVersion[] values()
for (RateLimit.XRateLimitHeadersRFCVersion c : RateLimit.XRateLimitHeadersRFCVersion.values()) System.out.println(c);
public static RateLimit.XRateLimitHeadersRFCVersion 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 RateLimit.XRateLimitHeadersRFCVersion valueOf(int value)
forNumber(int) instead.public static RateLimit.XRateLimitHeadersRFCVersion forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<RateLimit.XRateLimitHeadersRFCVersion> 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 RateLimit.XRateLimitHeadersRFCVersion valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2018–2021 The Envoy Project. All rights reserved.