Class UdpProxyConfig.UdpTunnelingConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<UdpProxyConfig.UdpTunnelingConfig.Builder>
io.envoyproxy.envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig.UdpTunnelingConfig.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,UdpProxyConfig.UdpTunnelingConfigOrBuilder,Cloneable
- Enclosing class:
- UdpProxyConfig.UdpTunnelingConfig
public static final class UdpProxyConfig.UdpTunnelingConfig.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<UdpProxyConfig.UdpTunnelingConfig.Builder>
implements UdpProxyConfig.UdpTunnelingConfigOrBuilder
Configuration for tunneling UDP over other transports or application layers. Tunneling is currently supported over HTTP/2. [#next-free-field: 12]Protobuf type
envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig.UdpTunnelingConfig-
Method Summary
Modifier and TypeMethodDescriptionaddAllHeadersToAdd(Iterable<? extends HeaderValueOption> values) Additional request headers to upstream proxy.addHeadersToAdd(int index, HeaderValueOption value) Additional request headers to upstream proxy.addHeadersToAdd(int index, HeaderValueOption.Builder builderForValue) Additional request headers to upstream proxy.addHeadersToAdd(HeaderValueOption value) Additional request headers to upstream proxy.addHeadersToAdd(HeaderValueOption.Builder builderForValue) Additional request headers to upstream proxy.Additional request headers to upstream proxy.addHeadersToAddBuilder(int index) Additional request headers to upstream proxy.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()If configured, the filter will buffer datagrams in case that it is waiting for the upstream to be ready, whether if it is during the connection process or due to upstream buffer watermarks.The default target port to send in the CONNECT headers to the upstream proxy.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Additional request headers to upstream proxy.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The path used with POST method.Save the response headers to the downstream info filter state for consumption by the session filters.Save the response trailers to the downstream info filter state for consumption by the session filters.The hostname to send in the synthesized CONNECT headers to the upstream proxy.Optional port value to add to the HTTP request URI.Optional retry options, in case connecting to the upstream failed.The target host to send in the synthesized CONNECT headers to the upstream proxy.Use POST method instead of CONNECT method to tunnel the UDP stream. .. note:: If use_post is set, the upstream stream does not comply with the connect-udp RFC, and instead it will be a POST request. the path used in the headers will be set from the post_path field, and the headers will not contain the target host and target port, as required by the connect-udp protocol.clone()If configured, the filter will buffer datagrams in case that it is waiting for the upstream to be ready, whether if it is during the connection process or due to upstream buffer watermarks.If configured, the filter will buffer datagrams in case that it is waiting for the upstream to be ready, whether if it is during the connection process or due to upstream buffer watermarks.If configured, the filter will buffer datagrams in case that it is waiting for the upstream to be ready, whether if it is during the connection process or due to upstream buffer watermarks.intThe default target port to send in the CONNECT headers to the upstream proxy.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetHeadersToAdd(int index) Additional request headers to upstream proxy.getHeadersToAddBuilder(int index) Additional request headers to upstream proxy.Additional request headers to upstream proxy.intAdditional request headers to upstream proxy.Additional request headers to upstream proxy.getHeadersToAddOrBuilder(int index) Additional request headers to upstream proxy.List<? extends HeaderValueOptionOrBuilder>Additional request headers to upstream proxy.The path used with POST method.com.google.protobuf.ByteStringThe path used with POST method.booleanSave the response headers to the downstream info filter state for consumption by the session filters.booleanSave the response trailers to the downstream info filter state for consumption by the session filters.The hostname to send in the synthesized CONNECT headers to the upstream proxy.com.google.protobuf.ByteStringThe hostname to send in the synthesized CONNECT headers to the upstream proxy.com.google.protobuf.UInt32ValueOptional port value to add to the HTTP request URI.com.google.protobuf.UInt32Value.BuilderOptional port value to add to the HTTP request URI.com.google.protobuf.UInt32ValueOrBuilderOptional port value to add to the HTTP request URI.Optional retry options, in case connecting to the upstream failed.Optional retry options, in case connecting to the upstream failed.Optional retry options, in case connecting to the upstream failed.The target host to send in the synthesized CONNECT headers to the upstream proxy.com.google.protobuf.ByteStringThe target host to send in the synthesized CONNECT headers to the upstream proxy.booleanUse POST method instead of CONNECT method to tunnel the UDP stream. .. note:: If use_post is set, the upstream stream does not comply with the connect-udp RFC, and instead it will be a POST request. the path used in the headers will be set from the post_path field, and the headers will not contain the target host and target port, as required by the connect-udp protocol.booleanIf configured, the filter will buffer datagrams in case that it is waiting for the upstream to be ready, whether if it is during the connection process or due to upstream buffer watermarks.booleanOptional port value to add to the HTTP request URI.booleanOptional retry options, in case connecting to the upstream failed.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanIf configured, the filter will buffer datagrams in case that it is waiting for the upstream to be ready, whether if it is during the connection process or due to upstream buffer watermarks.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeProxyPort(com.google.protobuf.UInt32Value value) Optional port value to add to the HTTP request URI.Optional retry options, in case connecting to the upstream failed.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeHeadersToAdd(int index) Additional request headers to upstream proxy.If configured, the filter will buffer datagrams in case that it is waiting for the upstream to be ready, whether if it is during the connection process or due to upstream buffer watermarks.setBufferOptions(UdpProxyConfig.UdpTunnelingConfig.BufferOptions.Builder builderForValue) If configured, the filter will buffer datagrams in case that it is waiting for the upstream to be ready, whether if it is during the connection process or due to upstream buffer watermarks.setDefaultTargetPort(int value) The default target port to send in the CONNECT headers to the upstream proxy.setHeadersToAdd(int index, HeaderValueOption value) Additional request headers to upstream proxy.setHeadersToAdd(int index, HeaderValueOption.Builder builderForValue) Additional request headers to upstream proxy.setPostPath(String value) The path used with POST method.setPostPathBytes(com.google.protobuf.ByteString value) The path used with POST method.setPropagateResponseHeaders(boolean value) Save the response headers to the downstream info filter state for consumption by the session filters.setPropagateResponseTrailers(boolean value) Save the response trailers to the downstream info filter state for consumption by the session filters.setProxyHost(String value) The hostname to send in the synthesized CONNECT headers to the upstream proxy.setProxyHostBytes(com.google.protobuf.ByteString value) The hostname to send in the synthesized CONNECT headers to the upstream proxy.setProxyPort(com.google.protobuf.UInt32Value value) Optional port value to add to the HTTP request URI.setProxyPort(com.google.protobuf.UInt32Value.Builder builderForValue) Optional port value to add to the HTTP request URI.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) Optional retry options, in case connecting to the upstream failed.setRetryOptions(UdpProxyConfig.UdpTunnelingConfig.RetryOptions.Builder builderForValue) Optional retry options, in case connecting to the upstream failed.setTargetHost(String value) The target host to send in the synthesized CONNECT headers to the upstream proxy.setTargetHostBytes(com.google.protobuf.ByteString value) The target host to send in the synthesized CONNECT headers to the upstream proxy.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setUsePost(boolean value) Use POST method instead of CONNECT method to tunnel the UDP stream. .. note:: If use_post is set, the upstream stream does not comply with the connect-udp RFC, and instead it will be a POST request. the path used in the headers will be set from the post_path field, and the headers will not contain the target host and target port, as required by the connect-udp protocol.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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<UdpProxyConfig.UdpTunnelingConfig.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<UdpProxyConfig.UdpTunnelingConfig.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<UdpProxyConfig.UdpTunnelingConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.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<UdpProxyConfig.UdpTunnelingConfig.Builder>
-
setField
public UdpProxyConfig.UdpTunnelingConfig.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<UdpProxyConfig.UdpTunnelingConfig.Builder>
-
clearField
public UdpProxyConfig.UdpTunnelingConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<UdpProxyConfig.UdpTunnelingConfig.Builder>
-
clearOneof
public UdpProxyConfig.UdpTunnelingConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<UdpProxyConfig.UdpTunnelingConfig.Builder>
-
setRepeatedField
public UdpProxyConfig.UdpTunnelingConfig.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<UdpProxyConfig.UdpTunnelingConfig.Builder>
-
addRepeatedField
public UdpProxyConfig.UdpTunnelingConfig.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<UdpProxyConfig.UdpTunnelingConfig.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UdpProxyConfig.UdpTunnelingConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<UdpProxyConfig.UdpTunnelingConfig.Builder>
-
mergeFrom
public UdpProxyConfig.UdpTunnelingConfig.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<UdpProxyConfig.UdpTunnelingConfig.Builder>- Throws:
IOException
-
getProxyHost
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 filter state .. code-block:: yaml tunneling_config: proxy_host: "%FILTER_STATE(proxy.host.key:PLAIN)%"string proxy_host = 1 [(.validate.rules) = { ... }- Specified by:
getProxyHostin interfaceUdpProxyConfig.UdpTunnelingConfigOrBuilder- Returns:
- The proxyHost.
-
getProxyHostBytes
public com.google.protobuf.ByteString getProxyHostBytes()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 filter state .. code-block:: yaml tunneling_config: proxy_host: "%FILTER_STATE(proxy.host.key:PLAIN)%"string proxy_host = 1 [(.validate.rules) = { ... }- Specified by:
getProxyHostBytesin interfaceUdpProxyConfig.UdpTunnelingConfigOrBuilder- Returns:
- The bytes for proxyHost.
-
setProxyHost
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 filter state .. code-block:: yaml tunneling_config: proxy_host: "%FILTER_STATE(proxy.host.key:PLAIN)%"string proxy_host = 1 [(.validate.rules) = { ... }- Parameters:
value- The proxyHost to set.- Returns:
- This builder for chaining.
-
clearProxyHost
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 filter state .. code-block:: yaml tunneling_config: proxy_host: "%FILTER_STATE(proxy.host.key:PLAIN)%"string proxy_host = 1 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setProxyHostBytes
public UdpProxyConfig.UdpTunnelingConfig.Builder setProxyHostBytes(com.google.protobuf.ByteString value) 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 filter state .. code-block:: yaml tunneling_config: proxy_host: "%FILTER_STATE(proxy.host.key:PLAIN)%"string proxy_host = 1 [(.validate.rules) = { ... }- Parameters:
value- The bytes for proxyHost to set.- Returns:
- This builder for chaining.
-
hasProxyPort
public boolean hasProxyPort()Optional port value to add to the HTTP request URI. This value can be overridden per-session by setting the required port value for the filter state key ``udp.connect.proxy_port``.
.google.protobuf.UInt32Value proxy_port = 2;- Specified by:
hasProxyPortin interfaceUdpProxyConfig.UdpTunnelingConfigOrBuilder- Returns:
- Whether the proxyPort field is set.
-
getProxyPort
public com.google.protobuf.UInt32Value getProxyPort()Optional port value to add to the HTTP request URI. This value can be overridden per-session by setting the required port value for the filter state key ``udp.connect.proxy_port``.
.google.protobuf.UInt32Value proxy_port = 2;- Specified by:
getProxyPortin interfaceUdpProxyConfig.UdpTunnelingConfigOrBuilder- Returns:
- The proxyPort.
-
setProxyPort
public UdpProxyConfig.UdpTunnelingConfig.Builder setProxyPort(com.google.protobuf.UInt32Value value) Optional port value to add to the HTTP request URI. This value can be overridden per-session by setting the required port value for the filter state key ``udp.connect.proxy_port``.
.google.protobuf.UInt32Value proxy_port = 2; -
setProxyPort
public UdpProxyConfig.UdpTunnelingConfig.Builder setProxyPort(com.google.protobuf.UInt32Value.Builder builderForValue) Optional port value to add to the HTTP request URI. This value can be overridden per-session by setting the required port value for the filter state key ``udp.connect.proxy_port``.
.google.protobuf.UInt32Value proxy_port = 2; -
mergeProxyPort
public UdpProxyConfig.UdpTunnelingConfig.Builder mergeProxyPort(com.google.protobuf.UInt32Value value) Optional port value to add to the HTTP request URI. This value can be overridden per-session by setting the required port value for the filter state key ``udp.connect.proxy_port``.
.google.protobuf.UInt32Value proxy_port = 2; -
clearProxyPort
Optional port value to add to the HTTP request URI. This value can be overridden per-session by setting the required port value for the filter state key ``udp.connect.proxy_port``.
.google.protobuf.UInt32Value proxy_port = 2; -
getProxyPortBuilder
public com.google.protobuf.UInt32Value.Builder getProxyPortBuilder()Optional port value to add to the HTTP request URI. This value can be overridden per-session by setting the required port value for the filter state key ``udp.connect.proxy_port``.
.google.protobuf.UInt32Value proxy_port = 2; -
getProxyPortOrBuilder
public com.google.protobuf.UInt32ValueOrBuilder getProxyPortOrBuilder()Optional port value to add to the HTTP request URI. This value can be overridden per-session by setting the required port value for the filter state key ``udp.connect.proxy_port``.
.google.protobuf.UInt32Value proxy_port = 2;- Specified by:
getProxyPortOrBuilderin interfaceUdpProxyConfig.UdpTunnelingConfigOrBuilder
-
getTargetHost
The target host 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 target host using filter state .. code-block:: yaml tunneling_config: target_host: "%FILTER_STATE(target.host.key:PLAIN)%"string target_host = 3 [(.validate.rules) = { ... }- Specified by:
getTargetHostin interfaceUdpProxyConfig.UdpTunnelingConfigOrBuilder- Returns:
- The targetHost.
-
getTargetHostBytes
public com.google.protobuf.ByteString getTargetHostBytes()The target host 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 target host using filter state .. code-block:: yaml tunneling_config: target_host: "%FILTER_STATE(target.host.key:PLAIN)%"string target_host = 3 [(.validate.rules) = { ... }- Specified by:
getTargetHostBytesin interfaceUdpProxyConfig.UdpTunnelingConfigOrBuilder- Returns:
- The bytes for targetHost.
-
setTargetHost
The target host 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 target host using filter state .. code-block:: yaml tunneling_config: target_host: "%FILTER_STATE(target.host.key:PLAIN)%"string target_host = 3 [(.validate.rules) = { ... }- Parameters:
value- The targetHost to set.- Returns:
- This builder for chaining.
-
clearTargetHost
The target host 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 target host using filter state .. code-block:: yaml tunneling_config: target_host: "%FILTER_STATE(target.host.key:PLAIN)%"string target_host = 3 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setTargetHostBytes
public UdpProxyConfig.UdpTunnelingConfig.Builder setTargetHostBytes(com.google.protobuf.ByteString value) The target host 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 target host using filter state .. code-block:: yaml tunneling_config: target_host: "%FILTER_STATE(target.host.key:PLAIN)%"string target_host = 3 [(.validate.rules) = { ... }- Parameters:
value- The bytes for targetHost to set.- Returns:
- This builder for chaining.
-
getDefaultTargetPort
public int getDefaultTargetPort()The default target port to send in the CONNECT headers to the upstream proxy. This value can be overridden per-session by setting the required port value for the filter state key ``udp.connect.target_port``.
uint32 default_target_port = 4 [(.validate.rules) = { ... }- Specified by:
getDefaultTargetPortin interfaceUdpProxyConfig.UdpTunnelingConfigOrBuilder- Returns:
- The defaultTargetPort.
-
setDefaultTargetPort
The default target port to send in the CONNECT headers to the upstream proxy. This value can be overridden per-session by setting the required port value for the filter state key ``udp.connect.target_port``.
uint32 default_target_port = 4 [(.validate.rules) = { ... }- Parameters:
value- The defaultTargetPort to set.- Returns:
- This builder for chaining.
-
clearDefaultTargetPort
The default target port to send in the CONNECT headers to the upstream proxy. This value can be overridden per-session by setting the required port value for the filter state key ``udp.connect.target_port``.
uint32 default_target_port = 4 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
getUsePost
public boolean getUsePost()Use POST method instead of CONNECT method to tunnel the UDP stream. .. note:: If use_post is set, the upstream stream does not comply with the connect-udp RFC, and instead it will be a POST request. the path used in the headers will be set from the post_path field, and the headers will not contain the target host and target port, as required by the connect-udp protocol. This flag should be used carefully.
bool use_post = 5;- Specified by:
getUsePostin interfaceUdpProxyConfig.UdpTunnelingConfigOrBuilder- Returns:
- The usePost.
-
setUsePost
Use POST method instead of CONNECT method to tunnel the UDP stream. .. note:: If use_post is set, the upstream stream does not comply with the connect-udp RFC, and instead it will be a POST request. the path used in the headers will be set from the post_path field, and the headers will not contain the target host and target port, as required by the connect-udp protocol. This flag should be used carefully.
bool use_post = 5;- Parameters:
value- The usePost to set.- Returns:
- This builder for chaining.
-
clearUsePost
Use POST method instead of CONNECT method to tunnel the UDP stream. .. note:: If use_post is set, the upstream stream does not comply with the connect-udp RFC, and instead it will be a POST request. the path used in the headers will be set from the post_path field, and the headers will not contain the target host and target port, as required by the connect-udp protocol. This flag should be used carefully.
bool use_post = 5;- Returns:
- This builder for chaining.
-
getPostPath
The path used with POST method. Default path is ``/``. If post path is specified and use_post field isn't true, it will be rejected.
string post_path = 6;- Specified by:
getPostPathin interfaceUdpProxyConfig.UdpTunnelingConfigOrBuilder- Returns:
- The postPath.
-
getPostPathBytes
public com.google.protobuf.ByteString getPostPathBytes()The path used with POST method. Default path is ``/``. If post path is specified and use_post field isn't true, it will be rejected.
string post_path = 6;- Specified by:
getPostPathBytesin interfaceUdpProxyConfig.UdpTunnelingConfigOrBuilder- Returns:
- The bytes for postPath.
-
setPostPath
The path used with POST method. Default path is ``/``. If post path is specified and use_post field isn't true, it will be rejected.
string post_path = 6;- Parameters:
value- The postPath to set.- Returns:
- This builder for chaining.
-
clearPostPath
The path used with POST method. Default path is ``/``. If post path is specified and use_post field isn't true, it will be rejected.
string post_path = 6;- Returns:
- This builder for chaining.
-
setPostPathBytes
public UdpProxyConfig.UdpTunnelingConfig.Builder setPostPathBytes(com.google.protobuf.ByteString value) The path used with POST method. Default path is ``/``. If post path is specified and use_post field isn't true, it will be rejected.
string post_path = 6;- Parameters:
value- The bytes for postPath to set.- Returns:
- This builder for chaining.
-
hasRetryOptions
public boolean hasRetryOptions()Optional retry options, in case connecting to the upstream failed.
.envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig.UdpTunnelingConfig.RetryOptions retry_options = 7;- Specified by:
hasRetryOptionsin interfaceUdpProxyConfig.UdpTunnelingConfigOrBuilder- Returns:
- Whether the retryOptions field is set.
-
getRetryOptions
Optional retry options, in case connecting to the upstream failed.
.envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig.UdpTunnelingConfig.RetryOptions retry_options = 7;- Specified by:
getRetryOptionsin interfaceUdpProxyConfig.UdpTunnelingConfigOrBuilder- Returns:
- The retryOptions.
-
setRetryOptions
public UdpProxyConfig.UdpTunnelingConfig.Builder setRetryOptions(UdpProxyConfig.UdpTunnelingConfig.RetryOptions value) Optional retry options, in case connecting to the upstream failed.
.envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig.UdpTunnelingConfig.RetryOptions retry_options = 7; -
setRetryOptions
public UdpProxyConfig.UdpTunnelingConfig.Builder setRetryOptions(UdpProxyConfig.UdpTunnelingConfig.RetryOptions.Builder builderForValue) Optional retry options, in case connecting to the upstream failed.
.envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig.UdpTunnelingConfig.RetryOptions retry_options = 7; -
mergeRetryOptions
public UdpProxyConfig.UdpTunnelingConfig.Builder mergeRetryOptions(UdpProxyConfig.UdpTunnelingConfig.RetryOptions value) Optional retry options, in case connecting to the upstream failed.
.envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig.UdpTunnelingConfig.RetryOptions retry_options = 7; -
clearRetryOptions
Optional retry options, in case connecting to the upstream failed.
.envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig.UdpTunnelingConfig.RetryOptions retry_options = 7; -
getRetryOptionsBuilder
Optional retry options, in case connecting to the upstream failed.
.envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig.UdpTunnelingConfig.RetryOptions retry_options = 7; -
getRetryOptionsOrBuilder
Optional retry options, in case connecting to the upstream failed.
.envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig.UdpTunnelingConfig.RetryOptions retry_options = 7;- Specified by:
getRetryOptionsOrBuilderin interfaceUdpProxyConfig.UdpTunnelingConfigOrBuilder
-
getHeadersToAddList
Additional request headers to upstream proxy. Neither ``:-prefixed`` pseudo-headers nor the Host: header can be overridden. Values of the added headers evaluates command operators if they are set in the value template. Example: dynamically set a header with the local port .. code-block:: yaml headers_to_add: - header: key: original_dst_port value: "%DOWNSTREAM_LOCAL_PORT%"repeated .envoy.config.core.v3.HeaderValueOption headers_to_add = 8 [(.validate.rules) = { ... }- Specified by:
getHeadersToAddListin interfaceUdpProxyConfig.UdpTunnelingConfigOrBuilder
-
getHeadersToAddCount
public int getHeadersToAddCount()Additional request headers to upstream proxy. Neither ``:-prefixed`` pseudo-headers nor the Host: header can be overridden. Values of the added headers evaluates command operators if they are set in the value template. Example: dynamically set a header with the local port .. code-block:: yaml headers_to_add: - header: key: original_dst_port value: "%DOWNSTREAM_LOCAL_PORT%"repeated .envoy.config.core.v3.HeaderValueOption headers_to_add = 8 [(.validate.rules) = { ... }- Specified by:
getHeadersToAddCountin interfaceUdpProxyConfig.UdpTunnelingConfigOrBuilder
-
getHeadersToAdd
Additional request headers to upstream proxy. Neither ``:-prefixed`` pseudo-headers nor the Host: header can be overridden. Values of the added headers evaluates command operators if they are set in the value template. Example: dynamically set a header with the local port .. code-block:: yaml headers_to_add: - header: key: original_dst_port value: "%DOWNSTREAM_LOCAL_PORT%"repeated .envoy.config.core.v3.HeaderValueOption headers_to_add = 8 [(.validate.rules) = { ... }- Specified by:
getHeadersToAddin interfaceUdpProxyConfig.UdpTunnelingConfigOrBuilder
-
setHeadersToAdd
public UdpProxyConfig.UdpTunnelingConfig.Builder setHeadersToAdd(int index, HeaderValueOption value) Additional request headers to upstream proxy. Neither ``:-prefixed`` pseudo-headers nor the Host: header can be overridden. Values of the added headers evaluates command operators if they are set in the value template. Example: dynamically set a header with the local port .. code-block:: yaml headers_to_add: - header: key: original_dst_port value: "%DOWNSTREAM_LOCAL_PORT%"repeated .envoy.config.core.v3.HeaderValueOption headers_to_add = 8 [(.validate.rules) = { ... } -
setHeadersToAdd
public UdpProxyConfig.UdpTunnelingConfig.Builder setHeadersToAdd(int index, HeaderValueOption.Builder builderForValue) Additional request headers to upstream proxy. Neither ``:-prefixed`` pseudo-headers nor the Host: header can be overridden. Values of the added headers evaluates command operators if they are set in the value template. Example: dynamically set a header with the local port .. code-block:: yaml headers_to_add: - header: key: original_dst_port value: "%DOWNSTREAM_LOCAL_PORT%"repeated .envoy.config.core.v3.HeaderValueOption headers_to_add = 8 [(.validate.rules) = { ... } -
addHeadersToAdd
Additional request headers to upstream proxy. Neither ``:-prefixed`` pseudo-headers nor the Host: header can be overridden. Values of the added headers evaluates command operators if they are set in the value template. Example: dynamically set a header with the local port .. code-block:: yaml headers_to_add: - header: key: original_dst_port value: "%DOWNSTREAM_LOCAL_PORT%"repeated .envoy.config.core.v3.HeaderValueOption headers_to_add = 8 [(.validate.rules) = { ... } -
addHeadersToAdd
public UdpProxyConfig.UdpTunnelingConfig.Builder addHeadersToAdd(int index, HeaderValueOption value) Additional request headers to upstream proxy. Neither ``:-prefixed`` pseudo-headers nor the Host: header can be overridden. Values of the added headers evaluates command operators if they are set in the value template. Example: dynamically set a header with the local port .. code-block:: yaml headers_to_add: - header: key: original_dst_port value: "%DOWNSTREAM_LOCAL_PORT%"repeated .envoy.config.core.v3.HeaderValueOption headers_to_add = 8 [(.validate.rules) = { ... } -
addHeadersToAdd
public UdpProxyConfig.UdpTunnelingConfig.Builder addHeadersToAdd(HeaderValueOption.Builder builderForValue) Additional request headers to upstream proxy. Neither ``:-prefixed`` pseudo-headers nor the Host: header can be overridden. Values of the added headers evaluates command operators if they are set in the value template. Example: dynamically set a header with the local port .. code-block:: yaml headers_to_add: - header: key: original_dst_port value: "%DOWNSTREAM_LOCAL_PORT%"repeated .envoy.config.core.v3.HeaderValueOption headers_to_add = 8 [(.validate.rules) = { ... } -
addHeadersToAdd
public UdpProxyConfig.UdpTunnelingConfig.Builder addHeadersToAdd(int index, HeaderValueOption.Builder builderForValue) Additional request headers to upstream proxy. Neither ``:-prefixed`` pseudo-headers nor the Host: header can be overridden. Values of the added headers evaluates command operators if they are set in the value template. Example: dynamically set a header with the local port .. code-block:: yaml headers_to_add: - header: key: original_dst_port value: "%DOWNSTREAM_LOCAL_PORT%"repeated .envoy.config.core.v3.HeaderValueOption headers_to_add = 8 [(.validate.rules) = { ... } -
addAllHeadersToAdd
public UdpProxyConfig.UdpTunnelingConfig.Builder addAllHeadersToAdd(Iterable<? extends HeaderValueOption> values) Additional request headers to upstream proxy. Neither ``:-prefixed`` pseudo-headers nor the Host: header can be overridden. Values of the added headers evaluates command operators if they are set in the value template. Example: dynamically set a header with the local port .. code-block:: yaml headers_to_add: - header: key: original_dst_port value: "%DOWNSTREAM_LOCAL_PORT%"repeated .envoy.config.core.v3.HeaderValueOption headers_to_add = 8 [(.validate.rules) = { ... } -
clearHeadersToAdd
Additional request headers to upstream proxy. Neither ``:-prefixed`` pseudo-headers nor the Host: header can be overridden. Values of the added headers evaluates command operators if they are set in the value template. Example: dynamically set a header with the local port .. code-block:: yaml headers_to_add: - header: key: original_dst_port value: "%DOWNSTREAM_LOCAL_PORT%"repeated .envoy.config.core.v3.HeaderValueOption headers_to_add = 8 [(.validate.rules) = { ... } -
removeHeadersToAdd
Additional request headers to upstream proxy. Neither ``:-prefixed`` pseudo-headers nor the Host: header can be overridden. Values of the added headers evaluates command operators if they are set in the value template. Example: dynamically set a header with the local port .. code-block:: yaml headers_to_add: - header: key: original_dst_port value: "%DOWNSTREAM_LOCAL_PORT%"repeated .envoy.config.core.v3.HeaderValueOption headers_to_add = 8 [(.validate.rules) = { ... } -
getHeadersToAddBuilder
Additional request headers to upstream proxy. Neither ``:-prefixed`` pseudo-headers nor the Host: header can be overridden. Values of the added headers evaluates command operators if they are set in the value template. Example: dynamically set a header with the local port .. code-block:: yaml headers_to_add: - header: key: original_dst_port value: "%DOWNSTREAM_LOCAL_PORT%"repeated .envoy.config.core.v3.HeaderValueOption headers_to_add = 8 [(.validate.rules) = { ... } -
getHeadersToAddOrBuilder
Additional request headers to upstream proxy. Neither ``:-prefixed`` pseudo-headers nor the Host: header can be overridden. Values of the added headers evaluates command operators if they are set in the value template. Example: dynamically set a header with the local port .. code-block:: yaml headers_to_add: - header: key: original_dst_port value: "%DOWNSTREAM_LOCAL_PORT%"repeated .envoy.config.core.v3.HeaderValueOption headers_to_add = 8 [(.validate.rules) = { ... }- Specified by:
getHeadersToAddOrBuilderin interfaceUdpProxyConfig.UdpTunnelingConfigOrBuilder
-
getHeadersToAddOrBuilderList
Additional request headers to upstream proxy. Neither ``:-prefixed`` pseudo-headers nor the Host: header can be overridden. Values of the added headers evaluates command operators if they are set in the value template. Example: dynamically set a header with the local port .. code-block:: yaml headers_to_add: - header: key: original_dst_port value: "%DOWNSTREAM_LOCAL_PORT%"repeated .envoy.config.core.v3.HeaderValueOption headers_to_add = 8 [(.validate.rules) = { ... }- Specified by:
getHeadersToAddOrBuilderListin interfaceUdpProxyConfig.UdpTunnelingConfigOrBuilder
-
addHeadersToAddBuilder
Additional request headers to upstream proxy. Neither ``:-prefixed`` pseudo-headers nor the Host: header can be overridden. Values of the added headers evaluates command operators if they are set in the value template. Example: dynamically set a header with the local port .. code-block:: yaml headers_to_add: - header: key: original_dst_port value: "%DOWNSTREAM_LOCAL_PORT%"repeated .envoy.config.core.v3.HeaderValueOption headers_to_add = 8 [(.validate.rules) = { ... } -
addHeadersToAddBuilder
Additional request headers to upstream proxy. Neither ``:-prefixed`` pseudo-headers nor the Host: header can be overridden. Values of the added headers evaluates command operators if they are set in the value template. Example: dynamically set a header with the local port .. code-block:: yaml headers_to_add: - header: key: original_dst_port value: "%DOWNSTREAM_LOCAL_PORT%"repeated .envoy.config.core.v3.HeaderValueOption headers_to_add = 8 [(.validate.rules) = { ... } -
getHeadersToAddBuilderList
Additional request headers to upstream proxy. Neither ``:-prefixed`` pseudo-headers nor the Host: header can be overridden. Values of the added headers evaluates command operators if they are set in the value template. Example: dynamically set a header with the local port .. code-block:: yaml headers_to_add: - header: key: original_dst_port value: "%DOWNSTREAM_LOCAL_PORT%"repeated .envoy.config.core.v3.HeaderValueOption headers_to_add = 8 [(.validate.rules) = { ... } -
hasBufferOptions
public boolean hasBufferOptions()If configured, the filter will buffer datagrams in case that it is waiting for the upstream to be ready, whether if it is during the connection process or due to upstream buffer watermarks. If this field is not configured, there will be no buffering and downstream datagrams that arrive while the upstream is not ready will be dropped. In case this field is set but the options are not configured, the default values will be applied as described in the ``BufferOptions``.
.envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig.UdpTunnelingConfig.BufferOptions buffer_options = 9;- Specified by:
hasBufferOptionsin interfaceUdpProxyConfig.UdpTunnelingConfigOrBuilder- Returns:
- Whether the bufferOptions field is set.
-
getBufferOptions
If configured, the filter will buffer datagrams in case that it is waiting for the upstream to be ready, whether if it is during the connection process or due to upstream buffer watermarks. If this field is not configured, there will be no buffering and downstream datagrams that arrive while the upstream is not ready will be dropped. In case this field is set but the options are not configured, the default values will be applied as described in the ``BufferOptions``.
.envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig.UdpTunnelingConfig.BufferOptions buffer_options = 9;- Specified by:
getBufferOptionsin interfaceUdpProxyConfig.UdpTunnelingConfigOrBuilder- Returns:
- The bufferOptions.
-
setBufferOptions
public UdpProxyConfig.UdpTunnelingConfig.Builder setBufferOptions(UdpProxyConfig.UdpTunnelingConfig.BufferOptions value) If configured, the filter will buffer datagrams in case that it is waiting for the upstream to be ready, whether if it is during the connection process or due to upstream buffer watermarks. If this field is not configured, there will be no buffering and downstream datagrams that arrive while the upstream is not ready will be dropped. In case this field is set but the options are not configured, the default values will be applied as described in the ``BufferOptions``.
.envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig.UdpTunnelingConfig.BufferOptions buffer_options = 9; -
setBufferOptions
public UdpProxyConfig.UdpTunnelingConfig.Builder setBufferOptions(UdpProxyConfig.UdpTunnelingConfig.BufferOptions.Builder builderForValue) If configured, the filter will buffer datagrams in case that it is waiting for the upstream to be ready, whether if it is during the connection process or due to upstream buffer watermarks. If this field is not configured, there will be no buffering and downstream datagrams that arrive while the upstream is not ready will be dropped. In case this field is set but the options are not configured, the default values will be applied as described in the ``BufferOptions``.
.envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig.UdpTunnelingConfig.BufferOptions buffer_options = 9; -
mergeBufferOptions
public UdpProxyConfig.UdpTunnelingConfig.Builder mergeBufferOptions(UdpProxyConfig.UdpTunnelingConfig.BufferOptions value) If configured, the filter will buffer datagrams in case that it is waiting for the upstream to be ready, whether if it is during the connection process or due to upstream buffer watermarks. If this field is not configured, there will be no buffering and downstream datagrams that arrive while the upstream is not ready will be dropped. In case this field is set but the options are not configured, the default values will be applied as described in the ``BufferOptions``.
.envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig.UdpTunnelingConfig.BufferOptions buffer_options = 9; -
clearBufferOptions
If configured, the filter will buffer datagrams in case that it is waiting for the upstream to be ready, whether if it is during the connection process or due to upstream buffer watermarks. If this field is not configured, there will be no buffering and downstream datagrams that arrive while the upstream is not ready will be dropped. In case this field is set but the options are not configured, the default values will be applied as described in the ``BufferOptions``.
.envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig.UdpTunnelingConfig.BufferOptions buffer_options = 9; -
getBufferOptionsBuilder
If configured, the filter will buffer datagrams in case that it is waiting for the upstream to be ready, whether if it is during the connection process or due to upstream buffer watermarks. If this field is not configured, there will be no buffering and downstream datagrams that arrive while the upstream is not ready will be dropped. In case this field is set but the options are not configured, the default values will be applied as described in the ``BufferOptions``.
.envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig.UdpTunnelingConfig.BufferOptions buffer_options = 9; -
getBufferOptionsOrBuilder
If configured, the filter will buffer datagrams in case that it is waiting for the upstream to be ready, whether if it is during the connection process or due to upstream buffer watermarks. If this field is not configured, there will be no buffering and downstream datagrams that arrive while the upstream is not ready will be dropped. In case this field is set but the options are not configured, the default values will be applied as described in the ``BufferOptions``.
.envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig.UdpTunnelingConfig.BufferOptions buffer_options = 9;- Specified by:
getBufferOptionsOrBuilderin interfaceUdpProxyConfig.UdpTunnelingConfigOrBuilder
-
getPropagateResponseHeaders
public boolean getPropagateResponseHeaders()Save the response headers to the downstream info filter state for consumption by the session filters. The filter state key is ``envoy.udp_proxy.propagate_response_headers``.
bool propagate_response_headers = 10;- Specified by:
getPropagateResponseHeadersin interfaceUdpProxyConfig.UdpTunnelingConfigOrBuilder- Returns:
- The propagateResponseHeaders.
-
setPropagateResponseHeaders
Save the response headers to the downstream info filter state for consumption by the session filters. The filter state key is ``envoy.udp_proxy.propagate_response_headers``.
bool propagate_response_headers = 10;- Parameters:
value- The propagateResponseHeaders to set.- Returns:
- This builder for chaining.
-
clearPropagateResponseHeaders
Save the response headers to the downstream info filter state for consumption by the session filters. The filter state key is ``envoy.udp_proxy.propagate_response_headers``.
bool propagate_response_headers = 10;- Returns:
- This builder for chaining.
-
getPropagateResponseTrailers
public boolean getPropagateResponseTrailers()Save the response trailers to the downstream info filter state for consumption by the session filters. The filter state key is ``envoy.udp_proxy.propagate_response_trailers``.
bool propagate_response_trailers = 11;- Specified by:
getPropagateResponseTrailersin interfaceUdpProxyConfig.UdpTunnelingConfigOrBuilder- Returns:
- The propagateResponseTrailers.
-
setPropagateResponseTrailers
Save the response trailers to the downstream info filter state for consumption by the session filters. The filter state key is ``envoy.udp_proxy.propagate_response_trailers``.
bool propagate_response_trailers = 11;- Parameters:
value- The propagateResponseTrailers to set.- Returns:
- This builder for chaining.
-
clearPropagateResponseTrailers
Save the response trailers to the downstream info filter state for consumption by the session filters. The filter state key is ``envoy.udp_proxy.propagate_response_trailers``.
bool propagate_response_trailers = 11;- Returns:
- This builder for chaining.
-
setUnknownFields
public final UdpProxyConfig.UdpTunnelingConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<UdpProxyConfig.UdpTunnelingConfig.Builder>
-
mergeUnknownFields
public final UdpProxyConfig.UdpTunnelingConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<UdpProxyConfig.UdpTunnelingConfig.Builder>
-