Class Cluster.OriginalDstLbConfig
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
io.envoyproxy.envoy.config.cluster.v3.Cluster.OriginalDstLbConfig
- All Implemented Interfaces:
com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cluster.OriginalDstLbConfigOrBuilder
,Serializable
- Enclosing class:
Cluster
public static final class Cluster.OriginalDstLbConfig
extends com.google.protobuf.GeneratedMessage
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
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Specific configuration for the :ref:`Original Destination <arch_overview_load_balancing_types_original_destination>` load balancing policy.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,
BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParent
Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private static final Cluster.OriginalDstLbConfig
static final int
private Object
private byte
static final int
private MetadataKey
private static final com.google.protobuf.Parser
<Cluster.OriginalDstLbConfig> private static final long
static final int
private com.google.protobuf.UInt32Value
static final int
private boolean
Fields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, unknownFields
Fields inherited from class com.google.protobuf.AbstractMessage
memoizedSize
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
private
OriginalDstLbConfig
(com.google.protobuf.GeneratedMessage.Builder<?> builder) -
Method Summary
Modifier and TypeMethodDescriptionboolean
static Cluster.OriginalDstLbConfig
static final 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.com.google.protobuf.Parser
<Cluster.OriginalDstLbConfig> int
com.google.protobuf.UInt32Value
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.int
hashCode()
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
newBuilder
(Cluster.OriginalDstLbConfig prototype) protected Cluster.OriginalDstLbConfig.Builder
newBuilderForType
(com.google.protobuf.AbstractMessage.BuilderParent parent) static Cluster.OriginalDstLbConfig
parseDelimitedFrom
(InputStream input) static Cluster.OriginalDstLbConfig
parseDelimitedFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Cluster.OriginalDstLbConfig
parseFrom
(byte[] data) static Cluster.OriginalDstLbConfig
parseFrom
(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Cluster.OriginalDstLbConfig
parseFrom
(com.google.protobuf.ByteString data) static Cluster.OriginalDstLbConfig
parseFrom
(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Cluster.OriginalDstLbConfig
parseFrom
(com.google.protobuf.CodedInputStream input) static Cluster.OriginalDstLbConfig
parseFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Cluster.OriginalDstLbConfig
parseFrom
(InputStream input) static Cluster.OriginalDstLbConfig
parseFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Cluster.OriginalDstLbConfig
parseFrom
(ByteBuffer data) static Cluster.OriginalDstLbConfig
parseFrom
(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser
<Cluster.OriginalDstLbConfig> parser()
void
writeTo
(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
bitField0_
private int bitField0_ -
USE_HTTP_HEADER_FIELD_NUMBER
public static final int USE_HTTP_HEADER_FIELD_NUMBER- See Also:
-
useHttpHeader_
private boolean useHttpHeader_ -
HTTP_HEADER_NAME_FIELD_NUMBER
public static final int HTTP_HEADER_NAME_FIELD_NUMBER- See Also:
-
httpHeaderName_
-
UPSTREAM_PORT_OVERRIDE_FIELD_NUMBER
public static final int UPSTREAM_PORT_OVERRIDE_FIELD_NUMBER- See Also:
-
upstreamPortOverride_
private com.google.protobuf.UInt32Value upstreamPortOverride_ -
METADATA_KEY_FIELD_NUMBER
public static final int METADATA_KEY_FIELD_NUMBER- See Also:
-
metadataKey_
-
memoizedIsInitialized
private byte memoizedIsInitialized -
DEFAULT_INSTANCE
-
PARSER
-
-
Constructor Details
-
OriginalDstLbConfig
private OriginalDstLbConfig(com.google.protobuf.GeneratedMessage.Builder<?> builder) -
OriginalDstLbConfig
private OriginalDstLbConfig()
-
-
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
-
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.
-
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.
-
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.
-
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
-
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.
-
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
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessage
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Cluster.OriginalDstLbConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Cluster.OriginalDstLbConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Cluster.OriginalDstLbConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Cluster.OriginalDstLbConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Cluster.OriginalDstLbConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Cluster.OriginalDstLbConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Cluster.OriginalDstLbConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Cluster.OriginalDstLbConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Cluster.OriginalDstLbConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Cluster.OriginalDstLbConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Cluster.OriginalDstLbConfig.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForType
in classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-