Class RateLimit.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<RateLimit.Builder>
io.envoyproxy.envoy.extensions.filters.network.thrift_proxy.filters.ratelimit.v3.RateLimit.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,RateLimitOrBuilder,Cloneable
- Enclosing class:
- RateLimit
public static final class RateLimit.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<RateLimit.Builder>
implements RateLimitOrBuilder
[#next-free-field: 6]Protobuf type
envoy.extensions.filters.network.thrift_proxy.filters.ratelimit.v3.RateLimit-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The rate limit domain to use in the rate limit service request.The filter's behaviour in case the rate limiting service does not respond back.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Configuration for an external rate limit service provider.Specifies the rate limit configuration stage.The timeout in milliseconds for the rate limit service RPC.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe rate limit domain to use in the rate limit service request.com.google.protobuf.ByteStringThe rate limit domain to use in the rate limit service request.booleanThe filter's behaviour in case the rate limiting service does not respond back.Configuration for an external rate limit service provider.Configuration for an external rate limit service provider.Configuration for an external rate limit service provider.intgetStage()Specifies the rate limit configuration stage.com.google.protobuf.DurationThe timeout in milliseconds for the rate limit service RPC.com.google.protobuf.Duration.BuilderThe timeout in milliseconds for the rate limit service RPC.com.google.protobuf.DurationOrBuilderThe timeout in milliseconds for the rate limit service RPC.booleanConfiguration for an external rate limit service provider.booleanThe timeout in milliseconds for the rate limit service RPC.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Configuration for an external rate limit service provider.mergeTimeout(com.google.protobuf.Duration value) The timeout in milliseconds for the rate limit service RPC.final RateLimit.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) The rate limit domain to use in the rate limit service request.setDomainBytes(com.google.protobuf.ByteString value) The rate limit domain to use in the rate limit service request.setFailureModeDeny(boolean value) The filter's behaviour in case the rate limiting service does not respond back.Configuration for an external rate limit service provider.setRateLimitService(RateLimitServiceConfig.Builder builderForValue) Configuration for an external rate limit service provider.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setStage(int value) Specifies the rate limit configuration stage.setTimeout(com.google.protobuf.Duration value) The timeout in milliseconds for the rate limit service RPC.setTimeout(com.google.protobuf.Duration.Builder builderForValue) The timeout in milliseconds for the rate limit service RPC.final RateLimit.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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<RateLimit.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<RateLimit.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<RateLimit.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.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<RateLimit.Builder>
-
setField
public RateLimit.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<RateLimit.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimit.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimit.Builder>
-
setRepeatedField
public RateLimit.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<RateLimit.Builder>
-
addRepeatedField
public RateLimit.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<RateLimit.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RateLimit.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimit.Builder>
-
mergeFrom
public RateLimit.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<RateLimit.Builder>- Throws:
IOException
-
getDomain
The rate limit domain to use in the rate limit service request.
string domain = 1 [(.validate.rules) = { ... }- Specified by:
getDomainin interfaceRateLimitOrBuilder- Returns:
- The domain.
-
getDomainBytes
public com.google.protobuf.ByteString getDomainBytes()The rate limit domain to use in the rate limit service request.
string domain = 1 [(.validate.rules) = { ... }- Specified by:
getDomainBytesin interfaceRateLimitOrBuilder- Returns:
- The bytes for domain.
-
setDomain
The rate limit domain to use in the rate limit service request.
string domain = 1 [(.validate.rules) = { ... }- Parameters:
value- The domain to set.- Returns:
- This builder for chaining.
-
clearDomain
The rate limit domain to use in the rate limit service request.
string domain = 1 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setDomainBytes
The rate limit domain to use in the rate limit service request.
string domain = 1 [(.validate.rules) = { ... }- Parameters:
value- The bytes for domain to set.- Returns:
- This builder for chaining.
-
getStage
public int getStage()Specifies the rate limit configuration stage. Each configured rate limit filter performs a rate limit check using descriptors configured in the :ref:`envoy_v3_api_msg_extensions.filters.network.thrift_proxy.v3.RouteAction` for the request. Only those entries with a matching stage number are used for a given filter. If not set, the default stage number is 0. .. note:: The filter supports a range of 0 - 10 inclusively for stage numbers.
uint32 stage = 2 [(.validate.rules) = { ... }- Specified by:
getStagein interfaceRateLimitOrBuilder- Returns:
- The stage.
-
setStage
Specifies the rate limit configuration stage. Each configured rate limit filter performs a rate limit check using descriptors configured in the :ref:`envoy_v3_api_msg_extensions.filters.network.thrift_proxy.v3.RouteAction` for the request. Only those entries with a matching stage number are used for a given filter. If not set, the default stage number is 0. .. note:: The filter supports a range of 0 - 10 inclusively for stage numbers.
uint32 stage = 2 [(.validate.rules) = { ... }- Parameters:
value- The stage to set.- Returns:
- This builder for chaining.
-
clearStage
Specifies the rate limit configuration stage. Each configured rate limit filter performs a rate limit check using descriptors configured in the :ref:`envoy_v3_api_msg_extensions.filters.network.thrift_proxy.v3.RouteAction` for the request. Only those entries with a matching stage number are used for a given filter. If not set, the default stage number is 0. .. note:: The filter supports a range of 0 - 10 inclusively for stage numbers.
uint32 stage = 2 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
hasTimeout
public boolean hasTimeout()The timeout in milliseconds for the rate limit service RPC. If not set, this defaults to 20ms.
.google.protobuf.Duration timeout = 3;- Specified by:
hasTimeoutin interfaceRateLimitOrBuilder- Returns:
- Whether the timeout field is set.
-
getTimeout
public com.google.protobuf.Duration getTimeout()The timeout in milliseconds for the rate limit service RPC. If not set, this defaults to 20ms.
.google.protobuf.Duration timeout = 3;- Specified by:
getTimeoutin interfaceRateLimitOrBuilder- Returns:
- The timeout.
-
setTimeout
The timeout in milliseconds for the rate limit service RPC. If not set, this defaults to 20ms.
.google.protobuf.Duration timeout = 3; -
setTimeout
The timeout in milliseconds for the rate limit service RPC. If not set, this defaults to 20ms.
.google.protobuf.Duration timeout = 3; -
mergeTimeout
The timeout in milliseconds for the rate limit service RPC. If not set, this defaults to 20ms.
.google.protobuf.Duration timeout = 3; -
clearTimeout
The timeout in milliseconds for the rate limit service RPC. If not set, this defaults to 20ms.
.google.protobuf.Duration timeout = 3; -
getTimeoutBuilder
public com.google.protobuf.Duration.Builder getTimeoutBuilder()The timeout in milliseconds for the rate limit service RPC. If not set, this defaults to 20ms.
.google.protobuf.Duration timeout = 3; -
getTimeoutOrBuilder
public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder()The timeout in milliseconds for the rate limit service RPC. If not set, this defaults to 20ms.
.google.protobuf.Duration timeout = 3;- Specified by:
getTimeoutOrBuilderin interfaceRateLimitOrBuilder
-
getFailureModeDeny
public boolean getFailureModeDeny()The filter's behaviour in case the rate limiting service does not respond back. When it is set to true, Envoy will not allow traffic in case of communication failure between rate limiting service and the proxy. Defaults to false.
bool failure_mode_deny = 4;- Specified by:
getFailureModeDenyin interfaceRateLimitOrBuilder- Returns:
- The failureModeDeny.
-
setFailureModeDeny
The filter's behaviour in case the rate limiting service does not respond back. When it is set to true, Envoy will not allow traffic in case of communication failure between rate limiting service and the proxy. Defaults to false.
bool failure_mode_deny = 4;- Parameters:
value- The failureModeDeny to set.- Returns:
- This builder for chaining.
-
clearFailureModeDeny
The filter's behaviour in case the rate limiting service does not respond back. When it is set to true, Envoy will not allow traffic in case of communication failure between rate limiting service and the proxy. Defaults to false.
bool failure_mode_deny = 4;- Returns:
- This builder for chaining.
-
hasRateLimitService
public boolean hasRateLimitService()Configuration for an external rate limit service provider. If not specified, any calls to the rate limit service will immediately return success.
.envoy.config.ratelimit.v3.RateLimitServiceConfig rate_limit_service = 5 [(.validate.rules) = { ... }- Specified by:
hasRateLimitServicein interfaceRateLimitOrBuilder- Returns:
- Whether the rateLimitService field is set.
-
getRateLimitService
Configuration for an external rate limit service provider. If not specified, any calls to the rate limit service will immediately return success.
.envoy.config.ratelimit.v3.RateLimitServiceConfig rate_limit_service = 5 [(.validate.rules) = { ... }- Specified by:
getRateLimitServicein interfaceRateLimitOrBuilder- Returns:
- The rateLimitService.
-
setRateLimitService
Configuration for an external rate limit service provider. If not specified, any calls to the rate limit service will immediately return success.
.envoy.config.ratelimit.v3.RateLimitServiceConfig rate_limit_service = 5 [(.validate.rules) = { ... } -
setRateLimitService
Configuration for an external rate limit service provider. If not specified, any calls to the rate limit service will immediately return success.
.envoy.config.ratelimit.v3.RateLimitServiceConfig rate_limit_service = 5 [(.validate.rules) = { ... } -
mergeRateLimitService
Configuration for an external rate limit service provider. If not specified, any calls to the rate limit service will immediately return success.
.envoy.config.ratelimit.v3.RateLimitServiceConfig rate_limit_service = 5 [(.validate.rules) = { ... } -
clearRateLimitService
Configuration for an external rate limit service provider. If not specified, any calls to the rate limit service will immediately return success.
.envoy.config.ratelimit.v3.RateLimitServiceConfig rate_limit_service = 5 [(.validate.rules) = { ... } -
getRateLimitServiceBuilder
Configuration for an external rate limit service provider. If not specified, any calls to the rate limit service will immediately return success.
.envoy.config.ratelimit.v3.RateLimitServiceConfig rate_limit_service = 5 [(.validate.rules) = { ... } -
getRateLimitServiceOrBuilder
Configuration for an external rate limit service provider. If not specified, any calls to the rate limit service will immediately return success.
.envoy.config.ratelimit.v3.RateLimitServiceConfig rate_limit_service = 5 [(.validate.rules) = { ... }- Specified by:
getRateLimitServiceOrBuilderin interfaceRateLimitOrBuilder
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimit.Builder>
-
mergeUnknownFields
public final RateLimit.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimit.Builder>
-