Class RateLimitConfig
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.envoyproxy.envoy.extensions.filters.http.ratelimit.v3.RateLimitConfig
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,RateLimitConfigOrBuilder,Serializable
public final class RateLimitConfig extends com.google.protobuf.GeneratedMessageV3 implements RateLimitConfigOrBuilder
Global rate limiting :ref:`architecture overview <arch_overview_global_rate_limit>`. Also applies to Local rate limiting :ref:`using descriptors <config_http_filters_local_rate_limit_descriptors>`. [#not-implemented-hide:]
Protobuf typeenvoy.extensions.filters.http.ratelimit.v3.RateLimitConfig- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRateLimitConfig.Action[#next-free-field: 10]static interfaceRateLimitConfig.ActionOrBuilderstatic classRateLimitConfig.BuilderGlobal rate limiting :ref:`architecture overview <arch_overview_global_rate_limit>`.static classRateLimitConfig.OverrideProtobuf typeenvoy.extensions.filters.http.ratelimit.v3.RateLimitConfig.Overridestatic interfaceRateLimitConfig.OverrideOrBuilder-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intACTIONS_FIELD_NUMBERstatic intDISABLE_KEY_FIELD_NUMBERstatic intLIMIT_FIELD_NUMBERstatic intSTAGE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)RateLimitConfig.ActiongetActions(int index)A list of actions that are to be applied for this rate limit configuration.intgetActionsCount()A list of actions that are to be applied for this rate limit configuration.List<RateLimitConfig.Action>getActionsList()A list of actions that are to be applied for this rate limit configuration.RateLimitConfig.ActionOrBuildergetActionsOrBuilder(int index)A list of actions that are to be applied for this rate limit configuration.List<? extends RateLimitConfig.ActionOrBuilder>getActionsOrBuilderList()A list of actions that are to be applied for this rate limit configuration.static RateLimitConfiggetDefaultInstance()RateLimitConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetDisableKey()The key to be set in runtime to disable this rate limit configuration.com.google.protobuf.ByteStringgetDisableKeyBytes()The key to be set in runtime to disable this rate limit configuration.RateLimitConfig.OverridegetLimit()An optional limit override to be appended to the descriptor produced by this rate limit configuration.RateLimitConfig.OverrideOrBuildergetLimitOrBuilder()An optional limit override to be appended to the descriptor produced by this rate limit configuration.com.google.protobuf.Parser<RateLimitConfig>getParserForType()intgetSerializedSize()intgetStage()Refers to the stage set in the filter.com.google.protobuf.UnknownFieldSetgetUnknownFields()inthashCode()booleanhasLimit()An optional limit override to be appended to the descriptor produced by this rate limit configuration.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static RateLimitConfig.BuildernewBuilder()static RateLimitConfig.BuildernewBuilder(RateLimitConfig prototype)RateLimitConfig.BuildernewBuilderForType()protected RateLimitConfig.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static RateLimitConfigparseDelimitedFrom(InputStream input)static RateLimitConfigparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RateLimitConfigparseFrom(byte[] data)static RateLimitConfigparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RateLimitConfigparseFrom(com.google.protobuf.ByteString data)static RateLimitConfigparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RateLimitConfigparseFrom(com.google.protobuf.CodedInputStream input)static RateLimitConfigparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RateLimitConfigparseFrom(InputStream input)static RateLimitConfigparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RateLimitConfigparseFrom(ByteBuffer data)static RateLimitConfigparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<RateLimitConfig>parser()RateLimitConfig.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
STAGE_FIELD_NUMBER
public static final int STAGE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DISABLE_KEY_FIELD_NUMBER
public static final int DISABLE_KEY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ACTIONS_FIELD_NUMBER
public static final int ACTIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LIMIT_FIELD_NUMBER
public static final int LIMIT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getStage
public int getStage()
Refers to the stage set in the filter. The rate limit configuration only applies to filters with the same stage number. The default stage number is 0. .. note:: The filter supports a range of 0 - 10 inclusively for stage numbers.
uint32 stage = 1 [(.validate.rules) = { ... }- Specified by:
getStagein interfaceRateLimitConfigOrBuilder- Returns:
- The stage.
-
getDisableKey
public String getDisableKey()
The key to be set in runtime to disable this rate limit configuration.
string disable_key = 2;- Specified by:
getDisableKeyin interfaceRateLimitConfigOrBuilder- Returns:
- The disableKey.
-
getDisableKeyBytes
public com.google.protobuf.ByteString getDisableKeyBytes()
The key to be set in runtime to disable this rate limit configuration.
string disable_key = 2;- Specified by:
getDisableKeyBytesin interfaceRateLimitConfigOrBuilder- Returns:
- The bytes for disableKey.
-
getActionsList
public List<RateLimitConfig.Action> getActionsList()
A list of actions that are to be applied for this rate limit configuration. Order matters as the actions are processed sequentially and the descriptor is composed by appending descriptor entries in that sequence. If an action cannot append a descriptor entry, no descriptor is generated for the configuration. See :ref:`composing actions <config_http_filters_rate_limit_composing_actions>` for additional documentation.
repeated .envoy.extensions.filters.http.ratelimit.v3.RateLimitConfig.Action actions = 3 [(.validate.rules) = { ... }- Specified by:
getActionsListin interfaceRateLimitConfigOrBuilder
-
getActionsOrBuilderList
public List<? extends RateLimitConfig.ActionOrBuilder> getActionsOrBuilderList()
A list of actions that are to be applied for this rate limit configuration. Order matters as the actions are processed sequentially and the descriptor is composed by appending descriptor entries in that sequence. If an action cannot append a descriptor entry, no descriptor is generated for the configuration. See :ref:`composing actions <config_http_filters_rate_limit_composing_actions>` for additional documentation.
repeated .envoy.extensions.filters.http.ratelimit.v3.RateLimitConfig.Action actions = 3 [(.validate.rules) = { ... }- Specified by:
getActionsOrBuilderListin interfaceRateLimitConfigOrBuilder
-
getActionsCount
public int getActionsCount()
A list of actions that are to be applied for this rate limit configuration. Order matters as the actions are processed sequentially and the descriptor is composed by appending descriptor entries in that sequence. If an action cannot append a descriptor entry, no descriptor is generated for the configuration. See :ref:`composing actions <config_http_filters_rate_limit_composing_actions>` for additional documentation.
repeated .envoy.extensions.filters.http.ratelimit.v3.RateLimitConfig.Action actions = 3 [(.validate.rules) = { ... }- Specified by:
getActionsCountin interfaceRateLimitConfigOrBuilder
-
getActions
public RateLimitConfig.Action getActions(int index)
A list of actions that are to be applied for this rate limit configuration. Order matters as the actions are processed sequentially and the descriptor is composed by appending descriptor entries in that sequence. If an action cannot append a descriptor entry, no descriptor is generated for the configuration. See :ref:`composing actions <config_http_filters_rate_limit_composing_actions>` for additional documentation.
repeated .envoy.extensions.filters.http.ratelimit.v3.RateLimitConfig.Action actions = 3 [(.validate.rules) = { ... }- Specified by:
getActionsin interfaceRateLimitConfigOrBuilder
-
getActionsOrBuilder
public RateLimitConfig.ActionOrBuilder getActionsOrBuilder(int index)
A list of actions that are to be applied for this rate limit configuration. Order matters as the actions are processed sequentially and the descriptor is composed by appending descriptor entries in that sequence. If an action cannot append a descriptor entry, no descriptor is generated for the configuration. See :ref:`composing actions <config_http_filters_rate_limit_composing_actions>` for additional documentation.
repeated .envoy.extensions.filters.http.ratelimit.v3.RateLimitConfig.Action actions = 3 [(.validate.rules) = { ... }- Specified by:
getActionsOrBuilderin interfaceRateLimitConfigOrBuilder
-
hasLimit
public boolean hasLimit()
An optional limit override to be appended to the descriptor produced by this rate limit configuration. If the override value is invalid or cannot be resolved from metadata, no override is provided. See :ref:`rate limit override <config_http_filters_rate_limit_rate_limit_override>` for more information.
.envoy.extensions.filters.http.ratelimit.v3.RateLimitConfig.Override limit = 4;- Specified by:
hasLimitin interfaceRateLimitConfigOrBuilder- Returns:
- Whether the limit field is set.
-
getLimit
public RateLimitConfig.Override getLimit()
An optional limit override to be appended to the descriptor produced by this rate limit configuration. If the override value is invalid or cannot be resolved from metadata, no override is provided. See :ref:`rate limit override <config_http_filters_rate_limit_rate_limit_override>` for more information.
.envoy.extensions.filters.http.ratelimit.v3.RateLimitConfig.Override limit = 4;- Specified by:
getLimitin interfaceRateLimitConfigOrBuilder- Returns:
- The limit.
-
getLimitOrBuilder
public RateLimitConfig.OverrideOrBuilder getLimitOrBuilder()
An optional limit override to be appended to the descriptor produced by this rate limit configuration. If the override value is invalid or cannot be resolved from metadata, no override is provided. See :ref:`rate limit override <config_http_filters_rate_limit_rate_limit_override>` for more information.
.envoy.extensions.filters.http.ratelimit.v3.RateLimitConfig.Override limit = 4;- Specified by:
getLimitOrBuilderin interfaceRateLimitConfigOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static RateLimitConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RateLimitConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RateLimitConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RateLimitConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RateLimitConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RateLimitConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RateLimitConfig parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static RateLimitConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static RateLimitConfig parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static RateLimitConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static RateLimitConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static RateLimitConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public RateLimitConfig.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static RateLimitConfig.Builder newBuilder()
-
newBuilder
public static RateLimitConfig.Builder newBuilder(RateLimitConfig prototype)
-
toBuilder
public RateLimitConfig.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected RateLimitConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static RateLimitConfig getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<RateLimitConfig> parser()
-
getParserForType
public com.google.protobuf.Parser<RateLimitConfig> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public RateLimitConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-