Class TcpProxy.TunnelingConfig
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.envoyproxy.envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy.TunnelingConfig
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,TcpProxy.TunnelingConfigOrBuilder,Serializable
- Enclosing class:
- TcpProxy
public static final class TcpProxy.TunnelingConfig extends com.google.protobuf.GeneratedMessageV3 implements TcpProxy.TunnelingConfigOrBuilder
Configuration for tunneling TCP over other transports or application layers. Tunneling is supported over both HTTP/1.1 and HTTP/2. Upstream protocol is determined by the cluster configuration.
Protobuf typeenvoy.extensions.filters.network.tcp_proxy.v3.TcpProxy.TunnelingConfig- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTcpProxy.TunnelingConfig.BuilderConfiguration for tunneling TCP over other transports or application layers.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intHEADERS_TO_ADD_FIELD_NUMBERstatic intHOSTNAME_FIELD_NUMBERstatic intUSE_POST_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static TcpProxy.TunnelingConfiggetDefaultInstance()TcpProxy.TunnelingConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()HeaderValueOptiongetHeadersToAdd(int index)Additional request headers to upstream proxy.intgetHeadersToAddCount()Additional request headers to upstream proxy.List<HeaderValueOption>getHeadersToAddList()Additional request headers to upstream proxy.HeaderValueOptionOrBuildergetHeadersToAddOrBuilder(int index)Additional request headers to upstream proxy.List<? extends HeaderValueOptionOrBuilder>getHeadersToAddOrBuilderList()Additional request headers to upstream proxy.StringgetHostname()The hostname to send in the synthesized CONNECT headers to the upstream proxy.com.google.protobuf.ByteStringgetHostnameBytes()The hostname to send in the synthesized CONNECT headers to the upstream proxy.com.google.protobuf.Parser<TcpProxy.TunnelingConfig>getParserForType()intgetSerializedSize()com.google.protobuf.UnknownFieldSetgetUnknownFields()booleangetUsePost()Use POST method instead of CONNECT method to tunnel the TCP stream.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static TcpProxy.TunnelingConfig.BuildernewBuilder()static TcpProxy.TunnelingConfig.BuildernewBuilder(TcpProxy.TunnelingConfig prototype)TcpProxy.TunnelingConfig.BuildernewBuilderForType()protected TcpProxy.TunnelingConfig.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static TcpProxy.TunnelingConfigparseDelimitedFrom(InputStream input)static TcpProxy.TunnelingConfigparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TcpProxy.TunnelingConfigparseFrom(byte[] data)static TcpProxy.TunnelingConfigparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TcpProxy.TunnelingConfigparseFrom(com.google.protobuf.ByteString data)static TcpProxy.TunnelingConfigparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TcpProxy.TunnelingConfigparseFrom(com.google.protobuf.CodedInputStream input)static TcpProxy.TunnelingConfigparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TcpProxy.TunnelingConfigparseFrom(InputStream input)static TcpProxy.TunnelingConfigparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TcpProxy.TunnelingConfigparseFrom(ByteBuffer data)static TcpProxy.TunnelingConfigparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<TcpProxy.TunnelingConfig>parser()TcpProxy.TunnelingConfig.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, 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, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
HOSTNAME_FIELD_NUMBER
public static final int HOSTNAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
USE_POST_FIELD_NUMBER
public static final int USE_POST_FIELD_NUMBER
- See Also:
- Constant Field Values
-
HEADERS_TO_ADD_FIELD_NUMBER
public static final int HEADERS_TO_ADD_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
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
-
getHostname
public String getHostname()
The hostname to send in the synthesized CONNECT headers to the upstream proxy. This field evaluates command operators if set, otherwise returns hostname as is. Example: dynamically set hostname using downstream SNI .. code-block:: yaml tunneling_config: hostname: "%REQUESTED_SERVER_NAME%:443" Example: dynamically set hostname using dynamic metadata .. code-block: yaml tunneling_config: hostname: "%DYNAMIC_METADATA(tunnel:address)%"string hostname = 1 [(.validate.rules) = { ... }- Specified by:
getHostnamein interfaceTcpProxy.TunnelingConfigOrBuilder- Returns:
- The hostname.
-
getHostnameBytes
public com.google.protobuf.ByteString getHostnameBytes()
The hostname to send in the synthesized CONNECT headers to the upstream proxy. This field evaluates command operators if set, otherwise returns hostname as is. Example: dynamically set hostname using downstream SNI .. code-block:: yaml tunneling_config: hostname: "%REQUESTED_SERVER_NAME%:443" Example: dynamically set hostname using dynamic metadata .. code-block: yaml tunneling_config: hostname: "%DYNAMIC_METADATA(tunnel:address)%"string hostname = 1 [(.validate.rules) = { ... }- Specified by:
getHostnameBytesin interfaceTcpProxy.TunnelingConfigOrBuilder- Returns:
- The bytes for hostname.
-
getUsePost
public boolean getUsePost()
Use POST method instead of CONNECT method to tunnel the TCP stream. The 'protocol: bytestream' header is also NOT set for HTTP/2 to comply with the spec. The upstream proxy is expected to convert POST payload as raw TCP.
bool use_post = 2;- Specified by:
getUsePostin interfaceTcpProxy.TunnelingConfigOrBuilder- Returns:
- The usePost.
-
getHeadersToAddList
public List<HeaderValueOption> getHeadersToAddList()
Additional request headers to upstream proxy. This is mainly used to trigger upstream to convert POST requests back to CONNECT requests. Neither ``:-prefixed`` pseudo-headers nor the Host: header can be overridden.
repeated .envoy.config.core.v3.HeaderValueOption headers_to_add = 3 [(.validate.rules) = { ... }- Specified by:
getHeadersToAddListin interfaceTcpProxy.TunnelingConfigOrBuilder
-
getHeadersToAddOrBuilderList
public List<? extends HeaderValueOptionOrBuilder> getHeadersToAddOrBuilderList()
Additional request headers to upstream proxy. This is mainly used to trigger upstream to convert POST requests back to CONNECT requests. Neither ``:-prefixed`` pseudo-headers nor the Host: header can be overridden.
repeated .envoy.config.core.v3.HeaderValueOption headers_to_add = 3 [(.validate.rules) = { ... }- Specified by:
getHeadersToAddOrBuilderListin interfaceTcpProxy.TunnelingConfigOrBuilder
-
getHeadersToAddCount
public int getHeadersToAddCount()
Additional request headers to upstream proxy. This is mainly used to trigger upstream to convert POST requests back to CONNECT requests. Neither ``:-prefixed`` pseudo-headers nor the Host: header can be overridden.
repeated .envoy.config.core.v3.HeaderValueOption headers_to_add = 3 [(.validate.rules) = { ... }- Specified by:
getHeadersToAddCountin interfaceTcpProxy.TunnelingConfigOrBuilder
-
getHeadersToAdd
public HeaderValueOption getHeadersToAdd(int index)
Additional request headers to upstream proxy. This is mainly used to trigger upstream to convert POST requests back to CONNECT requests. Neither ``:-prefixed`` pseudo-headers nor the Host: header can be overridden.
repeated .envoy.config.core.v3.HeaderValueOption headers_to_add = 3 [(.validate.rules) = { ... }- Specified by:
getHeadersToAddin interfaceTcpProxy.TunnelingConfigOrBuilder
-
getHeadersToAddOrBuilder
public HeaderValueOptionOrBuilder getHeadersToAddOrBuilder(int index)
Additional request headers to upstream proxy. This is mainly used to trigger upstream to convert POST requests back to CONNECT requests. Neither ``:-prefixed`` pseudo-headers nor the Host: header can be overridden.
repeated .envoy.config.core.v3.HeaderValueOption headers_to_add = 3 [(.validate.rules) = { ... }- Specified by:
getHeadersToAddOrBuilderin interfaceTcpProxy.TunnelingConfigOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(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 TcpProxy.TunnelingConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TcpProxy.TunnelingConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TcpProxy.TunnelingConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TcpProxy.TunnelingConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TcpProxy.TunnelingConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TcpProxy.TunnelingConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TcpProxy.TunnelingConfig parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static TcpProxy.TunnelingConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static TcpProxy.TunnelingConfig parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static TcpProxy.TunnelingConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static TcpProxy.TunnelingConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static TcpProxy.TunnelingConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public TcpProxy.TunnelingConfig.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static TcpProxy.TunnelingConfig.Builder newBuilder()
-
newBuilder
public static TcpProxy.TunnelingConfig.Builder newBuilder(TcpProxy.TunnelingConfig prototype)
-
toBuilder
public TcpProxy.TunnelingConfig.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected TcpProxy.TunnelingConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static TcpProxy.TunnelingConfig getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<TcpProxy.TunnelingConfig> parser()
-
getParserForType
public com.google.protobuf.Parser<TcpProxy.TunnelingConfig> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public TcpProxy.TunnelingConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-