Class FilterConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>
io.envoyproxy.envoy.extensions.filters.http.dynamic_forward_proxy.v3.FilterConfig.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,FilterConfigOrBuilder,Cloneable
- Enclosing class:
- FilterConfig
public static final class FilterConfig.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>
implements FilterConfigOrBuilder
Configuration for the dynamic forward proxy HTTP filter. See the :ref:`architecture overview <arch_overview_http_dynamic_forward_proxy>` for more information. [#extension: envoy.filters.http.dynamic_forward_proxy]Protobuf type
envoy.extensions.filters.http.dynamic_forward_proxy.v3.FilterConfig-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()When this flag is set, the filter will check for the ``envoy.upstream.dynamic_host`` and/or ``envoy.upstream.dynamic_port`` filter state values before using the HTTP Host header for DNS resolution.The DNS cache configuration that the filter will attach to.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) When this flag is set, the filter will add the resolved upstream address in the filter state.The configuration that the filter will use, when the related dynamic forward proxy cluster enabled sub clusters.clone()booleanWhen this flag is set, the filter will check for the ``envoy.upstream.dynamic_host`` and/or ``envoy.upstream.dynamic_port`` filter state values before using the HTTP Host header for DNS resolution.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe DNS cache configuration that the filter will attach to.The DNS cache configuration that the filter will attach to.The DNS cache configuration that the filter will attach to.booleanWhen this flag is set, the filter will add the resolved upstream address in the filter state.The configuration that the filter will use, when the related dynamic forward proxy cluster enabled sub clusters.The configuration that the filter will use, when the related dynamic forward proxy cluster enabled sub clusters.The configuration that the filter will use, when the related dynamic forward proxy cluster enabled sub clusters.booleanThe DNS cache configuration that the filter will attach to.booleanThe configuration that the filter will use, when the related dynamic forward proxy cluster enabled sub clusters.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanThe DNS cache configuration that the filter will attach to.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(FilterConfig other) The configuration that the filter will use, when the related dynamic forward proxy cluster enabled sub clusters.final FilterConfig.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setAllowDynamicHostFromFilterState(boolean value) When this flag is set, the filter will check for the ``envoy.upstream.dynamic_host`` and/or ``envoy.upstream.dynamic_port`` filter state values before using the HTTP Host header for DNS resolution.setDnsCacheConfig(DnsCacheConfig value) The DNS cache configuration that the filter will attach to.setDnsCacheConfig(DnsCacheConfig.Builder builderForValue) The DNS cache configuration that the filter will attach to.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSaveUpstreamAddress(boolean value) When this flag is set, the filter will add the resolved upstream address in the filter state.The configuration that the filter will use, when the related dynamic forward proxy cluster enabled sub clusters.setSubClusterConfig(SubClusterConfig.Builder builderForValue) The configuration that the filter will use, when the related dynamic forward proxy cluster enabled sub clusters.final FilterConfig.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<FilterConfig.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<FilterConfig.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<FilterConfig.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<FilterConfig.Builder>
-
setField
public FilterConfig.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<FilterConfig.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>
-
setRepeatedField
public FilterConfig.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<FilterConfig.Builder>
-
addRepeatedField
public FilterConfig.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<FilterConfig.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FilterConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>
-
mergeFrom
public FilterConfig.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<FilterConfig.Builder>- Throws:
IOException
-
getImplementationSpecifierCase
- Specified by:
getImplementationSpecifierCasein interfaceFilterConfigOrBuilder
-
clearImplementationSpecifier
-
hasDnsCacheConfig
public boolean hasDnsCacheConfig()The DNS cache configuration that the filter will attach to. Note this configuration must match that of associated :ref:`dynamic forward proxy cluster configuration <envoy_v3_api_field_extensions.clusters.dynamic_forward_proxy.v3.ClusterConfig.dns_cache_config>`.
.envoy.extensions.common.dynamic_forward_proxy.v3.DnsCacheConfig dns_cache_config = 1;- Specified by:
hasDnsCacheConfigin interfaceFilterConfigOrBuilder- Returns:
- Whether the dnsCacheConfig field is set.
-
getDnsCacheConfig
The DNS cache configuration that the filter will attach to. Note this configuration must match that of associated :ref:`dynamic forward proxy cluster configuration <envoy_v3_api_field_extensions.clusters.dynamic_forward_proxy.v3.ClusterConfig.dns_cache_config>`.
.envoy.extensions.common.dynamic_forward_proxy.v3.DnsCacheConfig dns_cache_config = 1;- Specified by:
getDnsCacheConfigin interfaceFilterConfigOrBuilder- Returns:
- The dnsCacheConfig.
-
setDnsCacheConfig
The DNS cache configuration that the filter will attach to. Note this configuration must match that of associated :ref:`dynamic forward proxy cluster configuration <envoy_v3_api_field_extensions.clusters.dynamic_forward_proxy.v3.ClusterConfig.dns_cache_config>`.
.envoy.extensions.common.dynamic_forward_proxy.v3.DnsCacheConfig dns_cache_config = 1; -
setDnsCacheConfig
The DNS cache configuration that the filter will attach to. Note this configuration must match that of associated :ref:`dynamic forward proxy cluster configuration <envoy_v3_api_field_extensions.clusters.dynamic_forward_proxy.v3.ClusterConfig.dns_cache_config>`.
.envoy.extensions.common.dynamic_forward_proxy.v3.DnsCacheConfig dns_cache_config = 1; -
mergeDnsCacheConfig
The DNS cache configuration that the filter will attach to. Note this configuration must match that of associated :ref:`dynamic forward proxy cluster configuration <envoy_v3_api_field_extensions.clusters.dynamic_forward_proxy.v3.ClusterConfig.dns_cache_config>`.
.envoy.extensions.common.dynamic_forward_proxy.v3.DnsCacheConfig dns_cache_config = 1; -
clearDnsCacheConfig
The DNS cache configuration that the filter will attach to. Note this configuration must match that of associated :ref:`dynamic forward proxy cluster configuration <envoy_v3_api_field_extensions.clusters.dynamic_forward_proxy.v3.ClusterConfig.dns_cache_config>`.
.envoy.extensions.common.dynamic_forward_proxy.v3.DnsCacheConfig dns_cache_config = 1; -
getDnsCacheConfigBuilder
The DNS cache configuration that the filter will attach to. Note this configuration must match that of associated :ref:`dynamic forward proxy cluster configuration <envoy_v3_api_field_extensions.clusters.dynamic_forward_proxy.v3.ClusterConfig.dns_cache_config>`.
.envoy.extensions.common.dynamic_forward_proxy.v3.DnsCacheConfig dns_cache_config = 1; -
getDnsCacheConfigOrBuilder
The DNS cache configuration that the filter will attach to. Note this configuration must match that of associated :ref:`dynamic forward proxy cluster configuration <envoy_v3_api_field_extensions.clusters.dynamic_forward_proxy.v3.ClusterConfig.dns_cache_config>`.
.envoy.extensions.common.dynamic_forward_proxy.v3.DnsCacheConfig dns_cache_config = 1;- Specified by:
getDnsCacheConfigOrBuilderin interfaceFilterConfigOrBuilder
-
hasSubClusterConfig
public boolean hasSubClusterConfig()The configuration that the filter will use, when the related dynamic forward proxy cluster enabled sub clusters.
.envoy.extensions.filters.http.dynamic_forward_proxy.v3.SubClusterConfig sub_cluster_config = 3;- Specified by:
hasSubClusterConfigin interfaceFilterConfigOrBuilder- Returns:
- Whether the subClusterConfig field is set.
-
getSubClusterConfig
The configuration that the filter will use, when the related dynamic forward proxy cluster enabled sub clusters.
.envoy.extensions.filters.http.dynamic_forward_proxy.v3.SubClusterConfig sub_cluster_config = 3;- Specified by:
getSubClusterConfigin interfaceFilterConfigOrBuilder- Returns:
- The subClusterConfig.
-
setSubClusterConfig
The configuration that the filter will use, when the related dynamic forward proxy cluster enabled sub clusters.
.envoy.extensions.filters.http.dynamic_forward_proxy.v3.SubClusterConfig sub_cluster_config = 3; -
setSubClusterConfig
The configuration that the filter will use, when the related dynamic forward proxy cluster enabled sub clusters.
.envoy.extensions.filters.http.dynamic_forward_proxy.v3.SubClusterConfig sub_cluster_config = 3; -
mergeSubClusterConfig
The configuration that the filter will use, when the related dynamic forward proxy cluster enabled sub clusters.
.envoy.extensions.filters.http.dynamic_forward_proxy.v3.SubClusterConfig sub_cluster_config = 3; -
clearSubClusterConfig
The configuration that the filter will use, when the related dynamic forward proxy cluster enabled sub clusters.
.envoy.extensions.filters.http.dynamic_forward_proxy.v3.SubClusterConfig sub_cluster_config = 3; -
getSubClusterConfigBuilder
The configuration that the filter will use, when the related dynamic forward proxy cluster enabled sub clusters.
.envoy.extensions.filters.http.dynamic_forward_proxy.v3.SubClusterConfig sub_cluster_config = 3; -
getSubClusterConfigOrBuilder
The configuration that the filter will use, when the related dynamic forward proxy cluster enabled sub clusters.
.envoy.extensions.filters.http.dynamic_forward_proxy.v3.SubClusterConfig sub_cluster_config = 3;- Specified by:
getSubClusterConfigOrBuilderin interfaceFilterConfigOrBuilder
-
getSaveUpstreamAddress
public boolean getSaveUpstreamAddress()When this flag is set, the filter will add the resolved upstream address in the filter state. The state should be saved with key ``envoy.stream.upstream_address`` (See :repo:`upstream_address.h<source/common/stream_info/upstream_address.h>`).
bool save_upstream_address = 2;- Specified by:
getSaveUpstreamAddressin interfaceFilterConfigOrBuilder- Returns:
- The saveUpstreamAddress.
-
setSaveUpstreamAddress
When this flag is set, the filter will add the resolved upstream address in the filter state. The state should be saved with key ``envoy.stream.upstream_address`` (See :repo:`upstream_address.h<source/common/stream_info/upstream_address.h>`).
bool save_upstream_address = 2;- Parameters:
value- The saveUpstreamAddress to set.- Returns:
- This builder for chaining.
-
clearSaveUpstreamAddress
When this flag is set, the filter will add the resolved upstream address in the filter state. The state should be saved with key ``envoy.stream.upstream_address`` (See :repo:`upstream_address.h<source/common/stream_info/upstream_address.h>`).
bool save_upstream_address = 2;- Returns:
- This builder for chaining.
-
getAllowDynamicHostFromFilterState
public boolean getAllowDynamicHostFromFilterState()When this flag is set, the filter will check for the ``envoy.upstream.dynamic_host`` and/or ``envoy.upstream.dynamic_port`` filter state values before using the HTTP Host header for DNS resolution. This provides consistency with the :ref:`SNI dynamic forward proxy <envoy_v3_api_msg_extensions.filters.network.sni_dynamic_forward_proxy.v3.FilterConfig>` and :ref:`UDP dynamic forward proxy <envoy_v3_api_msg_extensions.filters.udp.udp_proxy.session.dynamic_forward_proxy.v3.FilterConfig>` filters behavior when enabled. If the flag is not set (default), the filter will use the HTTP Host header for DNS resolution, maintaining backward compatibility.
bool allow_dynamic_host_from_filter_state = 4;- Specified by:
getAllowDynamicHostFromFilterStatein interfaceFilterConfigOrBuilder- Returns:
- The allowDynamicHostFromFilterState.
-
setAllowDynamicHostFromFilterState
When this flag is set, the filter will check for the ``envoy.upstream.dynamic_host`` and/or ``envoy.upstream.dynamic_port`` filter state values before using the HTTP Host header for DNS resolution. This provides consistency with the :ref:`SNI dynamic forward proxy <envoy_v3_api_msg_extensions.filters.network.sni_dynamic_forward_proxy.v3.FilterConfig>` and :ref:`UDP dynamic forward proxy <envoy_v3_api_msg_extensions.filters.udp.udp_proxy.session.dynamic_forward_proxy.v3.FilterConfig>` filters behavior when enabled. If the flag is not set (default), the filter will use the HTTP Host header for DNS resolution, maintaining backward compatibility.
bool allow_dynamic_host_from_filter_state = 4;- Parameters:
value- The allowDynamicHostFromFilterState to set.- Returns:
- This builder for chaining.
-
clearAllowDynamicHostFromFilterState
When this flag is set, the filter will check for the ``envoy.upstream.dynamic_host`` and/or ``envoy.upstream.dynamic_port`` filter state values before using the HTTP Host header for DNS resolution. This provides consistency with the :ref:`SNI dynamic forward proxy <envoy_v3_api_msg_extensions.filters.network.sni_dynamic_forward_proxy.v3.FilterConfig>` and :ref:`UDP dynamic forward proxy <envoy_v3_api_msg_extensions.filters.udp.udp_proxy.session.dynamic_forward_proxy.v3.FilterConfig>` filters behavior when enabled. If the flag is not set (default), the filter will use the HTTP Host header for DNS resolution, maintaining backward compatibility.
bool allow_dynamic_host_from_filter_state = 4;- Returns:
- This builder for chaining.
-
setUnknownFields
public final FilterConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>
-
mergeUnknownFields
public final FilterConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>
-