public final class LocalRateLimit extends com.google.protobuf.GeneratedMessageV3 implements LocalRateLimitOrBuilder
envoy.extensions.filters.network.local_ratelimit.v3.LocalRateLimit| Modifier and Type | Class and Description |
|---|---|
static class |
LocalRateLimit.Builder
Protobuf type
envoy.extensions.filters.network.local_ratelimit.v3.LocalRateLimit |
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| Modifier and Type | Field and Description |
|---|---|
static int |
RUNTIME_ENABLED_FIELD_NUMBER |
static int |
STAT_PREFIX_FIELD_NUMBER |
static int |
TOKEN_BUCKET_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static LocalRateLimit |
getDefaultInstance() |
LocalRateLimit |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Parser<LocalRateLimit> |
getParserForType() |
RuntimeFeatureFlag |
getRuntimeEnabled()
Runtime flag that controls whether the filter is enabled or not.
|
RuntimeFeatureFlagOrBuilder |
getRuntimeEnabledOrBuilder()
Runtime flag that controls whether the filter is enabled or not.
|
int |
getSerializedSize() |
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.
|
TokenBucketOrBuilder |
getTokenBucketOrBuilder()
The token bucket configuration to use for rate limiting connections that are processed by the
filter's filter chain.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
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() |
static LocalRateLimit.Builder |
newBuilder() |
static LocalRateLimit.Builder |
newBuilder(LocalRateLimit prototype) |
LocalRateLimit.Builder |
newBuilderForType() |
protected LocalRateLimit.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static LocalRateLimit |
parseDelimitedFrom(InputStream input) |
static LocalRateLimit |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LocalRateLimit |
parseFrom(byte[] data) |
static LocalRateLimit |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LocalRateLimit |
parseFrom(ByteBuffer data) |
static LocalRateLimit |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LocalRateLimit |
parseFrom(com.google.protobuf.ByteString data) |
static LocalRateLimit |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LocalRateLimit |
parseFrom(com.google.protobuf.CodedInputStream input) |
static LocalRateLimit |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LocalRateLimit |
parseFrom(InputStream input) |
static LocalRateLimit |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<LocalRateLimit> |
parser() |
LocalRateLimit.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int STAT_PREFIX_FIELD_NUMBER
public static final int TOKEN_BUCKET_FIELD_NUMBER
public static final int RUNTIME_ENABLED_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 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 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 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 boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static LocalRateLimit parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LocalRateLimit parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LocalRateLimit parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LocalRateLimit parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LocalRateLimit parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LocalRateLimit parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LocalRateLimit parseFrom(InputStream input) throws IOException
IOExceptionpublic static LocalRateLimit parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static LocalRateLimit parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static LocalRateLimit parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static LocalRateLimit parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static LocalRateLimit parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic LocalRateLimit.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static LocalRateLimit.Builder newBuilder()
public static LocalRateLimit.Builder newBuilder(LocalRateLimit prototype)
public LocalRateLimit.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected LocalRateLimit.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static LocalRateLimit getDefaultInstance()
public static com.google.protobuf.Parser<LocalRateLimit> parser()
public com.google.protobuf.Parser<LocalRateLimit> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public LocalRateLimit getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018–2021 The Envoy Project. All rights reserved.