Class ClusterConfig.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ClusterConfig.Builder>
-
- io.envoyproxy.envoy.extensions.clusters.dynamic_forward_proxy.v3.ClusterConfig.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ClusterConfigOrBuilder,Cloneable
- Enclosing class:
- ClusterConfig
public static final class ClusterConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ClusterConfig.Builder> implements ClusterConfigOrBuilder
Configuration for the dynamic forward proxy cluster. See the :ref:`architecture overview <arch_overview_http_dynamic_forward_proxy>` for more information. [#extension: envoy.clusters.dynamic_forward_proxy]
Protobuf typeenvoy.extensions.clusters.dynamic_forward_proxy.v3.ClusterConfig
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ClusterConfig.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ClusterConfigbuild()ClusterConfigbuildPartial()ClusterConfig.Builderclear()ClusterConfig.BuilderclearAllowCoalescedConnections()[#not-implemented-hide:] If true allow HTTP/2 and HTTP/3 connections to be reused for requests to different origins than the connection was initially created for.ClusterConfig.BuilderclearAllowInsecureClusterOptions()If true allow the cluster configuration to disable the auto_sni and auto_san_validation options in the :ref:`cluster's upstream_http_protocol_options <envoy_v3_api_field_config.cluster.v3.Cluster.upstream_http_protocol_options>`ClusterConfig.BuilderclearDnsCacheConfig()The DNS cache configuration that the cluster will attach to.ClusterConfig.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ClusterConfig.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ClusterConfig.Builderclone()booleangetAllowCoalescedConnections()[#not-implemented-hide:] If true allow HTTP/2 and HTTP/3 connections to be reused for requests to different origins than the connection was initially created for.booleangetAllowInsecureClusterOptions()If true allow the cluster configuration to disable the auto_sni and auto_san_validation options in the :ref:`cluster's upstream_http_protocol_options <envoy_v3_api_field_config.cluster.v3.Cluster.upstream_http_protocol_options>`ClusterConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()DnsCacheConfiggetDnsCacheConfig()The DNS cache configuration that the cluster will attach to.DnsCacheConfig.BuildergetDnsCacheConfigBuilder()The DNS cache configuration that the cluster will attach to.DnsCacheConfigOrBuildergetDnsCacheConfigOrBuilder()The DNS cache configuration that the cluster will attach to.booleanhasDnsCacheConfig()The DNS cache configuration that the cluster will attach to.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ClusterConfig.BuildermergeDnsCacheConfig(DnsCacheConfig value)The DNS cache configuration that the cluster will attach to.ClusterConfig.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ClusterConfig.BuildermergeFrom(com.google.protobuf.Message other)ClusterConfig.BuildermergeFrom(ClusterConfig other)ClusterConfig.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ClusterConfig.BuildersetAllowCoalescedConnections(boolean value)[#not-implemented-hide:] If true allow HTTP/2 and HTTP/3 connections to be reused for requests to different origins than the connection was initially created for.ClusterConfig.BuildersetAllowInsecureClusterOptions(boolean value)If true allow the cluster configuration to disable the auto_sni and auto_san_validation options in the :ref:`cluster's upstream_http_protocol_options <envoy_v3_api_field_config.cluster.v3.Cluster.upstream_http_protocol_options>`ClusterConfig.BuildersetDnsCacheConfig(DnsCacheConfig value)The DNS cache configuration that the cluster will attach to.ClusterConfig.BuildersetDnsCacheConfig(DnsCacheConfig.Builder builderForValue)The DNS cache configuration that the cluster will attach to.ClusterConfig.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ClusterConfig.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ClusterConfig.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<ClusterConfig.Builder>
-
clear
public ClusterConfig.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<ClusterConfig.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<ClusterConfig.Builder>
-
getDefaultInstanceForType
public ClusterConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ClusterConfig build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ClusterConfig buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ClusterConfig.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<ClusterConfig.Builder>
-
setField
public ClusterConfig.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<ClusterConfig.Builder>
-
clearField
public ClusterConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ClusterConfig.Builder>
-
clearOneof
public ClusterConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ClusterConfig.Builder>
-
setRepeatedField
public ClusterConfig.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<ClusterConfig.Builder>
-
addRepeatedField
public ClusterConfig.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<ClusterConfig.Builder>
-
mergeFrom
public ClusterConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ClusterConfig.Builder>
-
mergeFrom
public ClusterConfig.Builder mergeFrom(ClusterConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ClusterConfig.Builder>
-
mergeFrom
public ClusterConfig.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<ClusterConfig.Builder>- Throws:
IOException
-
hasDnsCacheConfig
public boolean hasDnsCacheConfig()
The DNS cache configuration that the cluster will attach to. Note this configuration must match that of associated :ref:`dynamic forward proxy HTTP filter configuration <envoy_v3_api_field_extensions.filters.http.dynamic_forward_proxy.v3.FilterConfig.dns_cache_config>`.
.envoy.extensions.common.dynamic_forward_proxy.v3.DnsCacheConfig dns_cache_config = 1 [(.validate.rules) = { ... }- Specified by:
hasDnsCacheConfigin interfaceClusterConfigOrBuilder- Returns:
- Whether the dnsCacheConfig field is set.
-
getDnsCacheConfig
public DnsCacheConfig getDnsCacheConfig()
The DNS cache configuration that the cluster will attach to. Note this configuration must match that of associated :ref:`dynamic forward proxy HTTP filter configuration <envoy_v3_api_field_extensions.filters.http.dynamic_forward_proxy.v3.FilterConfig.dns_cache_config>`.
.envoy.extensions.common.dynamic_forward_proxy.v3.DnsCacheConfig dns_cache_config = 1 [(.validate.rules) = { ... }- Specified by:
getDnsCacheConfigin interfaceClusterConfigOrBuilder- Returns:
- The dnsCacheConfig.
-
setDnsCacheConfig
public ClusterConfig.Builder setDnsCacheConfig(DnsCacheConfig value)
The DNS cache configuration that the cluster will attach to. Note this configuration must match that of associated :ref:`dynamic forward proxy HTTP filter configuration <envoy_v3_api_field_extensions.filters.http.dynamic_forward_proxy.v3.FilterConfig.dns_cache_config>`.
.envoy.extensions.common.dynamic_forward_proxy.v3.DnsCacheConfig dns_cache_config = 1 [(.validate.rules) = { ... }
-
setDnsCacheConfig
public ClusterConfig.Builder setDnsCacheConfig(DnsCacheConfig.Builder builderForValue)
The DNS cache configuration that the cluster will attach to. Note this configuration must match that of associated :ref:`dynamic forward proxy HTTP filter configuration <envoy_v3_api_field_extensions.filters.http.dynamic_forward_proxy.v3.FilterConfig.dns_cache_config>`.
.envoy.extensions.common.dynamic_forward_proxy.v3.DnsCacheConfig dns_cache_config = 1 [(.validate.rules) = { ... }
-
mergeDnsCacheConfig
public ClusterConfig.Builder mergeDnsCacheConfig(DnsCacheConfig value)
The DNS cache configuration that the cluster will attach to. Note this configuration must match that of associated :ref:`dynamic forward proxy HTTP filter configuration <envoy_v3_api_field_extensions.filters.http.dynamic_forward_proxy.v3.FilterConfig.dns_cache_config>`.
.envoy.extensions.common.dynamic_forward_proxy.v3.DnsCacheConfig dns_cache_config = 1 [(.validate.rules) = { ... }
-
clearDnsCacheConfig
public ClusterConfig.Builder clearDnsCacheConfig()
The DNS cache configuration that the cluster will attach to. Note this configuration must match that of associated :ref:`dynamic forward proxy HTTP filter configuration <envoy_v3_api_field_extensions.filters.http.dynamic_forward_proxy.v3.FilterConfig.dns_cache_config>`.
.envoy.extensions.common.dynamic_forward_proxy.v3.DnsCacheConfig dns_cache_config = 1 [(.validate.rules) = { ... }
-
getDnsCacheConfigBuilder
public DnsCacheConfig.Builder getDnsCacheConfigBuilder()
The DNS cache configuration that the cluster will attach to. Note this configuration must match that of associated :ref:`dynamic forward proxy HTTP filter configuration <envoy_v3_api_field_extensions.filters.http.dynamic_forward_proxy.v3.FilterConfig.dns_cache_config>`.
.envoy.extensions.common.dynamic_forward_proxy.v3.DnsCacheConfig dns_cache_config = 1 [(.validate.rules) = { ... }
-
getDnsCacheConfigOrBuilder
public DnsCacheConfigOrBuilder getDnsCacheConfigOrBuilder()
The DNS cache configuration that the cluster will attach to. Note this configuration must match that of associated :ref:`dynamic forward proxy HTTP filter configuration <envoy_v3_api_field_extensions.filters.http.dynamic_forward_proxy.v3.FilterConfig.dns_cache_config>`.
.envoy.extensions.common.dynamic_forward_proxy.v3.DnsCacheConfig dns_cache_config = 1 [(.validate.rules) = { ... }- Specified by:
getDnsCacheConfigOrBuilderin interfaceClusterConfigOrBuilder
-
getAllowInsecureClusterOptions
public boolean getAllowInsecureClusterOptions()
If true allow the cluster configuration to disable the auto_sni and auto_san_validation options in the :ref:`cluster's upstream_http_protocol_options <envoy_v3_api_field_config.cluster.v3.Cluster.upstream_http_protocol_options>`
bool allow_insecure_cluster_options = 2;- Specified by:
getAllowInsecureClusterOptionsin interfaceClusterConfigOrBuilder- Returns:
- The allowInsecureClusterOptions.
-
setAllowInsecureClusterOptions
public ClusterConfig.Builder setAllowInsecureClusterOptions(boolean value)
If true allow the cluster configuration to disable the auto_sni and auto_san_validation options in the :ref:`cluster's upstream_http_protocol_options <envoy_v3_api_field_config.cluster.v3.Cluster.upstream_http_protocol_options>`
bool allow_insecure_cluster_options = 2;- Parameters:
value- The allowInsecureClusterOptions to set.- Returns:
- This builder for chaining.
-
clearAllowInsecureClusterOptions
public ClusterConfig.Builder clearAllowInsecureClusterOptions()
If true allow the cluster configuration to disable the auto_sni and auto_san_validation options in the :ref:`cluster's upstream_http_protocol_options <envoy_v3_api_field_config.cluster.v3.Cluster.upstream_http_protocol_options>`
bool allow_insecure_cluster_options = 2;- Returns:
- This builder for chaining.
-
getAllowCoalescedConnections
public boolean getAllowCoalescedConnections()
[#not-implemented-hide:] If true allow HTTP/2 and HTTP/3 connections to be reused for requests to different origins than the connection was initially created for. This will only happen when the resolved address for the new connection matches the peer address of the connection and the TLS certificate is also valid for the new hostname. For example, if a connection has previously been established to foo.example.com at IP 1.2.3.4 with a certificate that is valid for `*.example.com`, then this connection could be used for requests to bar.example.com if that also resolved to 1.2.3.4. .. note:: By design, this feature will maximize reuse of connections. This means that instead opening a new connection when an existing connection reaches the maximum number of concurrent streams, requests will instead be sent to the existing connection. TODO(alyssawilk) implement request queueing in connections. .. note:: The coalesced connections might be to upstreams that would not be otherwise selected by Envoy. See the section `Connection Reuse in RFC 7540 <https://datatracker.ietf.org/doc/html/rfc7540#section-9.1.1>`_
bool allow_coalesced_connections = 3;- Specified by:
getAllowCoalescedConnectionsin interfaceClusterConfigOrBuilder- Returns:
- The allowCoalescedConnections.
-
setAllowCoalescedConnections
public ClusterConfig.Builder setAllowCoalescedConnections(boolean value)
[#not-implemented-hide:] If true allow HTTP/2 and HTTP/3 connections to be reused for requests to different origins than the connection was initially created for. This will only happen when the resolved address for the new connection matches the peer address of the connection and the TLS certificate is also valid for the new hostname. For example, if a connection has previously been established to foo.example.com at IP 1.2.3.4 with a certificate that is valid for `*.example.com`, then this connection could be used for requests to bar.example.com if that also resolved to 1.2.3.4. .. note:: By design, this feature will maximize reuse of connections. This means that instead opening a new connection when an existing connection reaches the maximum number of concurrent streams, requests will instead be sent to the existing connection. TODO(alyssawilk) implement request queueing in connections. .. note:: The coalesced connections might be to upstreams that would not be otherwise selected by Envoy. See the section `Connection Reuse in RFC 7540 <https://datatracker.ietf.org/doc/html/rfc7540#section-9.1.1>`_
bool allow_coalesced_connections = 3;- Parameters:
value- The allowCoalescedConnections to set.- Returns:
- This builder for chaining.
-
clearAllowCoalescedConnections
public ClusterConfig.Builder clearAllowCoalescedConnections()
[#not-implemented-hide:] If true allow HTTP/2 and HTTP/3 connections to be reused for requests to different origins than the connection was initially created for. This will only happen when the resolved address for the new connection matches the peer address of the connection and the TLS certificate is also valid for the new hostname. For example, if a connection has previously been established to foo.example.com at IP 1.2.3.4 with a certificate that is valid for `*.example.com`, then this connection could be used for requests to bar.example.com if that also resolved to 1.2.3.4. .. note:: By design, this feature will maximize reuse of connections. This means that instead opening a new connection when an existing connection reaches the maximum number of concurrent streams, requests will instead be sent to the existing connection. TODO(alyssawilk) implement request queueing in connections. .. note:: The coalesced connections might be to upstreams that would not be otherwise selected by Envoy. See the section `Connection Reuse in RFC 7540 <https://datatracker.ietf.org/doc/html/rfc7540#section-9.1.1>`_
bool allow_coalesced_connections = 3;- Returns:
- This builder for chaining.
-
setUnknownFields
public final ClusterConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ClusterConfig.Builder>
-
mergeUnknownFields
public final ClusterConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ClusterConfig.Builder>
-
-