Class RateLimitQuotaFilterConfig
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessage
-
- io.envoyproxy.envoy.extensions.filters.http.rate_limit_quota.v3.RateLimitQuotaFilterConfig
-
- All Implemented Interfaces:
com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,RateLimitQuotaFilterConfigOrBuilder
,java.io.Serializable
public final class RateLimitQuotaFilterConfig extends com.google.protobuf.GeneratedMessage implements RateLimitQuotaFilterConfigOrBuilder
Configures the Rate Limit Quota filter. Can be overridden in the per-route and per-host configurations. The more specific definition completely overrides the less specific definition. [#next-free-field: 7]
Protobuf typeenvoy.extensions.filters.http.rate_limit_quota.v3.RateLimitQuotaFilterConfig
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RateLimitQuotaFilterConfig.Builder
Configures the Rate Limit Quota filter.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T extends java.lang.Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description private int
bitField0_
static int
BUCKET_MATCHERS_FIELD_NUMBER
private Matcher
bucketMatchers_
private static RateLimitQuotaFilterConfig
DEFAULT_INSTANCE
private java.lang.Object
domain_
static int
DOMAIN_FIELD_NUMBER
static int
FILTER_ENABLED_FIELD_NUMBER
static int
FILTER_ENFORCED_FIELD_NUMBER
private RuntimeFractionalPercent
filterEnabled_
private RuntimeFractionalPercent
filterEnforced_
private byte
memoizedIsInitialized
private static com.google.protobuf.Parser<RateLimitQuotaFilterConfig>
PARSER
static int
REQUEST_HEADERS_TO_ADD_WHEN_NOT_ENFORCED_FIELD_NUMBER
private java.util.List<HeaderValueOption>
requestHeadersToAddWhenNotEnforced_
static int
RLQS_SERVER_FIELD_NUMBER
private GrpcService
rlqsServer_
private static long
serialVersionUID
-
Constructor Summary
Constructors Modifier Constructor Description private
RateLimitQuotaFilterConfig()
private
RateLimitQuotaFilterConfig(com.google.protobuf.GeneratedMessage.Builder<?> builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
Matcher
getBucketMatchers()
The match tree to use for grouping incoming requests into buckets.MatcherOrBuilder
getBucketMatchersOrBuilder()
The match tree to use for grouping incoming requests into buckets.static RateLimitQuotaFilterConfig
getDefaultInstance()
RateLimitQuotaFilterConfig
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
java.lang.String
getDomain()
The application domain to use when calling the service.com.google.protobuf.ByteString
getDomainBytes()
The application domain to use when calling the service.RuntimeFractionalPercent
getFilterEnabled()
If set, this will enable -- but not necessarily enforce -- the rate limit for the given fraction of requests.RuntimeFractionalPercentOrBuilder
getFilterEnabledOrBuilder()
If set, this will enable -- but not necessarily enforce -- the rate limit for the given fraction of requests.RuntimeFractionalPercent
getFilterEnforced()
If set, this will enforce the rate limit decisions for the given fraction of requests.RuntimeFractionalPercentOrBuilder
getFilterEnforcedOrBuilder()
If set, this will enforce the rate limit decisions for the given fraction of requests.com.google.protobuf.Parser<RateLimitQuotaFilterConfig>
getParserForType()
HeaderValueOption
getRequestHeadersToAddWhenNotEnforced(int index)
Specifies a list of HTTP headers that should be added to each request that has been rate limited and is also forwarded upstream.int
getRequestHeadersToAddWhenNotEnforcedCount()
Specifies a list of HTTP headers that should be added to each request that has been rate limited and is also forwarded upstream.java.util.List<HeaderValueOption>
getRequestHeadersToAddWhenNotEnforcedList()
Specifies a list of HTTP headers that should be added to each request that has been rate limited and is also forwarded upstream.HeaderValueOptionOrBuilder
getRequestHeadersToAddWhenNotEnforcedOrBuilder(int index)
Specifies a list of HTTP headers that should be added to each request that has been rate limited and is also forwarded upstream.java.util.List<? extends HeaderValueOptionOrBuilder>
getRequestHeadersToAddWhenNotEnforcedOrBuilderList()
Specifies a list of HTTP headers that should be added to each request that has been rate limited and is also forwarded upstream.GrpcService
getRlqsServer()
Configures the gRPC Rate Limit Quota Service (RLQS) RateLimitQuotaService.GrpcServiceOrBuilder
getRlqsServerOrBuilder()
Configures the gRPC Rate Limit Quota Service (RLQS) RateLimitQuotaService.int
getSerializedSize()
boolean
hasBucketMatchers()
The match tree to use for grouping incoming requests into buckets.boolean
hasFilterEnabled()
If set, this will enable -- but not necessarily enforce -- the rate limit for the given fraction of requests.boolean
hasFilterEnforced()
If set, this will enforce the rate limit decisions for the given fraction of requests.int
hashCode()
boolean
hasRlqsServer()
Configures the gRPC Rate Limit Quota Service (RLQS) RateLimitQuotaService.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static RateLimitQuotaFilterConfig.Builder
newBuilder()
static RateLimitQuotaFilterConfig.Builder
newBuilder(RateLimitQuotaFilterConfig prototype)
RateLimitQuotaFilterConfig.Builder
newBuilderForType()
protected RateLimitQuotaFilterConfig.Builder
newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
static RateLimitQuotaFilterConfig
parseDelimitedFrom(java.io.InputStream input)
static RateLimitQuotaFilterConfig
parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static RateLimitQuotaFilterConfig
parseFrom(byte[] data)
static RateLimitQuotaFilterConfig
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static RateLimitQuotaFilterConfig
parseFrom(com.google.protobuf.ByteString data)
static RateLimitQuotaFilterConfig
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static RateLimitQuotaFilterConfig
parseFrom(com.google.protobuf.CodedInputStream input)
static RateLimitQuotaFilterConfig
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static RateLimitQuotaFilterConfig
parseFrom(java.io.InputStream input)
static RateLimitQuotaFilterConfig
parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static RateLimitQuotaFilterConfig
parseFrom(java.nio.ByteBuffer data)
static RateLimitQuotaFilterConfig
parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<RateLimitQuotaFilterConfig>
parser()
RateLimitQuotaFilterConfig.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
bitField0_
private int bitField0_
-
RLQS_SERVER_FIELD_NUMBER
public static final int RLQS_SERVER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
rlqsServer_
private GrpcService rlqsServer_
-
DOMAIN_FIELD_NUMBER
public static final int DOMAIN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
domain_
private volatile java.lang.Object domain_
-
BUCKET_MATCHERS_FIELD_NUMBER
public static final int BUCKET_MATCHERS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
bucketMatchers_
private Matcher bucketMatchers_
-
FILTER_ENABLED_FIELD_NUMBER
public static final int FILTER_ENABLED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
filterEnabled_
private RuntimeFractionalPercent filterEnabled_
-
FILTER_ENFORCED_FIELD_NUMBER
public static final int FILTER_ENFORCED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
filterEnforced_
private RuntimeFractionalPercent filterEnforced_
-
REQUEST_HEADERS_TO_ADD_WHEN_NOT_ENFORCED_FIELD_NUMBER
public static final int REQUEST_HEADERS_TO_ADD_WHEN_NOT_ENFORCED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
requestHeadersToAddWhenNotEnforced_
private java.util.List<HeaderValueOption> requestHeadersToAddWhenNotEnforced_
-
memoizedIsInitialized
private byte memoizedIsInitialized
-
DEFAULT_INSTANCE
private static final RateLimitQuotaFilterConfig DEFAULT_INSTANCE
-
PARSER
private static final com.google.protobuf.Parser<RateLimitQuotaFilterConfig> PARSER
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage
-
hasRlqsServer
public boolean hasRlqsServer()
Configures the gRPC Rate Limit Quota Service (RLQS) RateLimitQuotaService.
.envoy.config.core.v3.GrpcService rlqs_server = 1 [(.validate.rules) = { ... }
- Specified by:
hasRlqsServer
in interfaceRateLimitQuotaFilterConfigOrBuilder
- Returns:
- Whether the rlqsServer field is set.
-
getRlqsServer
public GrpcService getRlqsServer()
Configures the gRPC Rate Limit Quota Service (RLQS) RateLimitQuotaService.
.envoy.config.core.v3.GrpcService rlqs_server = 1 [(.validate.rules) = { ... }
- Specified by:
getRlqsServer
in interfaceRateLimitQuotaFilterConfigOrBuilder
- Returns:
- The rlqsServer.
-
getRlqsServerOrBuilder
public GrpcServiceOrBuilder getRlqsServerOrBuilder()
Configures the gRPC Rate Limit Quota Service (RLQS) RateLimitQuotaService.
.envoy.config.core.v3.GrpcService rlqs_server = 1 [(.validate.rules) = { ... }
- Specified by:
getRlqsServerOrBuilder
in interfaceRateLimitQuotaFilterConfigOrBuilder
-
getDomain
public java.lang.String getDomain()
The application domain to use when calling the service. This enables sharing the quota server between different applications without fear of overlap. E.g., "envoy".
string domain = 2 [(.validate.rules) = { ... }
- Specified by:
getDomain
in interfaceRateLimitQuotaFilterConfigOrBuilder
- Returns:
- The domain.
-
getDomainBytes
public com.google.protobuf.ByteString getDomainBytes()
The application domain to use when calling the service. This enables sharing the quota server between different applications without fear of overlap. E.g., "envoy".
string domain = 2 [(.validate.rules) = { ... }
- Specified by:
getDomainBytes
in interfaceRateLimitQuotaFilterConfigOrBuilder
- Returns:
- The bytes for domain.
-
hasBucketMatchers
public boolean hasBucketMatchers()
The match tree to use for grouping incoming requests into buckets. Example: .. validated-code-block:: yaml :type-name: xds.type.matcher.v3.Matcher matcher_list: matchers: # Assign requests with header['env'] set to 'staging' to the bucket { name: 'staging' } - predicate: single_predicate: input: typed_config: '@type': type.googleapis.com/envoy.type.matcher.v3.HttpRequestHeaderMatchInput header_name: env value_match: exact: staging on_match: action: typed_config: '@type': type.googleapis.com/envoy.extensions.filters.http.rate_limit_quota.v3.RateLimitQuotaBucketSettings bucket_id_builder: bucket_id_builder: name: string_value: staging # Assign requests with header['user_group'] set to 'admin' to the bucket { acl: 'admin_users' } - predicate: single_predicate: input: typed_config: '@type': type.googleapis.com/xds.type.matcher.v3.HttpAttributesCelMatchInput custom_match: typed_config: '@type': type.googleapis.com/xds.type.matcher.v3.CelMatcher expr_match: # Shortened for illustration purposes. Here should be parsed CEL expression: # request.headers['user_group'] == 'admin' parsed_expr: {} on_match: action: typed_config: '@type': type.googleapis.com/envoy.extensions.filters.http.rate_limit_quota.v3.RateLimitQuotaBucketSettings bucket_id_builder: bucket_id_builder: acl: string_value: admin_users # Catch-all clause for the requests not matched by any of the matchers. # In this example, deny all requests. on_no_match: action: typed_config: '@type': type.googleapis.com/envoy.extensions.filters.http.rate_limit_quota.v3.RateLimitQuotaBucketSettings no_assignment_behavior: fallback_rate_limit: blanket_rule: DENY_ALL .. attention:: The first matched group wins. Once the request is matched into a bucket, matcher evaluation ends. Use ``on_no_match`` field to assign the catch-all bucket. If a request is not matched into any bucket, and there's no ``on_no_match`` field configured, the request will be ALLOWED by default. It will NOT be reported to the RLQS server. Refer to :ref:`Unified Matcher API <envoy_v3_api_msg_.xds.type.matcher.v3.Matcher>` documentation for more information on the matcher trees.
.xds.type.matcher.v3.Matcher bucket_matchers = 3 [(.validate.rules) = { ... }
- Specified by:
hasBucketMatchers
in interfaceRateLimitQuotaFilterConfigOrBuilder
- Returns:
- Whether the bucketMatchers field is set.
-
getBucketMatchers
public Matcher getBucketMatchers()
The match tree to use for grouping incoming requests into buckets. Example: .. validated-code-block:: yaml :type-name: xds.type.matcher.v3.Matcher matcher_list: matchers: # Assign requests with header['env'] set to 'staging' to the bucket { name: 'staging' } - predicate: single_predicate: input: typed_config: '@type': type.googleapis.com/envoy.type.matcher.v3.HttpRequestHeaderMatchInput header_name: env value_match: exact: staging on_match: action: typed_config: '@type': type.googleapis.com/envoy.extensions.filters.http.rate_limit_quota.v3.RateLimitQuotaBucketSettings bucket_id_builder: bucket_id_builder: name: string_value: staging # Assign requests with header['user_group'] set to 'admin' to the bucket { acl: 'admin_users' } - predicate: single_predicate: input: typed_config: '@type': type.googleapis.com/xds.type.matcher.v3.HttpAttributesCelMatchInput custom_match: typed_config: '@type': type.googleapis.com/xds.type.matcher.v3.CelMatcher expr_match: # Shortened for illustration purposes. Here should be parsed CEL expression: # request.headers['user_group'] == 'admin' parsed_expr: {} on_match: action: typed_config: '@type': type.googleapis.com/envoy.extensions.filters.http.rate_limit_quota.v3.RateLimitQuotaBucketSettings bucket_id_builder: bucket_id_builder: acl: string_value: admin_users # Catch-all clause for the requests not matched by any of the matchers. # In this example, deny all requests. on_no_match: action: typed_config: '@type': type.googleapis.com/envoy.extensions.filters.http.rate_limit_quota.v3.RateLimitQuotaBucketSettings no_assignment_behavior: fallback_rate_limit: blanket_rule: DENY_ALL .. attention:: The first matched group wins. Once the request is matched into a bucket, matcher evaluation ends. Use ``on_no_match`` field to assign the catch-all bucket. If a request is not matched into any bucket, and there's no ``on_no_match`` field configured, the request will be ALLOWED by default. It will NOT be reported to the RLQS server. Refer to :ref:`Unified Matcher API <envoy_v3_api_msg_.xds.type.matcher.v3.Matcher>` documentation for more information on the matcher trees.
.xds.type.matcher.v3.Matcher bucket_matchers = 3 [(.validate.rules) = { ... }
- Specified by:
getBucketMatchers
in interfaceRateLimitQuotaFilterConfigOrBuilder
- Returns:
- The bucketMatchers.
-
getBucketMatchersOrBuilder
public MatcherOrBuilder getBucketMatchersOrBuilder()
The match tree to use for grouping incoming requests into buckets. Example: .. validated-code-block:: yaml :type-name: xds.type.matcher.v3.Matcher matcher_list: matchers: # Assign requests with header['env'] set to 'staging' to the bucket { name: 'staging' } - predicate: single_predicate: input: typed_config: '@type': type.googleapis.com/envoy.type.matcher.v3.HttpRequestHeaderMatchInput header_name: env value_match: exact: staging on_match: action: typed_config: '@type': type.googleapis.com/envoy.extensions.filters.http.rate_limit_quota.v3.RateLimitQuotaBucketSettings bucket_id_builder: bucket_id_builder: name: string_value: staging # Assign requests with header['user_group'] set to 'admin' to the bucket { acl: 'admin_users' } - predicate: single_predicate: input: typed_config: '@type': type.googleapis.com/xds.type.matcher.v3.HttpAttributesCelMatchInput custom_match: typed_config: '@type': type.googleapis.com/xds.type.matcher.v3.CelMatcher expr_match: # Shortened for illustration purposes. Here should be parsed CEL expression: # request.headers['user_group'] == 'admin' parsed_expr: {} on_match: action: typed_config: '@type': type.googleapis.com/envoy.extensions.filters.http.rate_limit_quota.v3.RateLimitQuotaBucketSettings bucket_id_builder: bucket_id_builder: acl: string_value: admin_users # Catch-all clause for the requests not matched by any of the matchers. # In this example, deny all requests. on_no_match: action: typed_config: '@type': type.googleapis.com/envoy.extensions.filters.http.rate_limit_quota.v3.RateLimitQuotaBucketSettings no_assignment_behavior: fallback_rate_limit: blanket_rule: DENY_ALL .. attention:: The first matched group wins. Once the request is matched into a bucket, matcher evaluation ends. Use ``on_no_match`` field to assign the catch-all bucket. If a request is not matched into any bucket, and there's no ``on_no_match`` field configured, the request will be ALLOWED by default. It will NOT be reported to the RLQS server. Refer to :ref:`Unified Matcher API <envoy_v3_api_msg_.xds.type.matcher.v3.Matcher>` documentation for more information on the matcher trees.
.xds.type.matcher.v3.Matcher bucket_matchers = 3 [(.validate.rules) = { ... }
- Specified by:
getBucketMatchersOrBuilder
in interfaceRateLimitQuotaFilterConfigOrBuilder
-
hasFilterEnabled
public boolean hasFilterEnabled()
If set, this will enable -- but not necessarily enforce -- the rate limit for the given fraction of requests. Defaults to 100% of requests.
.envoy.config.core.v3.RuntimeFractionalPercent filter_enabled = 4;
- Specified by:
hasFilterEnabled
in interfaceRateLimitQuotaFilterConfigOrBuilder
- Returns:
- Whether the filterEnabled field is set.
-
getFilterEnabled
public RuntimeFractionalPercent getFilterEnabled()
If set, this will enable -- but not necessarily enforce -- the rate limit for the given fraction of requests. Defaults to 100% of requests.
.envoy.config.core.v3.RuntimeFractionalPercent filter_enabled = 4;
- Specified by:
getFilterEnabled
in interfaceRateLimitQuotaFilterConfigOrBuilder
- Returns:
- The filterEnabled.
-
getFilterEnabledOrBuilder
public RuntimeFractionalPercentOrBuilder getFilterEnabledOrBuilder()
If set, this will enable -- but not necessarily enforce -- the rate limit for the given fraction of requests. Defaults to 100% of requests.
.envoy.config.core.v3.RuntimeFractionalPercent filter_enabled = 4;
- Specified by:
getFilterEnabledOrBuilder
in interfaceRateLimitQuotaFilterConfigOrBuilder
-
hasFilterEnforced
public boolean hasFilterEnforced()
If set, this will enforce the rate limit decisions for the given fraction of requests. For requests that are not enforced the filter will still obtain the quota and include it in the load computation, however the request will always be allowed regardless of the outcome of quota application. This allows validation or testing of the rate limiting service infrastructure without disrupting existing traffic. Note: this only applies to the fraction of enabled requests. Defaults to 100% of requests.
.envoy.config.core.v3.RuntimeFractionalPercent filter_enforced = 5;
- Specified by:
hasFilterEnforced
in interfaceRateLimitQuotaFilterConfigOrBuilder
- Returns:
- Whether the filterEnforced field is set.
-
getFilterEnforced
public RuntimeFractionalPercent getFilterEnforced()
If set, this will enforce the rate limit decisions for the given fraction of requests. For requests that are not enforced the filter will still obtain the quota and include it in the load computation, however the request will always be allowed regardless of the outcome of quota application. This allows validation or testing of the rate limiting service infrastructure without disrupting existing traffic. Note: this only applies to the fraction of enabled requests. Defaults to 100% of requests.
.envoy.config.core.v3.RuntimeFractionalPercent filter_enforced = 5;
- Specified by:
getFilterEnforced
in interfaceRateLimitQuotaFilterConfigOrBuilder
- Returns:
- The filterEnforced.
-
getFilterEnforcedOrBuilder
public RuntimeFractionalPercentOrBuilder getFilterEnforcedOrBuilder()
If set, this will enforce the rate limit decisions for the given fraction of requests. For requests that are not enforced the filter will still obtain the quota and include it in the load computation, however the request will always be allowed regardless of the outcome of quota application. This allows validation or testing of the rate limiting service infrastructure without disrupting existing traffic. Note: this only applies to the fraction of enabled requests. Defaults to 100% of requests.
.envoy.config.core.v3.RuntimeFractionalPercent filter_enforced = 5;
- Specified by:
getFilterEnforcedOrBuilder
in interfaceRateLimitQuotaFilterConfigOrBuilder
-
getRequestHeadersToAddWhenNotEnforcedList
public java.util.List<HeaderValueOption> getRequestHeadersToAddWhenNotEnforcedList()
Specifies a list of HTTP headers that should be added to each request that has been rate limited and is also forwarded upstream. This can only occur when the filter is enabled but not enforced.
repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add_when_not_enforced = 6 [(.validate.rules) = { ... }
- Specified by:
getRequestHeadersToAddWhenNotEnforcedList
in interfaceRateLimitQuotaFilterConfigOrBuilder
-
getRequestHeadersToAddWhenNotEnforcedOrBuilderList
public java.util.List<? extends HeaderValueOptionOrBuilder> getRequestHeadersToAddWhenNotEnforcedOrBuilderList()
Specifies a list of HTTP headers that should be added to each request that has been rate limited and is also forwarded upstream. This can only occur when the filter is enabled but not enforced.
repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add_when_not_enforced = 6 [(.validate.rules) = { ... }
- Specified by:
getRequestHeadersToAddWhenNotEnforcedOrBuilderList
in interfaceRateLimitQuotaFilterConfigOrBuilder
-
getRequestHeadersToAddWhenNotEnforcedCount
public int getRequestHeadersToAddWhenNotEnforcedCount()
Specifies a list of HTTP headers that should be added to each request that has been rate limited and is also forwarded upstream. This can only occur when the filter is enabled but not enforced.
repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add_when_not_enforced = 6 [(.validate.rules) = { ... }
- Specified by:
getRequestHeadersToAddWhenNotEnforcedCount
in interfaceRateLimitQuotaFilterConfigOrBuilder
-
getRequestHeadersToAddWhenNotEnforced
public HeaderValueOption getRequestHeadersToAddWhenNotEnforced(int index)
Specifies a list of HTTP headers that should be added to each request that has been rate limited and is also forwarded upstream. This can only occur when the filter is enabled but not enforced.
repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add_when_not_enforced = 6 [(.validate.rules) = { ... }
- Specified by:
getRequestHeadersToAddWhenNotEnforced
in interfaceRateLimitQuotaFilterConfigOrBuilder
-
getRequestHeadersToAddWhenNotEnforcedOrBuilder
public HeaderValueOptionOrBuilder getRequestHeadersToAddWhenNotEnforcedOrBuilder(int index)
Specifies a list of HTTP headers that should be added to each request that has been rate limited and is also forwarded upstream. This can only occur when the filter is enabled but not enforced.
repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add_when_not_enforced = 6 [(.validate.rules) = { ... }
- Specified by:
getRequestHeadersToAddWhenNotEnforcedOrBuilder
in interfaceRateLimitQuotaFilterConfigOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessage
- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessage
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static RateLimitQuotaFilterConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RateLimitQuotaFilterConfig parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RateLimitQuotaFilterConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RateLimitQuotaFilterConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RateLimitQuotaFilterConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RateLimitQuotaFilterConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RateLimitQuotaFilterConfig parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static RateLimitQuotaFilterConfig parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static RateLimitQuotaFilterConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static RateLimitQuotaFilterConfig parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static RateLimitQuotaFilterConfig parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static RateLimitQuotaFilterConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public RateLimitQuotaFilterConfig.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static RateLimitQuotaFilterConfig.Builder newBuilder()
-
newBuilder
public static RateLimitQuotaFilterConfig.Builder newBuilder(RateLimitQuotaFilterConfig prototype)
-
toBuilder
public RateLimitQuotaFilterConfig.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected RateLimitQuotaFilterConfig.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
- Overrides:
newBuilderForType
in classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
public static RateLimitQuotaFilterConfig getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<RateLimitQuotaFilterConfig> parser()
-
getParserForType
public com.google.protobuf.Parser<RateLimitQuotaFilterConfig> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
public RateLimitQuotaFilterConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-