Class Cluster.OriginalDstLbConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Cluster.OriginalDstLbConfig.Builder>
com.google.protobuf.GeneratedMessage.Builder<Cluster.OriginalDstLbConfig.Builder>
io.envoyproxy.envoy.config.cluster.v3.Cluster.OriginalDstLbConfig.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cluster.OriginalDstLbConfigOrBuilder
,Cloneable
- Enclosing class:
Cluster.OriginalDstLbConfig
public static final class Cluster.OriginalDstLbConfig.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Cluster.OriginalDstLbConfig.Builder>
implements Cluster.OriginalDstLbConfigOrBuilder
Specific configuration for the :ref:`Original Destination <arch_overview_load_balancing_types_original_destination>` load balancing policy. [#extension: envoy.clusters.original_dst]Protobuf type
envoy.config.cluster.v3.Cluster.OriginalDstLbConfig
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private Object
private MetadataKey
private com.google.protobuf.SingleFieldBuilder
<MetadataKey, MetadataKey.Builder, MetadataKeyOrBuilder> private com.google.protobuf.UInt32Value
private com.google.protobuf.SingleFieldBuilder
<com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> private boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
private void
clear()
The http header to override destination address if :ref:`use_http_header <envoy_v3_api_field_config.cluster.v3.Cluster.OriginalDstLbConfig.use_http_header>`.The dynamic metadata key to override destination address.The port to override for the original dst address.When true, a HTTP header can be used to override the original dst address.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
The http header to override destination address if :ref:`use_http_header <envoy_v3_api_field_config.cluster.v3.Cluster.OriginalDstLbConfig.use_http_header>`.com.google.protobuf.ByteString
The http header to override destination address if :ref:`use_http_header <envoy_v3_api_field_config.cluster.v3.Cluster.OriginalDstLbConfig.use_http_header>`.The dynamic metadata key to override destination address.The dynamic metadata key to override destination address.private com.google.protobuf.SingleFieldBuilder
<MetadataKey, MetadataKey.Builder, MetadataKeyOrBuilder> The dynamic metadata key to override destination address.The dynamic metadata key to override destination address.com.google.protobuf.UInt32Value
The port to override for the original dst address.com.google.protobuf.UInt32Value.Builder
The port to override for the original dst address.private com.google.protobuf.SingleFieldBuilder
<com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> The port to override for the original dst address.com.google.protobuf.UInt32ValueOrBuilder
The port to override for the original dst address.boolean
When true, a HTTP header can be used to override the original dst address.boolean
The dynamic metadata key to override destination address.boolean
The port to override for the original dst address.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
private void
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeMetadataKey
(MetadataKey value) The dynamic metadata key to override destination address.mergeUpstreamPortOverride
(com.google.protobuf.UInt32Value value) The port to override for the original dst address.setHttpHeaderName
(String value) The http header to override destination address if :ref:`use_http_header <envoy_v3_api_field_config.cluster.v3.Cluster.OriginalDstLbConfig.use_http_header>`.setHttpHeaderNameBytes
(com.google.protobuf.ByteString value) The http header to override destination address if :ref:`use_http_header <envoy_v3_api_field_config.cluster.v3.Cluster.OriginalDstLbConfig.use_http_header>`.setMetadataKey
(MetadataKey value) The dynamic metadata key to override destination address.setMetadataKey
(MetadataKey.Builder builderForValue) The dynamic metadata key to override destination address.setUpstreamPortOverride
(com.google.protobuf.UInt32Value value) The port to override for the original dst address.setUpstreamPortOverride
(com.google.protobuf.UInt32Value.Builder builderForValue) The port to override for the original dst address.setUseHttpHeader
(boolean value) When true, a HTTP header can be used to override the original dst address.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, 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
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
bitField0_
private int bitField0_ -
useHttpHeader_
private boolean useHttpHeader_ -
httpHeaderName_
-
upstreamPortOverride_
private com.google.protobuf.UInt32Value upstreamPortOverride_ -
upstreamPortOverrideBuilder_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.UInt32Value,com.google.protobuf.UInt32Value.Builder, upstreamPortOverrideBuilder_com.google.protobuf.UInt32ValueOrBuilder> -
metadataKey_
-
metadataKeyBuilder_
private com.google.protobuf.SingleFieldBuilder<MetadataKey,MetadataKey.Builder, metadataKeyBuilder_MetadataKeyOrBuilder>
-
-
Constructor Details
-
Builder
private Builder() -
Builder
private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<Cluster.OriginalDstLbConfig.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<Cluster.OriginalDstLbConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<Cluster.OriginalDstLbConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Cluster.OriginalDstLbConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<Cluster.OriginalDstLbConfig.Builder>
-
mergeFrom
public Cluster.OriginalDstLbConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Cluster.OriginalDstLbConfig.Builder>
- Throws:
IOException
-
getUseHttpHeader
public boolean getUseHttpHeader()When true, a HTTP header can be used to override the original dst address. The default header is :ref:`x-envoy-original-dst-host <config_http_conn_man_headers_x-envoy-original-dst-host>`. .. attention:: This header isn't sanitized by default, so enabling this feature allows HTTP clients to route traffic to arbitrary hosts and/or ports, which may have serious security consequences. .. note:: If the header appears multiple times only the first value is used.
bool use_http_header = 1;
- Specified by:
getUseHttpHeader
in interfaceCluster.OriginalDstLbConfigOrBuilder
- Returns:
- The useHttpHeader.
-
setUseHttpHeader
When true, a HTTP header can be used to override the original dst address. The default header is :ref:`x-envoy-original-dst-host <config_http_conn_man_headers_x-envoy-original-dst-host>`. .. attention:: This header isn't sanitized by default, so enabling this feature allows HTTP clients to route traffic to arbitrary hosts and/or ports, which may have serious security consequences. .. note:: If the header appears multiple times only the first value is used.
bool use_http_header = 1;
- Parameters:
value
- The useHttpHeader to set.- Returns:
- This builder for chaining.
-
clearUseHttpHeader
When true, a HTTP header can be used to override the original dst address. The default header is :ref:`x-envoy-original-dst-host <config_http_conn_man_headers_x-envoy-original-dst-host>`. .. attention:: This header isn't sanitized by default, so enabling this feature allows HTTP clients to route traffic to arbitrary hosts and/or ports, which may have serious security consequences. .. note:: If the header appears multiple times only the first value is used.
bool use_http_header = 1;
- Returns:
- This builder for chaining.
-
getHttpHeaderName
The http header to override destination address if :ref:`use_http_header <envoy_v3_api_field_config.cluster.v3.Cluster.OriginalDstLbConfig.use_http_header>`. is set to true. If the value is empty, :ref:`x-envoy-original-dst-host <config_http_conn_man_headers_x-envoy-original-dst-host>` will be used.
string http_header_name = 2;
- Specified by:
getHttpHeaderName
in interfaceCluster.OriginalDstLbConfigOrBuilder
- Returns:
- The httpHeaderName.
-
getHttpHeaderNameBytes
public com.google.protobuf.ByteString getHttpHeaderNameBytes()The http header to override destination address if :ref:`use_http_header <envoy_v3_api_field_config.cluster.v3.Cluster.OriginalDstLbConfig.use_http_header>`. is set to true. If the value is empty, :ref:`x-envoy-original-dst-host <config_http_conn_man_headers_x-envoy-original-dst-host>` will be used.
string http_header_name = 2;
- Specified by:
getHttpHeaderNameBytes
in interfaceCluster.OriginalDstLbConfigOrBuilder
- Returns:
- The bytes for httpHeaderName.
-
setHttpHeaderName
The http header to override destination address if :ref:`use_http_header <envoy_v3_api_field_config.cluster.v3.Cluster.OriginalDstLbConfig.use_http_header>`. is set to true. If the value is empty, :ref:`x-envoy-original-dst-host <config_http_conn_man_headers_x-envoy-original-dst-host>` will be used.
string http_header_name = 2;
- Parameters:
value
- The httpHeaderName to set.- Returns:
- This builder for chaining.
-
clearHttpHeaderName
The http header to override destination address if :ref:`use_http_header <envoy_v3_api_field_config.cluster.v3.Cluster.OriginalDstLbConfig.use_http_header>`. is set to true. If the value is empty, :ref:`x-envoy-original-dst-host <config_http_conn_man_headers_x-envoy-original-dst-host>` will be used.
string http_header_name = 2;
- Returns:
- This builder for chaining.
-
setHttpHeaderNameBytes
public Cluster.OriginalDstLbConfig.Builder setHttpHeaderNameBytes(com.google.protobuf.ByteString value) The http header to override destination address if :ref:`use_http_header <envoy_v3_api_field_config.cluster.v3.Cluster.OriginalDstLbConfig.use_http_header>`. is set to true. If the value is empty, :ref:`x-envoy-original-dst-host <config_http_conn_man_headers_x-envoy-original-dst-host>` will be used.
string http_header_name = 2;
- Parameters:
value
- The bytes for httpHeaderName to set.- Returns:
- This builder for chaining.
-
hasUpstreamPortOverride
public boolean hasUpstreamPortOverride()The port to override for the original dst address. This port will take precedence over filter state and header override ports
.google.protobuf.UInt32Value upstream_port_override = 3 [(.validate.rules) = { ... }
- Specified by:
hasUpstreamPortOverride
in interfaceCluster.OriginalDstLbConfigOrBuilder
- Returns:
- Whether the upstreamPortOverride field is set.
-
getUpstreamPortOverride
public com.google.protobuf.UInt32Value getUpstreamPortOverride()The port to override for the original dst address. This port will take precedence over filter state and header override ports
.google.protobuf.UInt32Value upstream_port_override = 3 [(.validate.rules) = { ... }
- Specified by:
getUpstreamPortOverride
in interfaceCluster.OriginalDstLbConfigOrBuilder
- Returns:
- The upstreamPortOverride.
-
setUpstreamPortOverride
public Cluster.OriginalDstLbConfig.Builder setUpstreamPortOverride(com.google.protobuf.UInt32Value value) The port to override for the original dst address. This port will take precedence over filter state and header override ports
.google.protobuf.UInt32Value upstream_port_override = 3 [(.validate.rules) = { ... }
-
setUpstreamPortOverride
public Cluster.OriginalDstLbConfig.Builder setUpstreamPortOverride(com.google.protobuf.UInt32Value.Builder builderForValue) The port to override for the original dst address. This port will take precedence over filter state and header override ports
.google.protobuf.UInt32Value upstream_port_override = 3 [(.validate.rules) = { ... }
-
mergeUpstreamPortOverride
public Cluster.OriginalDstLbConfig.Builder mergeUpstreamPortOverride(com.google.protobuf.UInt32Value value) The port to override for the original dst address. This port will take precedence over filter state and header override ports
.google.protobuf.UInt32Value upstream_port_override = 3 [(.validate.rules) = { ... }
-
clearUpstreamPortOverride
The port to override for the original dst address. This port will take precedence over filter state and header override ports
.google.protobuf.UInt32Value upstream_port_override = 3 [(.validate.rules) = { ... }
-
getUpstreamPortOverrideBuilder
public com.google.protobuf.UInt32Value.Builder getUpstreamPortOverrideBuilder()The port to override for the original dst address. This port will take precedence over filter state and header override ports
.google.protobuf.UInt32Value upstream_port_override = 3 [(.validate.rules) = { ... }
-
getUpstreamPortOverrideOrBuilder
public com.google.protobuf.UInt32ValueOrBuilder getUpstreamPortOverrideOrBuilder()The port to override for the original dst address. This port will take precedence over filter state and header override ports
.google.protobuf.UInt32Value upstream_port_override = 3 [(.validate.rules) = { ... }
- Specified by:
getUpstreamPortOverrideOrBuilder
in interfaceCluster.OriginalDstLbConfigOrBuilder
-
getUpstreamPortOverrideFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.UInt32Value,com.google.protobuf.UInt32Value.Builder, getUpstreamPortOverrideFieldBuilder()com.google.protobuf.UInt32ValueOrBuilder> The port to override for the original dst address. This port will take precedence over filter state and header override ports
.google.protobuf.UInt32Value upstream_port_override = 3 [(.validate.rules) = { ... }
-
hasMetadataKey
public boolean hasMetadataKey()The dynamic metadata key to override destination address. First the request metadata is considered, then the connection one.
.envoy.type.metadata.v3.MetadataKey metadata_key = 4;
- Specified by:
hasMetadataKey
in interfaceCluster.OriginalDstLbConfigOrBuilder
- Returns:
- Whether the metadataKey field is set.
-
getMetadataKey
The dynamic metadata key to override destination address. First the request metadata is considered, then the connection one.
.envoy.type.metadata.v3.MetadataKey metadata_key = 4;
- Specified by:
getMetadataKey
in interfaceCluster.OriginalDstLbConfigOrBuilder
- Returns:
- The metadataKey.
-
setMetadataKey
The dynamic metadata key to override destination address. First the request metadata is considered, then the connection one.
.envoy.type.metadata.v3.MetadataKey metadata_key = 4;
-
setMetadataKey
The dynamic metadata key to override destination address. First the request metadata is considered, then the connection one.
.envoy.type.metadata.v3.MetadataKey metadata_key = 4;
-
mergeMetadataKey
The dynamic metadata key to override destination address. First the request metadata is considered, then the connection one.
.envoy.type.metadata.v3.MetadataKey metadata_key = 4;
-
clearMetadataKey
The dynamic metadata key to override destination address. First the request metadata is considered, then the connection one.
.envoy.type.metadata.v3.MetadataKey metadata_key = 4;
-
getMetadataKeyBuilder
The dynamic metadata key to override destination address. First the request metadata is considered, then the connection one.
.envoy.type.metadata.v3.MetadataKey metadata_key = 4;
-
getMetadataKeyOrBuilder
The dynamic metadata key to override destination address. First the request metadata is considered, then the connection one.
.envoy.type.metadata.v3.MetadataKey metadata_key = 4;
- Specified by:
getMetadataKeyOrBuilder
in interfaceCluster.OriginalDstLbConfigOrBuilder
-
getMetadataKeyFieldBuilder
private com.google.protobuf.SingleFieldBuilder<MetadataKey,MetadataKey.Builder, getMetadataKeyFieldBuilder()MetadataKeyOrBuilder> The dynamic metadata key to override destination address. First the request metadata is considered, then the connection one.
.envoy.type.metadata.v3.MetadataKey metadata_key = 4;
-