Class ConnectionLimit.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ConnectionLimit.Builder>
-
- io.envoyproxy.envoy.extensions.filters.network.connection_limit.v3.ConnectionLimit.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ConnectionLimitOrBuilder,Cloneable
- Enclosing class:
- ConnectionLimit
public static final class ConnectionLimit.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ConnectionLimit.Builder> implements ConnectionLimitOrBuilder
Protobuf typeenvoy.extensions.filters.network.connection_limit.v3.ConnectionLimit
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ConnectionLimit.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ConnectionLimitbuild()ConnectionLimitbuildPartial()ConnectionLimit.Builderclear()ConnectionLimit.BuilderclearDelay()The delay configuration to use for rejecting the connection after some specified time duration instead of immediately rejecting the connection.ConnectionLimit.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ConnectionLimit.BuilderclearMaxConnections()The max connections configuration to use for new incoming connections that are processed by the filter's filter chain.ConnectionLimit.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ConnectionLimit.BuilderclearRuntimeEnabled()Runtime flag that controls whether the filter is enabled or not.ConnectionLimit.BuilderclearStatPrefix()The prefix to use when emitting :ref:`statistics <config_network_filters_connection_limit_stats>`.ConnectionLimit.Builderclone()ConnectionLimitgetDefaultInstanceForType()com.google.protobuf.DurationgetDelay()The delay configuration to use for rejecting the connection after some specified time duration instead of immediately rejecting the connection.com.google.protobuf.Duration.BuildergetDelayBuilder()The delay configuration to use for rejecting the connection after some specified time duration instead of immediately rejecting the connection.com.google.protobuf.DurationOrBuildergetDelayOrBuilder()The delay configuration to use for rejecting the connection after some specified time duration instead of immediately rejecting the connection.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.protobuf.UInt64ValuegetMaxConnections()The max connections configuration to use for new incoming connections that are processed by the filter's filter chain.com.google.protobuf.UInt64Value.BuildergetMaxConnectionsBuilder()The max connections configuration to use for new incoming connections that are processed by the filter's filter chain.com.google.protobuf.UInt64ValueOrBuildergetMaxConnectionsOrBuilder()The max connections configuration to use for new incoming connections that are processed by the filter's filter chain.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_connection_limit_stats>`.com.google.protobuf.ByteStringgetStatPrefixBytes()The prefix to use when emitting :ref:`statistics <config_network_filters_connection_limit_stats>`.booleanhasDelay()The delay configuration to use for rejecting the connection after some specified time duration instead of immediately rejecting the connection.booleanhasMaxConnections()The max connections configuration to use for new incoming connections that are processed by the filter's filter chain.booleanhasRuntimeEnabled()Runtime flag that controls whether the filter is enabled or not.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ConnectionLimit.BuildermergeDelay(com.google.protobuf.Duration value)The delay configuration to use for rejecting the connection after some specified time duration instead of immediately rejecting the connection.ConnectionLimit.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ConnectionLimit.BuildermergeFrom(com.google.protobuf.Message other)ConnectionLimit.BuildermergeFrom(ConnectionLimit other)ConnectionLimit.BuildermergeMaxConnections(com.google.protobuf.UInt64Value value)The max connections configuration to use for new incoming connections that are processed by the filter's filter chain.ConnectionLimit.BuildermergeRuntimeEnabled(RuntimeFeatureFlag value)Runtime flag that controls whether the filter is enabled or not.ConnectionLimit.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ConnectionLimit.BuildersetDelay(com.google.protobuf.Duration value)The delay configuration to use for rejecting the connection after some specified time duration instead of immediately rejecting the connection.ConnectionLimit.BuildersetDelay(com.google.protobuf.Duration.Builder builderForValue)The delay configuration to use for rejecting the connection after some specified time duration instead of immediately rejecting the connection.ConnectionLimit.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ConnectionLimit.BuildersetMaxConnections(com.google.protobuf.UInt64Value value)The max connections configuration to use for new incoming connections that are processed by the filter's filter chain.ConnectionLimit.BuildersetMaxConnections(com.google.protobuf.UInt64Value.Builder builderForValue)The max connections configuration to use for new incoming connections that are processed by the filter's filter chain.ConnectionLimit.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ConnectionLimit.BuildersetRuntimeEnabled(RuntimeFeatureFlag value)Runtime flag that controls whether the filter is enabled or not.ConnectionLimit.BuildersetRuntimeEnabled(RuntimeFeatureFlag.Builder builderForValue)Runtime flag that controls whether the filter is enabled or not.ConnectionLimit.BuildersetStatPrefix(String value)The prefix to use when emitting :ref:`statistics <config_network_filters_connection_limit_stats>`.ConnectionLimit.BuildersetStatPrefixBytes(com.google.protobuf.ByteString value)The prefix to use when emitting :ref:`statistics <config_network_filters_connection_limit_stats>`.ConnectionLimit.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<ConnectionLimit.Builder>
-
clear
public ConnectionLimit.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<ConnectionLimit.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<ConnectionLimit.Builder>
-
getDefaultInstanceForType
public ConnectionLimit getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ConnectionLimit build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ConnectionLimit buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ConnectionLimit.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<ConnectionLimit.Builder>
-
setField
public ConnectionLimit.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<ConnectionLimit.Builder>
-
clearField
public ConnectionLimit.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ConnectionLimit.Builder>
-
clearOneof
public ConnectionLimit.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ConnectionLimit.Builder>
-
setRepeatedField
public ConnectionLimit.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<ConnectionLimit.Builder>
-
addRepeatedField
public ConnectionLimit.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<ConnectionLimit.Builder>
-
mergeFrom
public ConnectionLimit.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ConnectionLimit.Builder>
-
mergeFrom
public ConnectionLimit.Builder mergeFrom(ConnectionLimit other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ConnectionLimit.Builder>
-
mergeFrom
public ConnectionLimit.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<ConnectionLimit.Builder>- Throws:
IOException
-
getStatPrefix
public String getStatPrefix()
The prefix to use when emitting :ref:`statistics <config_network_filters_connection_limit_stats>`.
string stat_prefix = 1 [(.validate.rules) = { ... }- Specified by:
getStatPrefixin interfaceConnectionLimitOrBuilder- Returns:
- The statPrefix.
-
getStatPrefixBytes
public com.google.protobuf.ByteString getStatPrefixBytes()
The prefix to use when emitting :ref:`statistics <config_network_filters_connection_limit_stats>`.
string stat_prefix = 1 [(.validate.rules) = { ... }- Specified by:
getStatPrefixBytesin interfaceConnectionLimitOrBuilder- Returns:
- The bytes for statPrefix.
-
setStatPrefix
public ConnectionLimit.Builder setStatPrefix(String value)
The prefix to use when emitting :ref:`statistics <config_network_filters_connection_limit_stats>`.
string stat_prefix = 1 [(.validate.rules) = { ... }- Parameters:
value- The statPrefix to set.- Returns:
- This builder for chaining.
-
clearStatPrefix
public ConnectionLimit.Builder clearStatPrefix()
The prefix to use when emitting :ref:`statistics <config_network_filters_connection_limit_stats>`.
string stat_prefix = 1 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setStatPrefixBytes
public ConnectionLimit.Builder setStatPrefixBytes(com.google.protobuf.ByteString value)
The prefix to use when emitting :ref:`statistics <config_network_filters_connection_limit_stats>`.
string stat_prefix = 1 [(.validate.rules) = { ... }- Parameters:
value- The bytes for statPrefix to set.- Returns:
- This builder for chaining.
-
hasMaxConnections
public boolean hasMaxConnections()
The max connections configuration to use for new incoming connections that are processed by the filter's filter chain. When max_connection is reached, the incoming connection will be closed after delay duration.
.google.protobuf.UInt64Value max_connections = 2 [(.validate.rules) = { ... }- Specified by:
hasMaxConnectionsin interfaceConnectionLimitOrBuilder- Returns:
- Whether the maxConnections field is set.
-
getMaxConnections
public com.google.protobuf.UInt64Value getMaxConnections()
The max connections configuration to use for new incoming connections that are processed by the filter's filter chain. When max_connection is reached, the incoming connection will be closed after delay duration.
.google.protobuf.UInt64Value max_connections = 2 [(.validate.rules) = { ... }- Specified by:
getMaxConnectionsin interfaceConnectionLimitOrBuilder- Returns:
- The maxConnections.
-
setMaxConnections
public ConnectionLimit.Builder setMaxConnections(com.google.protobuf.UInt64Value value)
The max connections configuration to use for new incoming connections that are processed by the filter's filter chain. When max_connection is reached, the incoming connection will be closed after delay duration.
.google.protobuf.UInt64Value max_connections = 2 [(.validate.rules) = { ... }
-
setMaxConnections
public ConnectionLimit.Builder setMaxConnections(com.google.protobuf.UInt64Value.Builder builderForValue)
The max connections configuration to use for new incoming connections that are processed by the filter's filter chain. When max_connection is reached, the incoming connection will be closed after delay duration.
.google.protobuf.UInt64Value max_connections = 2 [(.validate.rules) = { ... }
-
mergeMaxConnections
public ConnectionLimit.Builder mergeMaxConnections(com.google.protobuf.UInt64Value value)
The max connections configuration to use for new incoming connections that are processed by the filter's filter chain. When max_connection is reached, the incoming connection will be closed after delay duration.
.google.protobuf.UInt64Value max_connections = 2 [(.validate.rules) = { ... }
-
clearMaxConnections
public ConnectionLimit.Builder clearMaxConnections()
The max connections configuration to use for new incoming connections that are processed by the filter's filter chain. When max_connection is reached, the incoming connection will be closed after delay duration.
.google.protobuf.UInt64Value max_connections = 2 [(.validate.rules) = { ... }
-
getMaxConnectionsBuilder
public com.google.protobuf.UInt64Value.Builder getMaxConnectionsBuilder()
The max connections configuration to use for new incoming connections that are processed by the filter's filter chain. When max_connection is reached, the incoming connection will be closed after delay duration.
.google.protobuf.UInt64Value max_connections = 2 [(.validate.rules) = { ... }
-
getMaxConnectionsOrBuilder
public com.google.protobuf.UInt64ValueOrBuilder getMaxConnectionsOrBuilder()
The max connections configuration to use for new incoming connections that are processed by the filter's filter chain. When max_connection is reached, the incoming connection will be closed after delay duration.
.google.protobuf.UInt64Value max_connections = 2 [(.validate.rules) = { ... }- Specified by:
getMaxConnectionsOrBuilderin interfaceConnectionLimitOrBuilder
-
hasDelay
public boolean hasDelay()
The delay configuration to use for rejecting the connection after some specified time duration instead of immediately rejecting the connection. That way, a malicious user is not able to retry as fast as possible which provides a better DoS protection for Envoy. If this is not present, the connection will be closed immediately.
.google.protobuf.Duration delay = 3;- Specified by:
hasDelayin interfaceConnectionLimitOrBuilder- Returns:
- Whether the delay field is set.
-
getDelay
public com.google.protobuf.Duration getDelay()
The delay configuration to use for rejecting the connection after some specified time duration instead of immediately rejecting the connection. That way, a malicious user is not able to retry as fast as possible which provides a better DoS protection for Envoy. If this is not present, the connection will be closed immediately.
.google.protobuf.Duration delay = 3;- Specified by:
getDelayin interfaceConnectionLimitOrBuilder- Returns:
- The delay.
-
setDelay
public ConnectionLimit.Builder setDelay(com.google.protobuf.Duration value)
The delay configuration to use for rejecting the connection after some specified time duration instead of immediately rejecting the connection. That way, a malicious user is not able to retry as fast as possible which provides a better DoS protection for Envoy. If this is not present, the connection will be closed immediately.
.google.protobuf.Duration delay = 3;
-
setDelay
public ConnectionLimit.Builder setDelay(com.google.protobuf.Duration.Builder builderForValue)
The delay configuration to use for rejecting the connection after some specified time duration instead of immediately rejecting the connection. That way, a malicious user is not able to retry as fast as possible which provides a better DoS protection for Envoy. If this is not present, the connection will be closed immediately.
.google.protobuf.Duration delay = 3;
-
mergeDelay
public ConnectionLimit.Builder mergeDelay(com.google.protobuf.Duration value)
The delay configuration to use for rejecting the connection after some specified time duration instead of immediately rejecting the connection. That way, a malicious user is not able to retry as fast as possible which provides a better DoS protection for Envoy. If this is not present, the connection will be closed immediately.
.google.protobuf.Duration delay = 3;
-
clearDelay
public ConnectionLimit.Builder clearDelay()
The delay configuration to use for rejecting the connection after some specified time duration instead of immediately rejecting the connection. That way, a malicious user is not able to retry as fast as possible which provides a better DoS protection for Envoy. If this is not present, the connection will be closed immediately.
.google.protobuf.Duration delay = 3;
-
getDelayBuilder
public com.google.protobuf.Duration.Builder getDelayBuilder()
The delay configuration to use for rejecting the connection after some specified time duration instead of immediately rejecting the connection. That way, a malicious user is not able to retry as fast as possible which provides a better DoS protection for Envoy. If this is not present, the connection will be closed immediately.
.google.protobuf.Duration delay = 3;
-
getDelayOrBuilder
public com.google.protobuf.DurationOrBuilder getDelayOrBuilder()
The delay configuration to use for rejecting the connection after some specified time duration instead of immediately rejecting the connection. That way, a malicious user is not able to retry as fast as possible which provides a better DoS protection for Envoy. If this is not present, the connection will be closed immediately.
.google.protobuf.Duration delay = 3;- Specified by:
getDelayOrBuilderin interfaceConnectionLimitOrBuilder
-
hasRuntimeEnabled
public 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 = 4;- Specified by:
hasRuntimeEnabledin interfaceConnectionLimitOrBuilder- 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.config.core.v3.RuntimeFeatureFlag runtime_enabled = 4;- Specified by:
getRuntimeEnabledin interfaceConnectionLimitOrBuilder- Returns:
- The runtimeEnabled.
-
setRuntimeEnabled
public ConnectionLimit.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 = 4;
-
setRuntimeEnabled
public ConnectionLimit.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 = 4;
-
mergeRuntimeEnabled
public ConnectionLimit.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 = 4;
-
clearRuntimeEnabled
public ConnectionLimit.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 = 4;
-
getRuntimeEnabledBuilder
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 = 4;
-
getRuntimeEnabledOrBuilder
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 = 4;- Specified by:
getRuntimeEnabledOrBuilderin interfaceConnectionLimitOrBuilder
-
setUnknownFields
public final ConnectionLimit.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ConnectionLimit.Builder>
-
mergeUnknownFields
public final ConnectionLimit.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ConnectionLimit.Builder>
-
-