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,java.io.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 typeenvoy.config.cluster.v3.Cluster.OriginalDstLbConfig- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCluster.OriginalDstLbConfig.BuilderSpecific 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 extends java.lang.Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description private intbitField0_private static Cluster.OriginalDstLbConfigDEFAULT_INSTANCEstatic intHTTP_HEADER_NAME_FIELD_NUMBERprivate java.lang.ObjecthttpHeaderName_private bytememoizedIsInitializedstatic intMETADATA_KEY_FIELD_NUMBERprivate MetadataKeymetadataKey_private static com.google.protobuf.Parser<Cluster.OriginalDstLbConfig>PARSERprivate static longserialVersionUIDstatic intUPSTREAM_PORT_OVERRIDE_FIELD_NUMBERprivate com.google.protobuf.UInt32ValueupstreamPortOverride_static intUSE_HTTP_HEADER_FIELD_NUMBERprivate booleanuseHttpHeader_
-
Constructor Summary
Constructors Modifier Constructor Description privateOriginalDstLbConfig()privateOriginalDstLbConfig(com.google.protobuf.GeneratedMessage.Builder<?> builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)static Cluster.OriginalDstLbConfiggetDefaultInstance()Cluster.OriginalDstLbConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()java.lang.StringgetHttpHeaderName()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.ByteStringgetHttpHeaderNameBytes()The http header to override destination address if :ref:`use_http_header <envoy_v3_api_field_config.cluster.v3.Cluster.OriginalDstLbConfig.use_http_header>`.MetadataKeygetMetadataKey()The dynamic metadata key to override destination address.MetadataKeyOrBuildergetMetadataKeyOrBuilder()The dynamic metadata key to override destination address.com.google.protobuf.Parser<Cluster.OriginalDstLbConfig>getParserForType()intgetSerializedSize()com.google.protobuf.UInt32ValuegetUpstreamPortOverride()The port to override for the original dst address.com.google.protobuf.UInt32ValueOrBuildergetUpstreamPortOverrideOrBuilder()The port to override for the original dst address.booleangetUseHttpHeader()When true, a HTTP header can be used to override the original dst address.inthashCode()booleanhasMetadataKey()The dynamic metadata key to override destination address.booleanhasUpstreamPortOverride()The port to override for the original dst address.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Cluster.OriginalDstLbConfig.BuildernewBuilder()static Cluster.OriginalDstLbConfig.BuildernewBuilder(Cluster.OriginalDstLbConfig prototype)Cluster.OriginalDstLbConfig.BuildernewBuilderForType()protected Cluster.OriginalDstLbConfig.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)static Cluster.OriginalDstLbConfigparseDelimitedFrom(java.io.InputStream input)static Cluster.OriginalDstLbConfigparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Cluster.OriginalDstLbConfigparseFrom(byte[] data)static Cluster.OriginalDstLbConfigparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Cluster.OriginalDstLbConfigparseFrom(com.google.protobuf.ByteString data)static Cluster.OriginalDstLbConfigparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Cluster.OriginalDstLbConfigparseFrom(com.google.protobuf.CodedInputStream input)static Cluster.OriginalDstLbConfigparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Cluster.OriginalDstLbConfigparseFrom(java.io.InputStream input)static Cluster.OriginalDstLbConfigparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Cluster.OriginalDstLbConfigparseFrom(java.nio.ByteBuffer data)static Cluster.OriginalDstLbConfigparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Cluster.OriginalDstLbConfig>parser()Cluster.OriginalDstLbConfig.BuildertoBuilder()voidwriteTo(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
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
bitField0_
private int bitField0_
-
USE_HTTP_HEADER_FIELD_NUMBER
public static final int USE_HTTP_HEADER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
useHttpHeader_
private boolean useHttpHeader_
-
HTTP_HEADER_NAME_FIELD_NUMBER
public static final int HTTP_HEADER_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
httpHeaderName_
private volatile java.lang.Object httpHeaderName_
-
UPSTREAM_PORT_OVERRIDE_FIELD_NUMBER
public static final int UPSTREAM_PORT_OVERRIDE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
upstreamPortOverride_
private com.google.protobuf.UInt32Value upstreamPortOverride_
-
METADATA_KEY_FIELD_NUMBER
public static final int METADATA_KEY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
metadataKey_
private MetadataKey metadataKey_
-
memoizedIsInitialized
private byte memoizedIsInitialized
-
DEFAULT_INSTANCE
private static final Cluster.OriginalDstLbConfig DEFAULT_INSTANCE
-
PARSER
private static final com.google.protobuf.Parser<Cluster.OriginalDstLbConfig> PARSER
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein 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:
getUseHttpHeaderin interfaceCluster.OriginalDstLbConfigOrBuilder- Returns:
- The useHttpHeader.
-
getHttpHeaderName
public java.lang.String 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:
getHttpHeaderNamein 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:
getHttpHeaderNameBytesin 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:
hasUpstreamPortOverridein 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:
getUpstreamPortOverridein 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:
getUpstreamPortOverrideOrBuilderin 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:
hasMetadataKeyin interfaceCluster.OriginalDstLbConfigOrBuilder- Returns:
- Whether the metadataKey field is set.
-
getMetadataKey
public MetadataKey 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:
getMetadataKeyin interfaceCluster.OriginalDstLbConfigOrBuilder- Returns:
- The metadataKey.
-
getMetadataKeyOrBuilder
public MetadataKeyOrBuilder 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:
getMetadataKeyOrBuilderin interfaceCluster.OriginalDstLbConfigOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Cluster.OriginalDstLbConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Cluster.OriginalDstLbConfig parseFrom(java.nio.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
public static Cluster.OriginalDstLbConfig parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Cluster.OriginalDstLbConfig parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Cluster.OriginalDstLbConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Cluster.OriginalDstLbConfig parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Cluster.OriginalDstLbConfig parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Cluster.OriginalDstLbConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public Cluster.OriginalDstLbConfig.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Cluster.OriginalDstLbConfig.Builder newBuilder()
-
newBuilder
public static Cluster.OriginalDstLbConfig.Builder newBuilder(Cluster.OriginalDstLbConfig prototype)
-
toBuilder
public Cluster.OriginalDstLbConfig.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Cluster.OriginalDstLbConfig.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
- Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
public static Cluster.OriginalDstLbConfig getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Cluster.OriginalDstLbConfig> parser()
-
getParserForType
public com.google.protobuf.Parser<Cluster.OriginalDstLbConfig> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
public Cluster.OriginalDstLbConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-