java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
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 type envoy.extensions.filters.network.connection_limit.v3.ConnectionLimit
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ConnectionLimit.Builder>
    • clear

      public ConnectionLimit.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<ConnectionLimit.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ConnectionLimit.Builder>
    • getDefaultInstanceForType

      public ConnectionLimit getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ConnectionLimit build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ConnectionLimit buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public ConnectionLimit.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<ConnectionLimit.Builder>
    • setField

      public ConnectionLimit.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<ConnectionLimit.Builder>
    • clearField

      public ConnectionLimit.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ConnectionLimit.Builder>
    • clearOneof

      public ConnectionLimit.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ConnectionLimit.Builder>
    • setRepeatedField

      public ConnectionLimit.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ConnectionLimit.Builder>
    • addRepeatedField

      public ConnectionLimit.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ConnectionLimit.Builder>
    • mergeFrom

      public ConnectionLimit.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ConnectionLimit.Builder>
    • mergeFrom

      public ConnectionLimit.Builder mergeFrom(ConnectionLimit other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      getStatPrefix in interface ConnectionLimitOrBuilder
      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:
      getStatPrefixBytes in interface ConnectionLimitOrBuilder
      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:
      hasMaxConnections in interface ConnectionLimitOrBuilder
      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:
      getMaxConnections in interface ConnectionLimitOrBuilder
      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:
      getMaxConnectionsOrBuilder in interface ConnectionLimitOrBuilder
    • 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:
      hasDelay in interface ConnectionLimitOrBuilder
      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:
      getDelay in interface ConnectionLimitOrBuilder
      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:
      getDelayOrBuilder in interface ConnectionLimitOrBuilder
    • 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:
      hasRuntimeEnabled in interface ConnectionLimitOrBuilder
      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:
      getRuntimeEnabled in interface ConnectionLimitOrBuilder
      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:
      getRuntimeEnabledOrBuilder in interface ConnectionLimitOrBuilder
    • setUnknownFields

      public final ConnectionLimit.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ConnectionLimit.Builder>
    • mergeUnknownFields

      public final ConnectionLimit.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ConnectionLimit.Builder>