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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<UdpProxyConfig.UdpTunnelingConfig.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<UdpProxyConfig.UdpTunnelingConfig.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<UdpProxyConfig.UdpTunnelingConfig.Builder>
    • getDefaultInstanceForType

      public UdpProxyConfig.UdpTunnelingConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public UdpProxyConfig.UdpTunnelingConfig buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<UdpProxyConfig.UdpTunnelingConfig.Builder>
    • setField

      public UdpProxyConfig.UdpTunnelingConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<UdpProxyConfig.UdpTunnelingConfig.Builder>
    • clearField

      public UdpProxyConfig.UdpTunnelingConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<UdpProxyConfig.UdpTunnelingConfig.Builder>
    • clearOneof

      public UdpProxyConfig.UdpTunnelingConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.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:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<UdpProxyConfig.UdpTunnelingConfig.Builder>
    • addRepeatedField

      public UdpProxyConfig.UdpTunnelingConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<UdpProxyConfig.UdpTunnelingConfig.Builder>
    • mergeFrom

      public UdpProxyConfig.UdpTunnelingConfig.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<UdpProxyConfig.UdpTunnelingConfig.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<UdpProxyConfig.UdpTunnelingConfig.Builder>
      Throws:
      IOException
    • getProxyHost

      public String 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:
      getProxyHost in interface UdpProxyConfig.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:
      getProxyHostBytes in interface UdpProxyConfig.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:
      hasProxyPort in interface UdpProxyConfig.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:
      getProxyPort in interface UdpProxyConfig.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:
      getProxyPortOrBuilder in interface UdpProxyConfig.UdpTunnelingConfigOrBuilder
    • getTargetHost

      public String 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:
      getTargetHost in interface UdpProxyConfig.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:
      getTargetHostBytes in interface UdpProxyConfig.UdpTunnelingConfigOrBuilder
      Returns:
      The bytes for targetHost.
    • setTargetHost

      public UdpProxyConfig.UdpTunnelingConfig.Builder setTargetHost(String 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 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:
      getDefaultTargetPort in interface UdpProxyConfig.UdpTunnelingConfigOrBuilder
      Returns:
      The defaultTargetPort.
    • setDefaultTargetPort

      public UdpProxyConfig.UdpTunnelingConfig.Builder setDefaultTargetPort(int value)
       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

      public UdpProxyConfig.UdpTunnelingConfig.Builder 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:
      getUsePost in interface UdpProxyConfig.UdpTunnelingConfigOrBuilder
      Returns:
      The usePost.
    • setUsePost

      public UdpProxyConfig.UdpTunnelingConfig.Builder 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. 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

      public String 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:
      getPostPath in interface UdpProxyConfig.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:
      getPostPathBytes in interface UdpProxyConfig.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:
      hasRetryOptions in interface UdpProxyConfig.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:
      getRetryOptions in interface UdpProxyConfig.UdpTunnelingConfigOrBuilder
      Returns:
      The retryOptions.
    • setRetryOptions

       Optional retry options, in case connecting to the upstream failed.
       
      .envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig.UdpTunnelingConfig.RetryOptions retry_options = 7;
    • setRetryOptions

       Optional retry options, in case connecting to the upstream failed.
       
      .envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig.UdpTunnelingConfig.RetryOptions retry_options = 7;
    • mergeRetryOptions

       Optional retry options, in case connecting to the upstream failed.
       
      .envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig.UdpTunnelingConfig.RetryOptions retry_options = 7;
    • clearRetryOptions

      public UdpProxyConfig.UdpTunnelingConfig.Builder 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:
      getRetryOptionsOrBuilder in interface UdpProxyConfig.UdpTunnelingConfigOrBuilder
    • getHeadersToAddList

      public List<HeaderValueOption> 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:
      getHeadersToAddList in interface UdpProxyConfig.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:
      getHeadersToAddCount in interface UdpProxyConfig.UdpTunnelingConfigOrBuilder
    • getHeadersToAdd

      public HeaderValueOption getHeadersToAdd(int index)
       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:
      getHeadersToAdd in interface UdpProxyConfig.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

      public UdpProxyConfig.UdpTunnelingConfig.Builder 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

      public UdpProxyConfig.UdpTunnelingConfig.Builder removeHeadersToAdd(int index)
       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

      public HeaderValueOption.Builder getHeadersToAddBuilder(int index)
       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

      public HeaderValueOptionOrBuilder getHeadersToAddOrBuilder(int index)
       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:
      getHeadersToAddOrBuilder in interface UdpProxyConfig.UdpTunnelingConfigOrBuilder
    • getHeadersToAddOrBuilderList

      public List<? extends HeaderValueOptionOrBuilder> 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:
      getHeadersToAddOrBuilderList in interface UdpProxyConfig.UdpTunnelingConfigOrBuilder
    • addHeadersToAddBuilder

      public HeaderValueOption.Builder 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

      public HeaderValueOption.Builder addHeadersToAddBuilder(int index)
       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

      public List<HeaderValueOption.Builder> 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:
      hasBufferOptions in interface UdpProxyConfig.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:
      getBufferOptions in interface UdpProxyConfig.UdpTunnelingConfigOrBuilder
      Returns:
      The bufferOptions.
    • setBufferOptions

       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

       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

       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

      public UdpProxyConfig.UdpTunnelingConfig.Builder 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:
      getBufferOptionsOrBuilder in interface UdpProxyConfig.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:
      getPropagateResponseHeaders in interface UdpProxyConfig.UdpTunnelingConfigOrBuilder
      Returns:
      The propagateResponseHeaders.
    • setPropagateResponseHeaders

      public UdpProxyConfig.UdpTunnelingConfig.Builder setPropagateResponseHeaders(boolean value)
       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

      public UdpProxyConfig.UdpTunnelingConfig.Builder 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:
      getPropagateResponseTrailers in interface UdpProxyConfig.UdpTunnelingConfigOrBuilder
      Returns:
      The propagateResponseTrailers.
    • setPropagateResponseTrailers

      public UdpProxyConfig.UdpTunnelingConfig.Builder setPropagateResponseTrailers(boolean value)
       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

      public UdpProxyConfig.UdpTunnelingConfig.Builder 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:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<UdpProxyConfig.UdpTunnelingConfig.Builder>
    • mergeUnknownFields

      public final UdpProxyConfig.UdpTunnelingConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<UdpProxyConfig.UdpTunnelingConfig.Builder>