public static final class LocalRateLimit.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LocalRateLimit.Builder> implements LocalRateLimitOrBuilder
envoy.extensions.filters.network.local_ratelimit.v3.LocalRateLimit| Modifier and Type | Method and Description |
|---|---|
LocalRateLimit.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
LocalRateLimit |
build() |
LocalRateLimit |
buildPartial() |
LocalRateLimit.Builder |
clear() |
LocalRateLimit.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
LocalRateLimit.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
LocalRateLimit.Builder |
clearRuntimeEnabled()
Runtime flag that controls whether the filter is enabled or not.
|
LocalRateLimit.Builder |
clearStatPrefix()
The prefix to use when emitting :ref:`statistics
<config_network_filters_local_rate_limit_stats>`.
|
LocalRateLimit.Builder |
clearTokenBucket()
The token bucket configuration to use for rate limiting connections that are processed by the
filter's filter chain.
|
LocalRateLimit.Builder |
clone() |
LocalRateLimit |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
RuntimeFeatureFlag |
getRuntimeEnabled()
Runtime flag that controls whether the filter is enabled or not.
|
RuntimeFeatureFlag.Builder |
getRuntimeEnabledBuilder()
Runtime flag that controls whether the filter is enabled or not.
|
RuntimeFeatureFlagOrBuilder |
getRuntimeEnabledOrBuilder()
Runtime flag that controls whether the filter is enabled or not.
|
String |
getStatPrefix()
The prefix to use when emitting :ref:`statistics
<config_network_filters_local_rate_limit_stats>`.
|
com.google.protobuf.ByteString |
getStatPrefixBytes()
The prefix to use when emitting :ref:`statistics
<config_network_filters_local_rate_limit_stats>`.
|
TokenBucket |
getTokenBucket()
The token bucket configuration to use for rate limiting connections that are processed by the
filter's filter chain.
|
TokenBucket.Builder |
getTokenBucketBuilder()
The token bucket configuration to use for rate limiting connections that are processed by the
filter's filter chain.
|
TokenBucketOrBuilder |
getTokenBucketOrBuilder()
The token bucket configuration to use for rate limiting connections that are processed by the
filter's filter chain.
|
boolean |
hasRuntimeEnabled()
Runtime flag that controls whether the filter is enabled or not.
|
boolean |
hasTokenBucket()
The token bucket configuration to use for rate limiting connections that are processed by the
filter's filter chain.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
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 |
mergeRuntimeEnabled(RuntimeFeatureFlag value)
Runtime flag that controls whether the filter is enabled or not.
|
LocalRateLimit.Builder |
mergeTokenBucket(TokenBucket value)
The token bucket configuration to use for rate limiting connections that are processed by the
filter's filter chain.
|
LocalRateLimit.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
LocalRateLimit.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
LocalRateLimit.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
LocalRateLimit.Builder |
setRuntimeEnabled(RuntimeFeatureFlag.Builder builderForValue)
Runtime flag that controls whether the filter is enabled or not.
|
LocalRateLimit.Builder |
setRuntimeEnabled(RuntimeFeatureFlag value)
Runtime flag that controls whether the filter is enabled or not.
|
LocalRateLimit.Builder |
setStatPrefix(String value)
The prefix to use when emitting :ref:`statistics
<config_network_filters_local_rate_limit_stats>`.
|
LocalRateLimit.Builder |
setStatPrefixBytes(com.google.protobuf.ByteString value)
The prefix to use when emitting :ref:`statistics
<config_network_filters_local_rate_limit_stats>`.
|
LocalRateLimit.Builder |
setTokenBucket(TokenBucket.Builder builderForValue)
The token bucket configuration to use for rate limiting connections that are processed by the
filter's filter chain.
|
LocalRateLimit.Builder |
setTokenBucket(TokenBucket value)
The token bucket configuration to use for rate limiting connections that are processed by the
filter's filter chain.
|
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 prefix to use when emitting :ref:`statistics <config_network_filters_local_rate_limit_stats>`.
string stat_prefix = 1 [(.validate.rules) = { ... }getStatPrefix in interface LocalRateLimitOrBuilderpublic com.google.protobuf.ByteString getStatPrefixBytes()
The prefix to use when emitting :ref:`statistics <config_network_filters_local_rate_limit_stats>`.
string stat_prefix = 1 [(.validate.rules) = { ... }getStatPrefixBytes in interface LocalRateLimitOrBuilderpublic LocalRateLimit.Builder setStatPrefix(String value)
The prefix to use when emitting :ref:`statistics <config_network_filters_local_rate_limit_stats>`.
string stat_prefix = 1 [(.validate.rules) = { ... }public LocalRateLimit.Builder clearStatPrefix()
The prefix to use when emitting :ref:`statistics <config_network_filters_local_rate_limit_stats>`.
string stat_prefix = 1 [(.validate.rules) = { ... }public LocalRateLimit.Builder setStatPrefixBytes(com.google.protobuf.ByteString value)
The prefix to use when emitting :ref:`statistics <config_network_filters_local_rate_limit_stats>`.
string stat_prefix = 1 [(.validate.rules) = { ... }public boolean hasTokenBucket()
The token bucket configuration to use for rate limiting connections that are processed by the filter's filter chain. Each incoming connection processed by the filter consumes a single token. If the token is available, the connection will be allowed. If no tokens are available, the connection will be immediately closed. .. note:: In the current implementation each filter and filter chain has an independent rate limit. .. 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 = 2 [(.validate.rules) = { ... }hasTokenBucket in interface LocalRateLimitOrBuilderpublic TokenBucket getTokenBucket()
The token bucket configuration to use for rate limiting connections that are processed by the filter's filter chain. Each incoming connection processed by the filter consumes a single token. If the token is available, the connection will be allowed. If no tokens are available, the connection will be immediately closed. .. note:: In the current implementation each filter and filter chain has an independent rate limit. .. 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 = 2 [(.validate.rules) = { ... }getTokenBucket in interface LocalRateLimitOrBuilderpublic LocalRateLimit.Builder setTokenBucket(TokenBucket value)
The token bucket configuration to use for rate limiting connections that are processed by the filter's filter chain. Each incoming connection processed by the filter consumes a single token. If the token is available, the connection will be allowed. If no tokens are available, the connection will be immediately closed. .. note:: In the current implementation each filter and filter chain has an independent rate limit. .. 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 = 2 [(.validate.rules) = { ... }public LocalRateLimit.Builder setTokenBucket(TokenBucket.Builder builderForValue)
The token bucket configuration to use for rate limiting connections that are processed by the filter's filter chain. Each incoming connection processed by the filter consumes a single token. If the token is available, the connection will be allowed. If no tokens are available, the connection will be immediately closed. .. note:: In the current implementation each filter and filter chain has an independent rate limit. .. 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 = 2 [(.validate.rules) = { ... }public LocalRateLimit.Builder mergeTokenBucket(TokenBucket value)
The token bucket configuration to use for rate limiting connections that are processed by the filter's filter chain. Each incoming connection processed by the filter consumes a single token. If the token is available, the connection will be allowed. If no tokens are available, the connection will be immediately closed. .. note:: In the current implementation each filter and filter chain has an independent rate limit. .. 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 = 2 [(.validate.rules) = { ... }public LocalRateLimit.Builder clearTokenBucket()
The token bucket configuration to use for rate limiting connections that are processed by the filter's filter chain. Each incoming connection processed by the filter consumes a single token. If the token is available, the connection will be allowed. If no tokens are available, the connection will be immediately closed. .. note:: In the current implementation each filter and filter chain has an independent rate limit. .. 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 = 2 [(.validate.rules) = { ... }public TokenBucket.Builder getTokenBucketBuilder()
The token bucket configuration to use for rate limiting connections that are processed by the filter's filter chain. Each incoming connection processed by the filter consumes a single token. If the token is available, the connection will be allowed. If no tokens are available, the connection will be immediately closed. .. note:: In the current implementation each filter and filter chain has an independent rate limit. .. 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 = 2 [(.validate.rules) = { ... }public TokenBucketOrBuilder getTokenBucketOrBuilder()
The token bucket configuration to use for rate limiting connections that are processed by the filter's filter chain. Each incoming connection processed by the filter consumes a single token. If the token is available, the connection will be allowed. If no tokens are available, the connection will be immediately closed. .. note:: In the current implementation each filter and filter chain has an independent rate limit. .. 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 = 2 [(.validate.rules) = { ... }getTokenBucketOrBuilder in interface LocalRateLimitOrBuilderpublic boolean hasRuntimeEnabled()
Runtime flag that controls whether the filter is enabled or not. If not specified, defaults to enabled.
.envoy.config.core.v3.RuntimeFeatureFlag runtime_enabled = 3;hasRuntimeEnabled in interface LocalRateLimitOrBuilderpublic RuntimeFeatureFlag getRuntimeEnabled()
Runtime flag that controls whether the filter is enabled or not. If not specified, defaults to enabled.
.envoy.config.core.v3.RuntimeFeatureFlag runtime_enabled = 3;getRuntimeEnabled in interface LocalRateLimitOrBuilderpublic LocalRateLimit.Builder setRuntimeEnabled(RuntimeFeatureFlag value)
Runtime flag that controls whether the filter is enabled or not. If not specified, defaults to enabled.
.envoy.config.core.v3.RuntimeFeatureFlag runtime_enabled = 3;public LocalRateLimit.Builder setRuntimeEnabled(RuntimeFeatureFlag.Builder builderForValue)
Runtime flag that controls whether the filter is enabled or not. If not specified, defaults to enabled.
.envoy.config.core.v3.RuntimeFeatureFlag runtime_enabled = 3;public LocalRateLimit.Builder mergeRuntimeEnabled(RuntimeFeatureFlag value)
Runtime flag that controls whether the filter is enabled or not. If not specified, defaults to enabled.
.envoy.config.core.v3.RuntimeFeatureFlag runtime_enabled = 3;public LocalRateLimit.Builder clearRuntimeEnabled()
Runtime flag that controls whether the filter is enabled or not. If not specified, defaults to enabled.
.envoy.config.core.v3.RuntimeFeatureFlag runtime_enabled = 3;public RuntimeFeatureFlag.Builder getRuntimeEnabledBuilder()
Runtime flag that controls whether the filter is enabled or not. If not specified, defaults to enabled.
.envoy.config.core.v3.RuntimeFeatureFlag runtime_enabled = 3;public RuntimeFeatureFlagOrBuilder getRuntimeEnabledOrBuilder()
Runtime flag that controls whether the filter is enabled or not. If not specified, defaults to enabled.
.envoy.config.core.v3.RuntimeFeatureFlag runtime_enabled = 3;getRuntimeEnabledOrBuilder in interface LocalRateLimitOrBuilderpublic 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.