Class LocalRateLimit.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<LocalRateLimit.Builder>
-
- io.envoyproxy.envoy.config.filter.network.local_rate_limit.v2alpha.LocalRateLimit.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,LocalRateLimitOrBuilder,Cloneable
- Enclosing class:
- LocalRateLimit
public static final class LocalRateLimit.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LocalRateLimit.Builder> implements LocalRateLimitOrBuilder
Protobuf typeenvoy.config.filter.network.local_rate_limit.v2alpha.LocalRateLimit
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LocalRateLimit.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)LocalRateLimitbuild()LocalRateLimitbuildPartial()LocalRateLimit.Builderclear()LocalRateLimit.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)LocalRateLimit.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)LocalRateLimit.BuilderclearRuntimeEnabled()Runtime flag that controls whether the filter is enabled or not.LocalRateLimit.BuilderclearStatPrefix()The prefix to use when emitting :ref:`statistics <config_network_filters_local_rate_limit_stats>`.LocalRateLimit.BuilderclearTokenBucket()The token bucket configuration to use for rate limiting connections that are processed by the filter's filter chain.LocalRateLimit.Builderclone()LocalRateLimitgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()RuntimeFeatureFlaggetRuntimeEnabled()Runtime flag that controls whether the filter is enabled or not.RuntimeFeatureFlag.BuildergetRuntimeEnabledBuilder()Runtime flag that controls whether the filter is enabled or not.RuntimeFeatureFlagOrBuildergetRuntimeEnabledOrBuilder()Runtime flag that controls whether the filter is enabled or not.StringgetStatPrefix()The prefix to use when emitting :ref:`statistics <config_network_filters_local_rate_limit_stats>`.com.google.protobuf.ByteStringgetStatPrefixBytes()The prefix to use when emitting :ref:`statistics <config_network_filters_local_rate_limit_stats>`.TokenBucketgetTokenBucket()The token bucket configuration to use for rate limiting connections that are processed by the filter's filter chain.TokenBucket.BuildergetTokenBucketBuilder()The token bucket configuration to use for rate limiting connections that are processed by the filter's filter chain.TokenBucketOrBuildergetTokenBucketOrBuilder()The token bucket configuration to use for rate limiting connections that are processed by the filter's filter chain.booleanhasRuntimeEnabled()Runtime flag that controls whether the filter is enabled or not.booleanhasTokenBucket()The token bucket configuration to use for rate limiting connections that are processed by the filter's filter chain.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()LocalRateLimit.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)LocalRateLimit.BuildermergeFrom(com.google.protobuf.Message other)LocalRateLimit.BuildermergeFrom(LocalRateLimit other)LocalRateLimit.BuildermergeRuntimeEnabled(RuntimeFeatureFlag value)Runtime flag that controls whether the filter is enabled or not.LocalRateLimit.BuildermergeTokenBucket(TokenBucket value)The token bucket configuration to use for rate limiting connections that are processed by the filter's filter chain.LocalRateLimit.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)LocalRateLimit.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)LocalRateLimit.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)LocalRateLimit.BuildersetRuntimeEnabled(RuntimeFeatureFlag value)Runtime flag that controls whether the filter is enabled or not.LocalRateLimit.BuildersetRuntimeEnabled(RuntimeFeatureFlag.Builder builderForValue)Runtime flag that controls whether the filter is enabled or not.LocalRateLimit.BuildersetStatPrefix(String value)The prefix to use when emitting :ref:`statistics <config_network_filters_local_rate_limit_stats>`.LocalRateLimit.BuildersetStatPrefixBytes(com.google.protobuf.ByteString value)The prefix to use when emitting :ref:`statistics <config_network_filters_local_rate_limit_stats>`.LocalRateLimit.BuildersetTokenBucket(TokenBucket value)The token bucket configuration to use for rate limiting connections that are processed by the filter's filter chain.LocalRateLimit.BuildersetTokenBucket(TokenBucket.Builder builderForValue)The token bucket configuration to use for rate limiting connections that are processed by the filter's filter chain.LocalRateLimit.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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.Builder<LocalRateLimit.Builder>
-
clear
public LocalRateLimit.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<LocalRateLimit.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<LocalRateLimit.Builder>
-
getDefaultInstanceForType
public LocalRateLimit getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public LocalRateLimit build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public LocalRateLimit buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public LocalRateLimit.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<LocalRateLimit.Builder>
-
setField
public LocalRateLimit.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LocalRateLimit.Builder>
-
clearField
public LocalRateLimit.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LocalRateLimit.Builder>
-
clearOneof
public LocalRateLimit.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<LocalRateLimit.Builder>
-
setRepeatedField
public LocalRateLimit.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LocalRateLimit.Builder>
-
addRepeatedField
public LocalRateLimit.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LocalRateLimit.Builder>
-
mergeFrom
public LocalRateLimit.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LocalRateLimit.Builder>
-
mergeFrom
public LocalRateLimit.Builder mergeFrom(LocalRateLimit other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<LocalRateLimit.Builder>
-
mergeFrom
public LocalRateLimit.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LocalRateLimit.Builder>- Throws:
IOException
-
getStatPrefix
public String getStatPrefix()
The prefix to use when emitting :ref:`statistics <config_network_filters_local_rate_limit_stats>`.
string stat_prefix = 1 [(.validate.rules) = { ... }- Specified by:
getStatPrefixin interfaceLocalRateLimitOrBuilder- Returns:
- The statPrefix.
-
getStatPrefixBytes
public 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) = { ... }- Specified by:
getStatPrefixBytesin interfaceLocalRateLimitOrBuilder- Returns:
- The bytes for statPrefix.
-
setStatPrefix
public 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) = { ... }- Parameters:
value- The statPrefix to set.- Returns:
- This builder for chaining.
-
clearStatPrefix
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) = { ... }- Returns:
- This builder for chaining.
-
setStatPrefixBytes
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) = { ... }- Parameters:
value- The bytes for statPrefix to set.- Returns:
- This builder for chaining.
-
hasTokenBucket
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.TokenBucket.fill_interval>` must be >= 50ms to avoid too aggressive refills.
.envoy.type.TokenBucket token_bucket = 2 [(.validate.rules) = { ... }- Specified by:
hasTokenBucketin interfaceLocalRateLimitOrBuilder- Returns:
- Whether the tokenBucket field is set.
-
getTokenBucket
public 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.TokenBucket.fill_interval>` must be >= 50ms to avoid too aggressive refills.
.envoy.type.TokenBucket token_bucket = 2 [(.validate.rules) = { ... }- Specified by:
getTokenBucketin interfaceLocalRateLimitOrBuilder- Returns:
- The tokenBucket.
-
setTokenBucket
public 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.TokenBucket.fill_interval>` must be >= 50ms to avoid too aggressive refills.
.envoy.type.TokenBucket token_bucket = 2 [(.validate.rules) = { ... }
-
setTokenBucket
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.TokenBucket.fill_interval>` must be >= 50ms to avoid too aggressive refills.
.envoy.type.TokenBucket token_bucket = 2 [(.validate.rules) = { ... }
-
mergeTokenBucket
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.TokenBucket.fill_interval>` must be >= 50ms to avoid too aggressive refills.
.envoy.type.TokenBucket token_bucket = 2 [(.validate.rules) = { ... }
-
clearTokenBucket
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.TokenBucket.fill_interval>` must be >= 50ms to avoid too aggressive refills.
.envoy.type.TokenBucket token_bucket = 2 [(.validate.rules) = { ... }
-
getTokenBucketBuilder
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.TokenBucket.fill_interval>` must be >= 50ms to avoid too aggressive refills.
.envoy.type.TokenBucket token_bucket = 2 [(.validate.rules) = { ... }
-
getTokenBucketOrBuilder
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.TokenBucket.fill_interval>` must be >= 50ms to avoid too aggressive refills.
.envoy.type.TokenBucket token_bucket = 2 [(.validate.rules) = { ... }- Specified by:
getTokenBucketOrBuilderin interfaceLocalRateLimitOrBuilder
-
hasRuntimeEnabled
public boolean hasRuntimeEnabled()
Runtime flag that controls whether the filter is enabled or not. If not specified, defaults to enabled.
.envoy.api.v2.core.RuntimeFeatureFlag runtime_enabled = 3;- Specified by:
hasRuntimeEnabledin interfaceLocalRateLimitOrBuilder- Returns:
- Whether the runtimeEnabled field is set.
-
getRuntimeEnabled
public RuntimeFeatureFlag getRuntimeEnabled()
Runtime flag that controls whether the filter is enabled or not. If not specified, defaults to enabled.
.envoy.api.v2.core.RuntimeFeatureFlag runtime_enabled = 3;- Specified by:
getRuntimeEnabledin interfaceLocalRateLimitOrBuilder- Returns:
- The runtimeEnabled.
-
setRuntimeEnabled
public LocalRateLimit.Builder setRuntimeEnabled(RuntimeFeatureFlag value)
Runtime flag that controls whether the filter is enabled or not. If not specified, defaults to enabled.
.envoy.api.v2.core.RuntimeFeatureFlag runtime_enabled = 3;
-
setRuntimeEnabled
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.api.v2.core.RuntimeFeatureFlag runtime_enabled = 3;
-
mergeRuntimeEnabled
public LocalRateLimit.Builder mergeRuntimeEnabled(RuntimeFeatureFlag value)
Runtime flag that controls whether the filter is enabled or not. If not specified, defaults to enabled.
.envoy.api.v2.core.RuntimeFeatureFlag runtime_enabled = 3;
-
clearRuntimeEnabled
public LocalRateLimit.Builder clearRuntimeEnabled()
Runtime flag that controls whether the filter is enabled or not. If not specified, defaults to enabled.
.envoy.api.v2.core.RuntimeFeatureFlag runtime_enabled = 3;
-
getRuntimeEnabledBuilder
public RuntimeFeatureFlag.Builder getRuntimeEnabledBuilder()
Runtime flag that controls whether the filter is enabled or not. If not specified, defaults to enabled.
.envoy.api.v2.core.RuntimeFeatureFlag runtime_enabled = 3;
-
getRuntimeEnabledOrBuilder
public RuntimeFeatureFlagOrBuilder getRuntimeEnabledOrBuilder()
Runtime flag that controls whether the filter is enabled or not. If not specified, defaults to enabled.
.envoy.api.v2.core.RuntimeFeatureFlag runtime_enabled = 3;- Specified by:
getRuntimeEnabledOrBuilderin interfaceLocalRateLimitOrBuilder
-
setUnknownFields
public final LocalRateLimit.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LocalRateLimit.Builder>
-
mergeUnknownFields
public final LocalRateLimit.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LocalRateLimit.Builder>
-
-