Class HttpFilter.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, HttpFilterOrBuilder, Cloneable
    Enclosing class:
    HttpFilter

    public static final class HttpFilter.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<HttpFilter.Builder>
    implements HttpFilterOrBuilder
     [#next-free-field: 7]
     
    Protobuf type envoy.extensions.filters.network.http_connection_manager.v3.HttpFilter
    • Method Detail

      • 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<HttpFilter.Builder>
      • clear

        public HttpFilter.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<HttpFilter.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<HttpFilter.Builder>
      • getDefaultInstanceForType

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

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

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

        public HttpFilter.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<HttpFilter.Builder>
      • setField

        public HttpFilter.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<HttpFilter.Builder>
      • clearField

        public HttpFilter.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<HttpFilter.Builder>
      • clearOneof

        public HttpFilter.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<HttpFilter.Builder>
      • setRepeatedField

        public HttpFilter.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<HttpFilter.Builder>
      • addRepeatedField

        public HttpFilter.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<HttpFilter.Builder>
      • mergeFrom

        public HttpFilter.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<HttpFilter.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<HttpFilter.Builder>
      • mergeFrom

        public HttpFilter.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<HttpFilter.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         The name of the filter configuration. It also serves as a resource name in ExtensionConfigDS.
         
        string name = 1 [(.validate.rules) = { ... }
        Specified by:
        getName in interface HttpFilterOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         The name of the filter configuration. It also serves as a resource name in ExtensionConfigDS.
         
        string name = 1 [(.validate.rules) = { ... }
        Specified by:
        getNameBytes in interface HttpFilterOrBuilder
        Returns:
        The bytes for name.
      • setName

        public HttpFilter.Builder setName​(String value)
         The name of the filter configuration. It also serves as a resource name in ExtensionConfigDS.
         
        string name = 1 [(.validate.rules) = { ... }
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public HttpFilter.Builder clearName()
         The name of the filter configuration. It also serves as a resource name in ExtensionConfigDS.
         
        string name = 1 [(.validate.rules) = { ... }
        Returns:
        This builder for chaining.
      • setNameBytes

        public HttpFilter.Builder setNameBytes​(com.google.protobuf.ByteString value)
         The name of the filter configuration. It also serves as a resource name in ExtensionConfigDS.
         
        string name = 1 [(.validate.rules) = { ... }
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • hasTypedConfig

        public boolean hasTypedConfig()
         Filter specific configuration which depends on the filter being instantiated. See the supported
         filters for further documentation.
         To support configuring a :ref:`match tree <arch_overview_matching_api>`, use an
         :ref:`ExtensionWithMatcher <envoy_v3_api_msg_extensions.common.matching.v3.ExtensionWithMatcher>`
         with the desired HTTP filter.
         [#extension-category: envoy.filters.http]
         
        .google.protobuf.Any typed_config = 4;
        Specified by:
        hasTypedConfig in interface HttpFilterOrBuilder
        Returns:
        Whether the typedConfig field is set.
      • getTypedConfig

        public com.google.protobuf.Any getTypedConfig()
         Filter specific configuration which depends on the filter being instantiated. See the supported
         filters for further documentation.
         To support configuring a :ref:`match tree <arch_overview_matching_api>`, use an
         :ref:`ExtensionWithMatcher <envoy_v3_api_msg_extensions.common.matching.v3.ExtensionWithMatcher>`
         with the desired HTTP filter.
         [#extension-category: envoy.filters.http]
         
        .google.protobuf.Any typed_config = 4;
        Specified by:
        getTypedConfig in interface HttpFilterOrBuilder
        Returns:
        The typedConfig.
      • setTypedConfig

        public HttpFilter.Builder setTypedConfig​(com.google.protobuf.Any value)
         Filter specific configuration which depends on the filter being instantiated. See the supported
         filters for further documentation.
         To support configuring a :ref:`match tree <arch_overview_matching_api>`, use an
         :ref:`ExtensionWithMatcher <envoy_v3_api_msg_extensions.common.matching.v3.ExtensionWithMatcher>`
         with the desired HTTP filter.
         [#extension-category: envoy.filters.http]
         
        .google.protobuf.Any typed_config = 4;
      • setTypedConfig

        public HttpFilter.Builder setTypedConfig​(com.google.protobuf.Any.Builder builderForValue)
         Filter specific configuration which depends on the filter being instantiated. See the supported
         filters for further documentation.
         To support configuring a :ref:`match tree <arch_overview_matching_api>`, use an
         :ref:`ExtensionWithMatcher <envoy_v3_api_msg_extensions.common.matching.v3.ExtensionWithMatcher>`
         with the desired HTTP filter.
         [#extension-category: envoy.filters.http]
         
        .google.protobuf.Any typed_config = 4;
      • mergeTypedConfig

        public HttpFilter.Builder mergeTypedConfig​(com.google.protobuf.Any value)
         Filter specific configuration which depends on the filter being instantiated. See the supported
         filters for further documentation.
         To support configuring a :ref:`match tree <arch_overview_matching_api>`, use an
         :ref:`ExtensionWithMatcher <envoy_v3_api_msg_extensions.common.matching.v3.ExtensionWithMatcher>`
         with the desired HTTP filter.
         [#extension-category: envoy.filters.http]
         
        .google.protobuf.Any typed_config = 4;
      • clearTypedConfig

        public HttpFilter.Builder clearTypedConfig()
         Filter specific configuration which depends on the filter being instantiated. See the supported
         filters for further documentation.
         To support configuring a :ref:`match tree <arch_overview_matching_api>`, use an
         :ref:`ExtensionWithMatcher <envoy_v3_api_msg_extensions.common.matching.v3.ExtensionWithMatcher>`
         with the desired HTTP filter.
         [#extension-category: envoy.filters.http]
         
        .google.protobuf.Any typed_config = 4;
      • getTypedConfigBuilder

        public com.google.protobuf.Any.Builder getTypedConfigBuilder()
         Filter specific configuration which depends on the filter being instantiated. See the supported
         filters for further documentation.
         To support configuring a :ref:`match tree <arch_overview_matching_api>`, use an
         :ref:`ExtensionWithMatcher <envoy_v3_api_msg_extensions.common.matching.v3.ExtensionWithMatcher>`
         with the desired HTTP filter.
         [#extension-category: envoy.filters.http]
         
        .google.protobuf.Any typed_config = 4;
      • getTypedConfigOrBuilder

        public com.google.protobuf.AnyOrBuilder getTypedConfigOrBuilder()
         Filter specific configuration which depends on the filter being instantiated. See the supported
         filters for further documentation.
         To support configuring a :ref:`match tree <arch_overview_matching_api>`, use an
         :ref:`ExtensionWithMatcher <envoy_v3_api_msg_extensions.common.matching.v3.ExtensionWithMatcher>`
         with the desired HTTP filter.
         [#extension-category: envoy.filters.http]
         
        .google.protobuf.Any typed_config = 4;
        Specified by:
        getTypedConfigOrBuilder in interface HttpFilterOrBuilder
      • hasConfigDiscovery

        public boolean hasConfigDiscovery()
         Configuration source specifier for an extension configuration discovery service.
         In case of a failure and without the default configuration, the HTTP listener responds with code 500.
         Extension configs delivered through this mechanism are not expected to require warming (see https://github.com/envoyproxy/envoy/issues/12061).
         To support configuring a :ref:`match tree <arch_overview_matching_api>`, use an
         :ref:`ExtensionWithMatcher <envoy_v3_api_msg_extensions.common.matching.v3.ExtensionWithMatcher>`
         with the desired HTTP filter. This works for both the default filter configuration as well
         as for filters provided via the API.
         
        .envoy.config.core.v3.ExtensionConfigSource config_discovery = 5;
        Specified by:
        hasConfigDiscovery in interface HttpFilterOrBuilder
        Returns:
        Whether the configDiscovery field is set.
      • getConfigDiscovery

        public ExtensionConfigSource getConfigDiscovery()
         Configuration source specifier for an extension configuration discovery service.
         In case of a failure and without the default configuration, the HTTP listener responds with code 500.
         Extension configs delivered through this mechanism are not expected to require warming (see https://github.com/envoyproxy/envoy/issues/12061).
         To support configuring a :ref:`match tree <arch_overview_matching_api>`, use an
         :ref:`ExtensionWithMatcher <envoy_v3_api_msg_extensions.common.matching.v3.ExtensionWithMatcher>`
         with the desired HTTP filter. This works for both the default filter configuration as well
         as for filters provided via the API.
         
        .envoy.config.core.v3.ExtensionConfigSource config_discovery = 5;
        Specified by:
        getConfigDiscovery in interface HttpFilterOrBuilder
        Returns:
        The configDiscovery.
      • setConfigDiscovery

        public HttpFilter.Builder setConfigDiscovery​(ExtensionConfigSource value)
         Configuration source specifier for an extension configuration discovery service.
         In case of a failure and without the default configuration, the HTTP listener responds with code 500.
         Extension configs delivered through this mechanism are not expected to require warming (see https://github.com/envoyproxy/envoy/issues/12061).
         To support configuring a :ref:`match tree <arch_overview_matching_api>`, use an
         :ref:`ExtensionWithMatcher <envoy_v3_api_msg_extensions.common.matching.v3.ExtensionWithMatcher>`
         with the desired HTTP filter. This works for both the default filter configuration as well
         as for filters provided via the API.
         
        .envoy.config.core.v3.ExtensionConfigSource config_discovery = 5;
      • setConfigDiscovery

        public HttpFilter.Builder setConfigDiscovery​(ExtensionConfigSource.Builder builderForValue)
         Configuration source specifier for an extension configuration discovery service.
         In case of a failure and without the default configuration, the HTTP listener responds with code 500.
         Extension configs delivered through this mechanism are not expected to require warming (see https://github.com/envoyproxy/envoy/issues/12061).
         To support configuring a :ref:`match tree <arch_overview_matching_api>`, use an
         :ref:`ExtensionWithMatcher <envoy_v3_api_msg_extensions.common.matching.v3.ExtensionWithMatcher>`
         with the desired HTTP filter. This works for both the default filter configuration as well
         as for filters provided via the API.
         
        .envoy.config.core.v3.ExtensionConfigSource config_discovery = 5;
      • mergeConfigDiscovery

        public HttpFilter.Builder mergeConfigDiscovery​(ExtensionConfigSource value)
         Configuration source specifier for an extension configuration discovery service.
         In case of a failure and without the default configuration, the HTTP listener responds with code 500.
         Extension configs delivered through this mechanism are not expected to require warming (see https://github.com/envoyproxy/envoy/issues/12061).
         To support configuring a :ref:`match tree <arch_overview_matching_api>`, use an
         :ref:`ExtensionWithMatcher <envoy_v3_api_msg_extensions.common.matching.v3.ExtensionWithMatcher>`
         with the desired HTTP filter. This works for both the default filter configuration as well
         as for filters provided via the API.
         
        .envoy.config.core.v3.ExtensionConfigSource config_discovery = 5;
      • clearConfigDiscovery

        public HttpFilter.Builder clearConfigDiscovery()
         Configuration source specifier for an extension configuration discovery service.
         In case of a failure and without the default configuration, the HTTP listener responds with code 500.
         Extension configs delivered through this mechanism are not expected to require warming (see https://github.com/envoyproxy/envoy/issues/12061).
         To support configuring a :ref:`match tree <arch_overview_matching_api>`, use an
         :ref:`ExtensionWithMatcher <envoy_v3_api_msg_extensions.common.matching.v3.ExtensionWithMatcher>`
         with the desired HTTP filter. This works for both the default filter configuration as well
         as for filters provided via the API.
         
        .envoy.config.core.v3.ExtensionConfigSource config_discovery = 5;
      • getConfigDiscoveryBuilder

        public ExtensionConfigSource.Builder getConfigDiscoveryBuilder()
         Configuration source specifier for an extension configuration discovery service.
         In case of a failure and without the default configuration, the HTTP listener responds with code 500.
         Extension configs delivered through this mechanism are not expected to require warming (see https://github.com/envoyproxy/envoy/issues/12061).
         To support configuring a :ref:`match tree <arch_overview_matching_api>`, use an
         :ref:`ExtensionWithMatcher <envoy_v3_api_msg_extensions.common.matching.v3.ExtensionWithMatcher>`
         with the desired HTTP filter. This works for both the default filter configuration as well
         as for filters provided via the API.
         
        .envoy.config.core.v3.ExtensionConfigSource config_discovery = 5;
      • getConfigDiscoveryOrBuilder

        public ExtensionConfigSourceOrBuilder getConfigDiscoveryOrBuilder()
         Configuration source specifier for an extension configuration discovery service.
         In case of a failure and without the default configuration, the HTTP listener responds with code 500.
         Extension configs delivered through this mechanism are not expected to require warming (see https://github.com/envoyproxy/envoy/issues/12061).
         To support configuring a :ref:`match tree <arch_overview_matching_api>`, use an
         :ref:`ExtensionWithMatcher <envoy_v3_api_msg_extensions.common.matching.v3.ExtensionWithMatcher>`
         with the desired HTTP filter. This works for both the default filter configuration as well
         as for filters provided via the API.
         
        .envoy.config.core.v3.ExtensionConfigSource config_discovery = 5;
        Specified by:
        getConfigDiscoveryOrBuilder in interface HttpFilterOrBuilder
      • getIsOptional

        public boolean getIsOptional()
         If true, clients that do not support this filter may ignore the
         filter but otherwise accept the config.
         Otherwise, clients that do not support this filter must reject the config.
         This is also same with typed per filter config.
         
        bool is_optional = 6;
        Specified by:
        getIsOptional in interface HttpFilterOrBuilder
        Returns:
        The isOptional.
      • setIsOptional

        public HttpFilter.Builder setIsOptional​(boolean value)
         If true, clients that do not support this filter may ignore the
         filter but otherwise accept the config.
         Otherwise, clients that do not support this filter must reject the config.
         This is also same with typed per filter config.
         
        bool is_optional = 6;
        Parameters:
        value - The isOptional to set.
        Returns:
        This builder for chaining.
      • clearIsOptional

        public HttpFilter.Builder clearIsOptional()
         If true, clients that do not support this filter may ignore the
         filter but otherwise accept the config.
         Otherwise, clients that do not support this filter must reject the config.
         This is also same with typed per filter config.
         
        bool is_optional = 6;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final HttpFilter.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<HttpFilter.Builder>
      • mergeUnknownFields

        public final HttpFilter.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<HttpFilter.Builder>