public static final class LocalRateLimit.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LocalRateLimit.Builder> implements LocalRateLimitOrBuilder
[#next-free-field: 7]Protobuf type
envoy.extensions.filters.http.local_ratelimit.v3.LocalRateLimit| Modifier and Type | Method and Description |
|---|---|
LocalRateLimit.Builder |
addAllResponseHeadersToAdd(Iterable<? extends HeaderValueOption> values)
Specifies a list of HTTP headers that should be added to each response for requests that
have been rate limited.
|
LocalRateLimit.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
LocalRateLimit.Builder |
addResponseHeadersToAdd(HeaderValueOption.Builder builderForValue)
Specifies a list of HTTP headers that should be added to each response for requests that
have been rate limited.
|
LocalRateLimit.Builder |
addResponseHeadersToAdd(HeaderValueOption value)
Specifies a list of HTTP headers that should be added to each response for requests that
have been rate limited.
|
LocalRateLimit.Builder |
addResponseHeadersToAdd(int index,
HeaderValueOption.Builder builderForValue)
Specifies a list of HTTP headers that should be added to each response for requests that
have been rate limited.
|
LocalRateLimit.Builder |
addResponseHeadersToAdd(int index,
HeaderValueOption value)
Specifies a list of HTTP headers that should be added to each response for requests that
have been rate limited.
|
HeaderValueOption.Builder |
addResponseHeadersToAddBuilder()
Specifies a list of HTTP headers that should be added to each response for requests that
have been rate limited.
|
HeaderValueOption.Builder |
addResponseHeadersToAddBuilder(int index)
Specifies a list of HTTP headers that should be added to each response for requests that
have been rate limited.
|
LocalRateLimit |
build() |
LocalRateLimit |
buildPartial() |
LocalRateLimit.Builder |
clear() |
LocalRateLimit.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
LocalRateLimit.Builder |
clearFilterEnabled()
If set, this will enable -- but not necessarily enforce -- the rate limit for the given
fraction of requests.
|
LocalRateLimit.Builder |
clearFilterEnforced()
If set, this will enforce the rate limit decisions for the given fraction of requests.
|
LocalRateLimit.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
LocalRateLimit.Builder |
clearResponseHeadersToAdd()
Specifies a list of HTTP headers that should be added to each response for requests that
have been rate limited.
|
LocalRateLimit.Builder |
clearStatPrefix()
The human readable prefix to use when emitting stats.
|
LocalRateLimit.Builder |
clearStatus()
This field allows for a custom HTTP response status code to the downstream client when
the request has been rate limited.
|
LocalRateLimit.Builder |
clearTokenBucket()
The token bucket configuration to use for rate limiting requests that are processed by this
filter.
|
LocalRateLimit.Builder |
clone() |
LocalRateLimit |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
RuntimeFractionalPercent |
getFilterEnabled()
If set, this will enable -- but not necessarily enforce -- the rate limit for the given
fraction of requests.
|
RuntimeFractionalPercent.Builder |
getFilterEnabledBuilder()
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.
|
RuntimeFractionalPercent.Builder |
getFilterEnforcedBuilder()
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.
|
HeaderValueOption |
getResponseHeadersToAdd(int index)
Specifies a list of HTTP headers that should be added to each response for requests that
have been rate limited.
|
HeaderValueOption.Builder |
getResponseHeadersToAddBuilder(int index)
Specifies a list of HTTP headers that should be added to each response for requests that
have been rate limited.
|
List<HeaderValueOption.Builder> |
getResponseHeadersToAddBuilderList()
Specifies a list of HTTP headers that should be added to each response for requests that
have been rate limited.
|
int |
getResponseHeadersToAddCount()
Specifies a list of HTTP headers that should be added to each response for requests that
have been rate limited.
|
List<HeaderValueOption> |
getResponseHeadersToAddList()
Specifies a list of HTTP headers that should be added to each response for requests that
have been rate limited.
|
HeaderValueOptionOrBuilder |
getResponseHeadersToAddOrBuilder(int index)
Specifies a list of HTTP headers that should be added to each response for requests that
have been rate limited.
|
List<? extends HeaderValueOptionOrBuilder> |
getResponseHeadersToAddOrBuilderList()
Specifies a list of HTTP headers that should be added to each response for requests that
have been rate limited.
|
String |
getStatPrefix()
The human readable prefix to use when emitting stats.
|
com.google.protobuf.ByteString |
getStatPrefixBytes()
The human readable prefix to use when emitting stats.
|
HttpStatus |
getStatus()
This field allows for a custom HTTP response status code to the downstream client when
the request has been rate limited.
|
HttpStatus.Builder |
getStatusBuilder()
This field allows for a custom HTTP response status code to the downstream client when
the request has been rate limited.
|
HttpStatusOrBuilder |
getStatusOrBuilder()
This field allows for a custom HTTP response status code to the downstream client when
the request has been rate limited.
|
TokenBucket |
getTokenBucket()
The token bucket configuration to use for rate limiting requests that are processed by this
filter.
|
TokenBucket.Builder |
getTokenBucketBuilder()
The token bucket configuration to use for rate limiting requests that are processed by this
filter.
|
TokenBucketOrBuilder |
getTokenBucketOrBuilder()
The token bucket configuration to use for rate limiting requests that are processed by this
filter.
|
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.
|
boolean |
hasStatus()
This field allows for a custom HTTP response status code to the downstream client when
the request has been rate limited.
|
boolean |
hasTokenBucket()
The token bucket configuration to use for rate limiting requests that are processed by this
filter.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
LocalRateLimit.Builder |
mergeFilterEnabled(RuntimeFractionalPercent value)
If set, this will enable -- but not necessarily enforce -- the rate limit for the given
fraction of requests.
|
LocalRateLimit.Builder |
mergeFilterEnforced(RuntimeFractionalPercent value)
If set, this will enforce the rate limit decisions for the given fraction of requests.
|
LocalRateLimit.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
LocalRateLimit.Builder |
mergeFrom(LocalRateLimit other) |
LocalRateLimit.Builder |
mergeFrom(com.google.protobuf.Message other) |
LocalRateLimit.Builder |
mergeStatus(HttpStatus value)
This field allows for a custom HTTP response status code to the downstream client when
the request has been rate limited.
|
LocalRateLimit.Builder |
mergeTokenBucket(TokenBucket value)
The token bucket configuration to use for rate limiting requests that are processed by this
filter.
|
LocalRateLimit.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
LocalRateLimit.Builder |
removeResponseHeadersToAdd(int index)
Specifies a list of HTTP headers that should be added to each response for requests that
have been rate limited.
|
LocalRateLimit.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
LocalRateLimit.Builder |
setFilterEnabled(RuntimeFractionalPercent.Builder builderForValue)
If set, this will enable -- but not necessarily enforce -- the rate limit for the given
fraction of requests.
|
LocalRateLimit.Builder |
setFilterEnabled(RuntimeFractionalPercent value)
If set, this will enable -- but not necessarily enforce -- the rate limit for the given
fraction of requests.
|
LocalRateLimit.Builder |
setFilterEnforced(RuntimeFractionalPercent.Builder builderForValue)
If set, this will enforce the rate limit decisions for the given fraction of requests.
|
LocalRateLimit.Builder |
setFilterEnforced(RuntimeFractionalPercent value)
If set, this will enforce the rate limit decisions for the given fraction of requests.
|
LocalRateLimit.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
LocalRateLimit.Builder |
setResponseHeadersToAdd(int index,
HeaderValueOption.Builder builderForValue)
Specifies a list of HTTP headers that should be added to each response for requests that
have been rate limited.
|
LocalRateLimit.Builder |
setResponseHeadersToAdd(int index,
HeaderValueOption value)
Specifies a list of HTTP headers that should be added to each response for requests that
have been rate limited.
|
LocalRateLimit.Builder |
setStatPrefix(String value)
The human readable prefix to use when emitting stats.
|
LocalRateLimit.Builder |
setStatPrefixBytes(com.google.protobuf.ByteString value)
The human readable prefix to use when emitting stats.
|
LocalRateLimit.Builder |
setStatus(HttpStatus.Builder builderForValue)
This field allows for a custom HTTP response status code to the downstream client when
the request has been rate limited.
|
LocalRateLimit.Builder |
setStatus(HttpStatus value)
This field allows for a custom HTTP response status code to the downstream client when
the request has been rate limited.
|
LocalRateLimit.Builder |
setTokenBucket(TokenBucket.Builder builderForValue)
The token bucket configuration to use for rate limiting requests that are processed by this
filter.
|
LocalRateLimit.Builder |
setTokenBucket(TokenBucket value)
The token bucket configuration to use for rate limiting requests that are processed by this
filter.
|
LocalRateLimit.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<LocalRateLimit.Builder>public LocalRateLimit.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<LocalRateLimit.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<LocalRateLimit.Builder>public LocalRateLimit getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic LocalRateLimit build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic LocalRateLimit buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic LocalRateLimit.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<LocalRateLimit.Builder>public LocalRateLimit.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<LocalRateLimit.Builder>public LocalRateLimit.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<LocalRateLimit.Builder>public LocalRateLimit.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<LocalRateLimit.Builder>public LocalRateLimit.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<LocalRateLimit.Builder>public LocalRateLimit.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<LocalRateLimit.Builder>public LocalRateLimit.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<LocalRateLimit.Builder>public LocalRateLimit.Builder mergeFrom(LocalRateLimit other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<LocalRateLimit.Builder>public LocalRateLimit.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<LocalRateLimit.Builder>IOExceptionpublic String getStatPrefix()
The human readable prefix to use when emitting stats.
string stat_prefix = 1 [(.validate.rules) = { ... }getStatPrefix in interface LocalRateLimitOrBuilderpublic com.google.protobuf.ByteString getStatPrefixBytes()
The human readable prefix to use when emitting stats.
string stat_prefix = 1 [(.validate.rules) = { ... }getStatPrefixBytes in interface LocalRateLimitOrBuilderpublic LocalRateLimit.Builder setStatPrefix(String value)
The human readable prefix to use when emitting stats.
string stat_prefix = 1 [(.validate.rules) = { ... }public LocalRateLimit.Builder clearStatPrefix()
The human readable prefix to use when emitting stats.
string stat_prefix = 1 [(.validate.rules) = { ... }public LocalRateLimit.Builder setStatPrefixBytes(com.google.protobuf.ByteString value)
The human readable prefix to use when emitting stats.
string stat_prefix = 1 [(.validate.rules) = { ... }public boolean hasStatus()
This field allows for a custom HTTP response status code to the downstream client when the request has been rate limited. Defaults to 429 (TooManyRequests). .. note:: If this is set to < 400, 429 will be used instead.
.envoy.type.v3.HttpStatus status = 2;hasStatus in interface LocalRateLimitOrBuilderpublic HttpStatus getStatus()
This field allows for a custom HTTP response status code to the downstream client when the request has been rate limited. Defaults to 429 (TooManyRequests). .. note:: If this is set to < 400, 429 will be used instead.
.envoy.type.v3.HttpStatus status = 2;getStatus in interface LocalRateLimitOrBuilderpublic LocalRateLimit.Builder setStatus(HttpStatus value)
This field allows for a custom HTTP response status code to the downstream client when the request has been rate limited. Defaults to 429 (TooManyRequests). .. note:: If this is set to < 400, 429 will be used instead.
.envoy.type.v3.HttpStatus status = 2;public LocalRateLimit.Builder setStatus(HttpStatus.Builder builderForValue)
This field allows for a custom HTTP response status code to the downstream client when the request has been rate limited. Defaults to 429 (TooManyRequests). .. note:: If this is set to < 400, 429 will be used instead.
.envoy.type.v3.HttpStatus status = 2;public LocalRateLimit.Builder mergeStatus(HttpStatus value)
This field allows for a custom HTTP response status code to the downstream client when the request has been rate limited. Defaults to 429 (TooManyRequests). .. note:: If this is set to < 400, 429 will be used instead.
.envoy.type.v3.HttpStatus status = 2;public LocalRateLimit.Builder clearStatus()
This field allows for a custom HTTP response status code to the downstream client when the request has been rate limited. Defaults to 429 (TooManyRequests). .. note:: If this is set to < 400, 429 will be used instead.
.envoy.type.v3.HttpStatus status = 2;public HttpStatus.Builder getStatusBuilder()
This field allows for a custom HTTP response status code to the downstream client when the request has been rate limited. Defaults to 429 (TooManyRequests). .. note:: If this is set to < 400, 429 will be used instead.
.envoy.type.v3.HttpStatus status = 2;public HttpStatusOrBuilder getStatusOrBuilder()
This field allows for a custom HTTP response status code to the downstream client when the request has been rate limited. Defaults to 429 (TooManyRequests). .. note:: If this is set to < 400, 429 will be used instead.
.envoy.type.v3.HttpStatus status = 2;getStatusOrBuilder in interface LocalRateLimitOrBuilderpublic boolean hasTokenBucket()
The token bucket configuration to use for rate limiting requests that are processed by this filter. Each request processed by the filter consumes a single token. If the token is available, the request will be allowed. If no tokens are available, the request will receive the configured rate limit status. .. note:: It's fine for the token bucket to be unset for the global configuration since the rate limit can be applied at a the virtual host or route level. Thus, the token bucket must be set for the per route configuration otherwise the config will be rejected. .. note:: When using per route configuration, the bucket becomes unique to that route. .. note:: In the current implementation the token bucket's :ref:`fill_interval <envoy_api_field_type.v3.TokenBucket.fill_interval>` must be >= 50ms to avoid too aggressive refills.
.envoy.type.v3.TokenBucket token_bucket = 3;hasTokenBucket in interface LocalRateLimitOrBuilderpublic TokenBucket getTokenBucket()
The token bucket configuration to use for rate limiting requests that are processed by this filter. Each request processed by the filter consumes a single token. If the token is available, the request will be allowed. If no tokens are available, the request will receive the configured rate limit status. .. note:: It's fine for the token bucket to be unset for the global configuration since the rate limit can be applied at a the virtual host or route level. Thus, the token bucket must be set for the per route configuration otherwise the config will be rejected. .. note:: When using per route configuration, the bucket becomes unique to that route. .. note:: In the current implementation the token bucket's :ref:`fill_interval <envoy_api_field_type.v3.TokenBucket.fill_interval>` must be >= 50ms to avoid too aggressive refills.
.envoy.type.v3.TokenBucket token_bucket = 3;getTokenBucket in interface LocalRateLimitOrBuilderpublic LocalRateLimit.Builder setTokenBucket(TokenBucket value)
The token bucket configuration to use for rate limiting requests that are processed by this filter. Each request processed by the filter consumes a single token. If the token is available, the request will be allowed. If no tokens are available, the request will receive the configured rate limit status. .. note:: It's fine for the token bucket to be unset for the global configuration since the rate limit can be applied at a the virtual host or route level. Thus, the token bucket must be set for the per route configuration otherwise the config will be rejected. .. note:: When using per route configuration, the bucket becomes unique to that route. .. note:: In the current implementation the token bucket's :ref:`fill_interval <envoy_api_field_type.v3.TokenBucket.fill_interval>` must be >= 50ms to avoid too aggressive refills.
.envoy.type.v3.TokenBucket token_bucket = 3;public LocalRateLimit.Builder setTokenBucket(TokenBucket.Builder builderForValue)
The token bucket configuration to use for rate limiting requests that are processed by this filter. Each request processed by the filter consumes a single token. If the token is available, the request will be allowed. If no tokens are available, the request will receive the configured rate limit status. .. note:: It's fine for the token bucket to be unset for the global configuration since the rate limit can be applied at a the virtual host or route level. Thus, the token bucket must be set for the per route configuration otherwise the config will be rejected. .. note:: When using per route configuration, the bucket becomes unique to that route. .. note:: In the current implementation the token bucket's :ref:`fill_interval <envoy_api_field_type.v3.TokenBucket.fill_interval>` must be >= 50ms to avoid too aggressive refills.
.envoy.type.v3.TokenBucket token_bucket = 3;public LocalRateLimit.Builder mergeTokenBucket(TokenBucket value)
The token bucket configuration to use for rate limiting requests that are processed by this filter. Each request processed by the filter consumes a single token. If the token is available, the request will be allowed. If no tokens are available, the request will receive the configured rate limit status. .. note:: It's fine for the token bucket to be unset for the global configuration since the rate limit can be applied at a the virtual host or route level. Thus, the token bucket must be set for the per route configuration otherwise the config will be rejected. .. note:: When using per route configuration, the bucket becomes unique to that route. .. note:: In the current implementation the token bucket's :ref:`fill_interval <envoy_api_field_type.v3.TokenBucket.fill_interval>` must be >= 50ms to avoid too aggressive refills.
.envoy.type.v3.TokenBucket token_bucket = 3;public LocalRateLimit.Builder clearTokenBucket()
The token bucket configuration to use for rate limiting requests that are processed by this filter. Each request processed by the filter consumes a single token. If the token is available, the request will be allowed. If no tokens are available, the request will receive the configured rate limit status. .. note:: It's fine for the token bucket to be unset for the global configuration since the rate limit can be applied at a the virtual host or route level. Thus, the token bucket must be set for the per route configuration otherwise the config will be rejected. .. note:: When using per route configuration, the bucket becomes unique to that route. .. note:: In the current implementation the token bucket's :ref:`fill_interval <envoy_api_field_type.v3.TokenBucket.fill_interval>` must be >= 50ms to avoid too aggressive refills.
.envoy.type.v3.TokenBucket token_bucket = 3;public TokenBucket.Builder getTokenBucketBuilder()
The token bucket configuration to use for rate limiting requests that are processed by this filter. Each request processed by the filter consumes a single token. If the token is available, the request will be allowed. If no tokens are available, the request will receive the configured rate limit status. .. note:: It's fine for the token bucket to be unset for the global configuration since the rate limit can be applied at a the virtual host or route level. Thus, the token bucket must be set for the per route configuration otherwise the config will be rejected. .. note:: When using per route configuration, the bucket becomes unique to that route. .. note:: In the current implementation the token bucket's :ref:`fill_interval <envoy_api_field_type.v3.TokenBucket.fill_interval>` must be >= 50ms to avoid too aggressive refills.
.envoy.type.v3.TokenBucket token_bucket = 3;public TokenBucketOrBuilder getTokenBucketOrBuilder()
The token bucket configuration to use for rate limiting requests that are processed by this filter. Each request processed by the filter consumes a single token. If the token is available, the request will be allowed. If no tokens are available, the request will receive the configured rate limit status. .. note:: It's fine for the token bucket to be unset for the global configuration since the rate limit can be applied at a the virtual host or route level. Thus, the token bucket must be set for the per route configuration otherwise the config will be rejected. .. note:: When using per route configuration, the bucket becomes unique to that route. .. note:: In the current implementation the token bucket's :ref:`fill_interval <envoy_api_field_type.v3.TokenBucket.fill_interval>` must be >= 50ms to avoid too aggressive refills.
.envoy.type.v3.TokenBucket token_bucket = 3;getTokenBucketOrBuilder in interface LocalRateLimitOrBuilderpublic boolean hasFilterEnabled()
If set, this will enable -- but not necessarily enforce -- the rate limit for the given fraction of requests. Defaults to 0% of requests for safety.
.envoy.config.core.v3.RuntimeFractionalPercent filter_enabled = 4;hasFilterEnabled in interface LocalRateLimitOrBuilderpublic RuntimeFractionalPercent getFilterEnabled()
If set, this will enable -- but not necessarily enforce -- the rate limit for the given fraction of requests. Defaults to 0% of requests for safety.
.envoy.config.core.v3.RuntimeFractionalPercent filter_enabled = 4;getFilterEnabled in interface LocalRateLimitOrBuilderpublic LocalRateLimit.Builder setFilterEnabled(RuntimeFractionalPercent value)
If set, this will enable -- but not necessarily enforce -- the rate limit for the given fraction of requests. Defaults to 0% of requests for safety.
.envoy.config.core.v3.RuntimeFractionalPercent filter_enabled = 4;public LocalRateLimit.Builder setFilterEnabled(RuntimeFractionalPercent.Builder builderForValue)
If set, this will enable -- but not necessarily enforce -- the rate limit for the given fraction of requests. Defaults to 0% of requests for safety.
.envoy.config.core.v3.RuntimeFractionalPercent filter_enabled = 4;public LocalRateLimit.Builder mergeFilterEnabled(RuntimeFractionalPercent value)
If set, this will enable -- but not necessarily enforce -- the rate limit for the given fraction of requests. Defaults to 0% of requests for safety.
.envoy.config.core.v3.RuntimeFractionalPercent filter_enabled = 4;public LocalRateLimit.Builder clearFilterEnabled()
If set, this will enable -- but not necessarily enforce -- the rate limit for the given fraction of requests. Defaults to 0% of requests for safety.
.envoy.config.core.v3.RuntimeFractionalPercent filter_enabled = 4;public RuntimeFractionalPercent.Builder getFilterEnabledBuilder()
If set, this will enable -- but not necessarily enforce -- the rate limit for the given fraction of requests. Defaults to 0% of requests for safety.
.envoy.config.core.v3.RuntimeFractionalPercent filter_enabled = 4;public RuntimeFractionalPercentOrBuilder getFilterEnabledOrBuilder()
If set, this will enable -- but not necessarily enforce -- the rate limit for the given fraction of requests. Defaults to 0% of requests for safety.
.envoy.config.core.v3.RuntimeFractionalPercent filter_enabled = 4;getFilterEnabledOrBuilder in interface LocalRateLimitOrBuilderpublic boolean hasFilterEnforced()
If set, this will enforce the rate limit decisions for the given fraction of requests. Note: this only applies to the fraction of enabled requests. Defaults to 0% of requests for safety.
.envoy.config.core.v3.RuntimeFractionalPercent filter_enforced = 5;hasFilterEnforced in interface LocalRateLimitOrBuilderpublic RuntimeFractionalPercent getFilterEnforced()
If set, this will enforce the rate limit decisions for the given fraction of requests. Note: this only applies to the fraction of enabled requests. Defaults to 0% of requests for safety.
.envoy.config.core.v3.RuntimeFractionalPercent filter_enforced = 5;getFilterEnforced in interface LocalRateLimitOrBuilderpublic LocalRateLimit.Builder setFilterEnforced(RuntimeFractionalPercent value)
If set, this will enforce the rate limit decisions for the given fraction of requests. Note: this only applies to the fraction of enabled requests. Defaults to 0% of requests for safety.
.envoy.config.core.v3.RuntimeFractionalPercent filter_enforced = 5;public LocalRateLimit.Builder setFilterEnforced(RuntimeFractionalPercent.Builder builderForValue)
If set, this will enforce the rate limit decisions for the given fraction of requests. Note: this only applies to the fraction of enabled requests. Defaults to 0% of requests for safety.
.envoy.config.core.v3.RuntimeFractionalPercent filter_enforced = 5;public LocalRateLimit.Builder mergeFilterEnforced(RuntimeFractionalPercent value)
If set, this will enforce the rate limit decisions for the given fraction of requests. Note: this only applies to the fraction of enabled requests. Defaults to 0% of requests for safety.
.envoy.config.core.v3.RuntimeFractionalPercent filter_enforced = 5;public LocalRateLimit.Builder clearFilterEnforced()
If set, this will enforce the rate limit decisions for the given fraction of requests. Note: this only applies to the fraction of enabled requests. Defaults to 0% of requests for safety.
.envoy.config.core.v3.RuntimeFractionalPercent filter_enforced = 5;public RuntimeFractionalPercent.Builder getFilterEnforcedBuilder()
If set, this will enforce the rate limit decisions for the given fraction of requests. Note: this only applies to the fraction of enabled requests. Defaults to 0% of requests for safety.
.envoy.config.core.v3.RuntimeFractionalPercent filter_enforced = 5;public RuntimeFractionalPercentOrBuilder getFilterEnforcedOrBuilder()
If set, this will enforce the rate limit decisions for the given fraction of requests. Note: this only applies to the fraction of enabled requests. Defaults to 0% of requests for safety.
.envoy.config.core.v3.RuntimeFractionalPercent filter_enforced = 5;getFilterEnforcedOrBuilder in interface LocalRateLimitOrBuilderpublic List<HeaderValueOption> getResponseHeadersToAddList()
Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 6 [(.validate.rules) = { ... }getResponseHeadersToAddList in interface LocalRateLimitOrBuilderpublic int getResponseHeadersToAddCount()
Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 6 [(.validate.rules) = { ... }getResponseHeadersToAddCount in interface LocalRateLimitOrBuilderpublic HeaderValueOption getResponseHeadersToAdd(int index)
Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 6 [(.validate.rules) = { ... }getResponseHeadersToAdd in interface LocalRateLimitOrBuilderpublic LocalRateLimit.Builder setResponseHeadersToAdd(int index, HeaderValueOption value)
Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 6 [(.validate.rules) = { ... }public LocalRateLimit.Builder setResponseHeadersToAdd(int index, HeaderValueOption.Builder builderForValue)
Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 6 [(.validate.rules) = { ... }public LocalRateLimit.Builder addResponseHeadersToAdd(HeaderValueOption value)
Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 6 [(.validate.rules) = { ... }public LocalRateLimit.Builder addResponseHeadersToAdd(int index, HeaderValueOption value)
Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 6 [(.validate.rules) = { ... }public LocalRateLimit.Builder addResponseHeadersToAdd(HeaderValueOption.Builder builderForValue)
Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 6 [(.validate.rules) = { ... }public LocalRateLimit.Builder addResponseHeadersToAdd(int index, HeaderValueOption.Builder builderForValue)
Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 6 [(.validate.rules) = { ... }public LocalRateLimit.Builder addAllResponseHeadersToAdd(Iterable<? extends HeaderValueOption> values)
Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 6 [(.validate.rules) = { ... }public LocalRateLimit.Builder clearResponseHeadersToAdd()
Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 6 [(.validate.rules) = { ... }public LocalRateLimit.Builder removeResponseHeadersToAdd(int index)
Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 6 [(.validate.rules) = { ... }public HeaderValueOption.Builder getResponseHeadersToAddBuilder(int index)
Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 6 [(.validate.rules) = { ... }public HeaderValueOptionOrBuilder getResponseHeadersToAddOrBuilder(int index)
Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 6 [(.validate.rules) = { ... }getResponseHeadersToAddOrBuilder in interface LocalRateLimitOrBuilderpublic List<? extends HeaderValueOptionOrBuilder> getResponseHeadersToAddOrBuilderList()
Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 6 [(.validate.rules) = { ... }getResponseHeadersToAddOrBuilderList in interface LocalRateLimitOrBuilderpublic HeaderValueOption.Builder addResponseHeadersToAddBuilder()
Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 6 [(.validate.rules) = { ... }public HeaderValueOption.Builder addResponseHeadersToAddBuilder(int index)
Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 6 [(.validate.rules) = { ... }public List<HeaderValueOption.Builder> getResponseHeadersToAddBuilderList()
Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 6 [(.validate.rules) = { ... }public final LocalRateLimit.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<LocalRateLimit.Builder>public final LocalRateLimit.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<LocalRateLimit.Builder>Copyright © 2018–2021 The Envoy Project. All rights reserved.