Class RateLimitQuotaFilterConfig
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- 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,Serializable
public final class RateLimitQuotaFilterConfig extends com.google.protobuf.GeneratedMessageV3 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 classRateLimitQuotaFilterConfig.BuilderConfigures the Rate Limit Quota filter.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intBUCKET_MATCHERS_FIELD_NUMBERstatic intDOMAIN_FIELD_NUMBERstatic intFILTER_ENABLED_FIELD_NUMBERstatic intFILTER_ENFORCED_FIELD_NUMBERstatic intREQUEST_HEADERS_TO_ADD_WHEN_NOT_ENFORCED_FIELD_NUMBERstatic intRLQS_SERVER_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)MatchergetBucketMatchers()The match tree to use for grouping incoming requests into buckets.MatcherOrBuildergetBucketMatchersOrBuilder()The match tree to use for grouping incoming requests into buckets.static RateLimitQuotaFilterConfiggetDefaultInstance()RateLimitQuotaFilterConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetDomain()The application domain to use when calling the service.com.google.protobuf.ByteStringgetDomainBytes()The application domain to use when calling the service.RuntimeFractionalPercentgetFilterEnabled()If set, this will enable -- but not necessarily enforce -- the rate limit for the given fraction of requests.RuntimeFractionalPercentOrBuildergetFilterEnabledOrBuilder()If set, this will enable -- but not necessarily enforce -- the rate limit for the given fraction of requests.RuntimeFractionalPercentgetFilterEnforced()If set, this will enforce the rate limit decisions for the given fraction of requests.RuntimeFractionalPercentOrBuildergetFilterEnforcedOrBuilder()If set, this will enforce the rate limit decisions for the given fraction of requests.com.google.protobuf.Parser<RateLimitQuotaFilterConfig>getParserForType()HeaderValueOptiongetRequestHeadersToAddWhenNotEnforced(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.intgetRequestHeadersToAddWhenNotEnforcedCount()Specifies a list of HTTP headers that should be added to each request that has been rate limited and is also forwarded upstream.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.HeaderValueOptionOrBuildergetRequestHeadersToAddWhenNotEnforcedOrBuilder(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.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.GrpcServicegetRlqsServer()Configures the gRPC Rate Limit Quota Service (RLQS) RateLimitQuotaService.GrpcServiceOrBuildergetRlqsServerOrBuilder()Configures the gRPC Rate Limit Quota Service (RLQS) RateLimitQuotaService.intgetSerializedSize()com.google.protobuf.UnknownFieldSetgetUnknownFields()booleanhasBucketMatchers()The match tree to use for grouping incoming requests into buckets.booleanhasFilterEnabled()If set, this will enable -- but not necessarily enforce -- the rate limit for the given fraction of requests.booleanhasFilterEnforced()If set, this will enforce the rate limit decisions for the given fraction of requests.inthashCode()booleanhasRlqsServer()Configures the gRPC Rate Limit Quota Service (RLQS) RateLimitQuotaService.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static RateLimitQuotaFilterConfig.BuildernewBuilder()static RateLimitQuotaFilterConfig.BuildernewBuilder(RateLimitQuotaFilterConfig prototype)RateLimitQuotaFilterConfig.BuildernewBuilderForType()protected RateLimitQuotaFilterConfig.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static RateLimitQuotaFilterConfigparseDelimitedFrom(InputStream input)static RateLimitQuotaFilterConfigparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RateLimitQuotaFilterConfigparseFrom(byte[] data)static RateLimitQuotaFilterConfigparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RateLimitQuotaFilterConfigparseFrom(com.google.protobuf.ByteString data)static RateLimitQuotaFilterConfigparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RateLimitQuotaFilterConfigparseFrom(com.google.protobuf.CodedInputStream input)static RateLimitQuotaFilterConfigparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RateLimitQuotaFilterConfigparseFrom(InputStream input)static RateLimitQuotaFilterConfigparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RateLimitQuotaFilterConfigparseFrom(ByteBuffer data)static RateLimitQuotaFilterConfigparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<RateLimitQuotaFilterConfig>parser()RateLimitQuotaFilterConfig.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, 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, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
RLQS_SERVER_FIELD_NUMBER
public static final int RLQS_SERVER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DOMAIN_FIELD_NUMBER
public static final int DOMAIN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BUCKET_MATCHERS_FIELD_NUMBER
public static final int BUCKET_MATCHERS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FILTER_ENABLED_FIELD_NUMBER
public static final int FILTER_ENABLED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FILTER_ENFORCED_FIELD_NUMBER
public static final int FILTER_ENFORCED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
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
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
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:
hasRlqsServerin 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:
getRlqsServerin 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:
getRlqsServerOrBuilderin interfaceRateLimitQuotaFilterConfigOrBuilder
-
getDomain
public 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:
getDomainin 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:
getDomainBytesin 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:
hasBucketMatchersin 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:
getBucketMatchersin 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:
getBucketMatchersOrBuilderin 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:
hasFilterEnabledin 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:
getFilterEnabledin 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:
getFilterEnabledOrBuilderin 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:
hasFilterEnforcedin 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:
getFilterEnforcedin 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:
getFilterEnforcedOrBuilderin interfaceRateLimitQuotaFilterConfigOrBuilder
-
getRequestHeadersToAddWhenNotEnforcedList
public 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:
getRequestHeadersToAddWhenNotEnforcedListin interfaceRateLimitQuotaFilterConfigOrBuilder
-
getRequestHeadersToAddWhenNotEnforcedOrBuilderList
public 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:
getRequestHeadersToAddWhenNotEnforcedOrBuilderListin 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:
getRequestHeadersToAddWhenNotEnforcedCountin 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:
getRequestHeadersToAddWhenNotEnforcedin 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:
getRequestHeadersToAddWhenNotEnforcedOrBuilderin interfaceRateLimitQuotaFilterConfigOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static RateLimitQuotaFilterConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RateLimitQuotaFilterConfig parseFrom(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(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static RateLimitQuotaFilterConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static RateLimitQuotaFilterConfig parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static RateLimitQuotaFilterConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static RateLimitQuotaFilterConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static RateLimitQuotaFilterConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public RateLimitQuotaFilterConfig.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein 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:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected RateLimitQuotaFilterConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static RateLimitQuotaFilterConfig getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<RateLimitQuotaFilterConfig> parser()
-
getParserForType
public com.google.protobuf.Parser<RateLimitQuotaFilterConfig> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public RateLimitQuotaFilterConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-