Class UdpProxyConfig.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, UdpProxyConfigOrBuilder, Cloneable
    Enclosing class:
    UdpProxyConfig

    public static final class UdpProxyConfig.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<UdpProxyConfig.Builder>
    implements UdpProxyConfigOrBuilder
     Configuration for the UDP proxy filter.
     [#next-free-field: 10]
     
    Protobuf type envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig
    • Method Detail

      • 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.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<UdpProxyConfig.Builder>
      • mergeFrom

        public UdpProxyConfig.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.Builder>
        Throws:
        IOException
      • getStatPrefix

        public String getStatPrefix()
         The stat prefix used when emitting UDP proxy filter stats.
         
        string stat_prefix = 1 [(.validate.rules) = { ... }
        Specified by:
        getStatPrefix in interface UdpProxyConfigOrBuilder
        Returns:
        The statPrefix.
      • getStatPrefixBytes

        public com.google.protobuf.ByteString getStatPrefixBytes()
         The stat prefix used when emitting UDP proxy filter stats.
         
        string stat_prefix = 1 [(.validate.rules) = { ... }
        Specified by:
        getStatPrefixBytes in interface UdpProxyConfigOrBuilder
        Returns:
        The bytes for statPrefix.
      • setStatPrefix

        public UdpProxyConfig.Builder setStatPrefix​(String value)
         The stat prefix used when emitting UDP proxy filter stats.
         
        string stat_prefix = 1 [(.validate.rules) = { ... }
        Parameters:
        value - The statPrefix to set.
        Returns:
        This builder for chaining.
      • clearStatPrefix

        public UdpProxyConfig.Builder clearStatPrefix()
         The stat prefix used when emitting UDP proxy filter stats.
         
        string stat_prefix = 1 [(.validate.rules) = { ... }
        Returns:
        This builder for chaining.
      • setStatPrefixBytes

        public UdpProxyConfig.Builder setStatPrefixBytes​(com.google.protobuf.ByteString value)
         The stat prefix used when emitting UDP proxy filter stats.
         
        string stat_prefix = 1 [(.validate.rules) = { ... }
        Parameters:
        value - The bytes for statPrefix to set.
        Returns:
        This builder for chaining.
      • hasCluster

        @Deprecated
        public boolean hasCluster()
        Deprecated.
        envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig.cluster is deprecated. See envoy/extensions/filters/udp/udp_proxy/v3/udp_proxy.proto;l=60
         The upstream cluster to connect to.
         This field is deprecated in favor of
         :ref:`matcher <envoy_v3_api_field_extensions.filters.udp.udp_proxy.v3.UdpProxyConfig.matcher>`.
         
        string cluster = 2 [deprecated = true, (.validate.rules) = { ... }
        Specified by:
        hasCluster in interface UdpProxyConfigOrBuilder
        Returns:
        Whether the cluster field is set.
      • getCluster

        @Deprecated
        public String getCluster()
        Deprecated.
        envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig.cluster is deprecated. See envoy/extensions/filters/udp/udp_proxy/v3/udp_proxy.proto;l=60
         The upstream cluster to connect to.
         This field is deprecated in favor of
         :ref:`matcher <envoy_v3_api_field_extensions.filters.udp.udp_proxy.v3.UdpProxyConfig.matcher>`.
         
        string cluster = 2 [deprecated = true, (.validate.rules) = { ... }
        Specified by:
        getCluster in interface UdpProxyConfigOrBuilder
        Returns:
        The cluster.
      • getClusterBytes

        @Deprecated
        public com.google.protobuf.ByteString getClusterBytes()
        Deprecated.
        envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig.cluster is deprecated. See envoy/extensions/filters/udp/udp_proxy/v3/udp_proxy.proto;l=60
         The upstream cluster to connect to.
         This field is deprecated in favor of
         :ref:`matcher <envoy_v3_api_field_extensions.filters.udp.udp_proxy.v3.UdpProxyConfig.matcher>`.
         
        string cluster = 2 [deprecated = true, (.validate.rules) = { ... }
        Specified by:
        getClusterBytes in interface UdpProxyConfigOrBuilder
        Returns:
        The bytes for cluster.
      • setCluster

        @Deprecated
        public UdpProxyConfig.Builder setCluster​(String value)
        Deprecated.
        envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig.cluster is deprecated. See envoy/extensions/filters/udp/udp_proxy/v3/udp_proxy.proto;l=60
         The upstream cluster to connect to.
         This field is deprecated in favor of
         :ref:`matcher <envoy_v3_api_field_extensions.filters.udp.udp_proxy.v3.UdpProxyConfig.matcher>`.
         
        string cluster = 2 [deprecated = true, (.validate.rules) = { ... }
        Parameters:
        value - The cluster to set.
        Returns:
        This builder for chaining.
      • clearCluster

        @Deprecated
        public UdpProxyConfig.Builder clearCluster()
        Deprecated.
        envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig.cluster is deprecated. See envoy/extensions/filters/udp/udp_proxy/v3/udp_proxy.proto;l=60
         The upstream cluster to connect to.
         This field is deprecated in favor of
         :ref:`matcher <envoy_v3_api_field_extensions.filters.udp.udp_proxy.v3.UdpProxyConfig.matcher>`.
         
        string cluster = 2 [deprecated = true, (.validate.rules) = { ... }
        Returns:
        This builder for chaining.
      • setClusterBytes

        @Deprecated
        public UdpProxyConfig.Builder setClusterBytes​(com.google.protobuf.ByteString value)
        Deprecated.
        envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig.cluster is deprecated. See envoy/extensions/filters/udp/udp_proxy/v3/udp_proxy.proto;l=60
         The upstream cluster to connect to.
         This field is deprecated in favor of
         :ref:`matcher <envoy_v3_api_field_extensions.filters.udp.udp_proxy.v3.UdpProxyConfig.matcher>`.
         
        string cluster = 2 [deprecated = true, (.validate.rules) = { ... }
        Parameters:
        value - The bytes for cluster to set.
        Returns:
        This builder for chaining.
      • hasMatcher

        public boolean hasMatcher()
         The match tree to use when resolving route actions for incoming requests.
         See :ref:`Routing <config_udp_listener_filters_udp_proxy_routing>` for more information.
         
        .xds.type.matcher.v3.Matcher matcher = 9 [(.xds.annotations.v3.field_status) = { ... }
        Specified by:
        hasMatcher in interface UdpProxyConfigOrBuilder
        Returns:
        Whether the matcher field is set.
      • getMatcher

        public Matcher getMatcher()
         The match tree to use when resolving route actions for incoming requests.
         See :ref:`Routing <config_udp_listener_filters_udp_proxy_routing>` for more information.
         
        .xds.type.matcher.v3.Matcher matcher = 9 [(.xds.annotations.v3.field_status) = { ... }
        Specified by:
        getMatcher in interface UdpProxyConfigOrBuilder
        Returns:
        The matcher.
      • setMatcher

        public UdpProxyConfig.Builder setMatcher​(Matcher value)
         The match tree to use when resolving route actions for incoming requests.
         See :ref:`Routing <config_udp_listener_filters_udp_proxy_routing>` for more information.
         
        .xds.type.matcher.v3.Matcher matcher = 9 [(.xds.annotations.v3.field_status) = { ... }
      • setMatcher

        public UdpProxyConfig.Builder setMatcher​(Matcher.Builder builderForValue)
         The match tree to use when resolving route actions for incoming requests.
         See :ref:`Routing <config_udp_listener_filters_udp_proxy_routing>` for more information.
         
        .xds.type.matcher.v3.Matcher matcher = 9 [(.xds.annotations.v3.field_status) = { ... }
      • mergeMatcher

        public UdpProxyConfig.Builder mergeMatcher​(Matcher value)
         The match tree to use when resolving route actions for incoming requests.
         See :ref:`Routing <config_udp_listener_filters_udp_proxy_routing>` for more information.
         
        .xds.type.matcher.v3.Matcher matcher = 9 [(.xds.annotations.v3.field_status) = { ... }
      • clearMatcher

        public UdpProxyConfig.Builder clearMatcher()
         The match tree to use when resolving route actions for incoming requests.
         See :ref:`Routing <config_udp_listener_filters_udp_proxy_routing>` for more information.
         
        .xds.type.matcher.v3.Matcher matcher = 9 [(.xds.annotations.v3.field_status) = { ... }
      • getMatcherBuilder

        public Matcher.Builder getMatcherBuilder()
         The match tree to use when resolving route actions for incoming requests.
         See :ref:`Routing <config_udp_listener_filters_udp_proxy_routing>` for more information.
         
        .xds.type.matcher.v3.Matcher matcher = 9 [(.xds.annotations.v3.field_status) = { ... }
      • getMatcherOrBuilder

        public MatcherOrBuilder getMatcherOrBuilder()
         The match tree to use when resolving route actions for incoming requests.
         See :ref:`Routing <config_udp_listener_filters_udp_proxy_routing>` for more information.
         
        .xds.type.matcher.v3.Matcher matcher = 9 [(.xds.annotations.v3.field_status) = { ... }
        Specified by:
        getMatcherOrBuilder in interface UdpProxyConfigOrBuilder
      • hasIdleTimeout

        public boolean hasIdleTimeout()
         The idle timeout for sessions. Idle is defined as no datagrams between received or sent by
         the session. The default if not specified is 1 minute.
         
        .google.protobuf.Duration idle_timeout = 3;
        Specified by:
        hasIdleTimeout in interface UdpProxyConfigOrBuilder
        Returns:
        Whether the idleTimeout field is set.
      • getIdleTimeout

        public com.google.protobuf.Duration getIdleTimeout()
         The idle timeout for sessions. Idle is defined as no datagrams between received or sent by
         the session. The default if not specified is 1 minute.
         
        .google.protobuf.Duration idle_timeout = 3;
        Specified by:
        getIdleTimeout in interface UdpProxyConfigOrBuilder
        Returns:
        The idleTimeout.
      • setIdleTimeout

        public UdpProxyConfig.Builder setIdleTimeout​(com.google.protobuf.Duration value)
         The idle timeout for sessions. Idle is defined as no datagrams between received or sent by
         the session. The default if not specified is 1 minute.
         
        .google.protobuf.Duration idle_timeout = 3;
      • setIdleTimeout

        public UdpProxyConfig.Builder setIdleTimeout​(com.google.protobuf.Duration.Builder builderForValue)
         The idle timeout for sessions. Idle is defined as no datagrams between received or sent by
         the session. The default if not specified is 1 minute.
         
        .google.protobuf.Duration idle_timeout = 3;
      • mergeIdleTimeout

        public UdpProxyConfig.Builder mergeIdleTimeout​(com.google.protobuf.Duration value)
         The idle timeout for sessions. Idle is defined as no datagrams between received or sent by
         the session. The default if not specified is 1 minute.
         
        .google.protobuf.Duration idle_timeout = 3;
      • clearIdleTimeout

        public UdpProxyConfig.Builder clearIdleTimeout()
         The idle timeout for sessions. Idle is defined as no datagrams between received or sent by
         the session. The default if not specified is 1 minute.
         
        .google.protobuf.Duration idle_timeout = 3;
      • getIdleTimeoutBuilder

        public com.google.protobuf.Duration.Builder getIdleTimeoutBuilder()
         The idle timeout for sessions. Idle is defined as no datagrams between received or sent by
         the session. The default if not specified is 1 minute.
         
        .google.protobuf.Duration idle_timeout = 3;
      • getIdleTimeoutOrBuilder

        public com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder()
         The idle timeout for sessions. Idle is defined as no datagrams between received or sent by
         the session. The default if not specified is 1 minute.
         
        .google.protobuf.Duration idle_timeout = 3;
        Specified by:
        getIdleTimeoutOrBuilder in interface UdpProxyConfigOrBuilder
      • getUseOriginalSrcIp

        public boolean getUseOriginalSrcIp()
         Use the remote downstream IP address as the sender IP address when sending packets to upstream hosts.
         This option requires Envoy to be run with the ``CAP_NET_ADMIN`` capability on Linux.
         And the IPv6 stack must be enabled on Linux kernel.
         This option does not preserve the remote downstream port.
         If this option is enabled, the IP address of sent datagrams will be changed to the remote downstream IP address.
         This means that Envoy will not receive packets that are sent by upstream hosts because the upstream hosts
         will send the packets with the remote downstream IP address as the destination. All packets will be routed
         to the remote downstream directly if there are route rules on the upstream host side.
         There are two options to return the packets back to the remote downstream.
         The first one is to use DSR (Direct Server Return).
         The other one is to configure routing rules on the upstream hosts to forward
         all packets back to Envoy and configure iptables rules on the host running Envoy to
         forward all packets from upstream hosts to the Envoy process so that Envoy can forward the packets to the downstream.
         If the platform does not support this option, Envoy will raise a configuration error.
         
        bool use_original_src_ip = 4;
        Specified by:
        getUseOriginalSrcIp in interface UdpProxyConfigOrBuilder
        Returns:
        The useOriginalSrcIp.
      • setUseOriginalSrcIp

        public UdpProxyConfig.Builder setUseOriginalSrcIp​(boolean value)
         Use the remote downstream IP address as the sender IP address when sending packets to upstream hosts.
         This option requires Envoy to be run with the ``CAP_NET_ADMIN`` capability on Linux.
         And the IPv6 stack must be enabled on Linux kernel.
         This option does not preserve the remote downstream port.
         If this option is enabled, the IP address of sent datagrams will be changed to the remote downstream IP address.
         This means that Envoy will not receive packets that are sent by upstream hosts because the upstream hosts
         will send the packets with the remote downstream IP address as the destination. All packets will be routed
         to the remote downstream directly if there are route rules on the upstream host side.
         There are two options to return the packets back to the remote downstream.
         The first one is to use DSR (Direct Server Return).
         The other one is to configure routing rules on the upstream hosts to forward
         all packets back to Envoy and configure iptables rules on the host running Envoy to
         forward all packets from upstream hosts to the Envoy process so that Envoy can forward the packets to the downstream.
         If the platform does not support this option, Envoy will raise a configuration error.
         
        bool use_original_src_ip = 4;
        Parameters:
        value - The useOriginalSrcIp to set.
        Returns:
        This builder for chaining.
      • clearUseOriginalSrcIp

        public UdpProxyConfig.Builder clearUseOriginalSrcIp()
         Use the remote downstream IP address as the sender IP address when sending packets to upstream hosts.
         This option requires Envoy to be run with the ``CAP_NET_ADMIN`` capability on Linux.
         And the IPv6 stack must be enabled on Linux kernel.
         This option does not preserve the remote downstream port.
         If this option is enabled, the IP address of sent datagrams will be changed to the remote downstream IP address.
         This means that Envoy will not receive packets that are sent by upstream hosts because the upstream hosts
         will send the packets with the remote downstream IP address as the destination. All packets will be routed
         to the remote downstream directly if there are route rules on the upstream host side.
         There are two options to return the packets back to the remote downstream.
         The first one is to use DSR (Direct Server Return).
         The other one is to configure routing rules on the upstream hosts to forward
         all packets back to Envoy and configure iptables rules on the host running Envoy to
         forward all packets from upstream hosts to the Envoy process so that Envoy can forward the packets to the downstream.
         If the platform does not support this option, Envoy will raise a configuration error.
         
        bool use_original_src_ip = 4;
        Returns:
        This builder for chaining.
      • getHashPoliciesList

        public List<UdpProxyConfig.HashPolicy> getHashPoliciesList()
         Optional configuration for UDP proxy hash policies. If hash_policies is not set, the hash-based
         load balancing algorithms will select a host randomly. Currently the number of hash policies is
         limited to 1.
         
        repeated .envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig.HashPolicy hash_policies = 5 [(.validate.rules) = { ... }
        Specified by:
        getHashPoliciesList in interface UdpProxyConfigOrBuilder
      • getHashPoliciesCount

        public int getHashPoliciesCount()
         Optional configuration for UDP proxy hash policies. If hash_policies is not set, the hash-based
         load balancing algorithms will select a host randomly. Currently the number of hash policies is
         limited to 1.
         
        repeated .envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig.HashPolicy hash_policies = 5 [(.validate.rules) = { ... }
        Specified by:
        getHashPoliciesCount in interface UdpProxyConfigOrBuilder
      • getHashPolicies

        public UdpProxyConfig.HashPolicy getHashPolicies​(int index)
         Optional configuration for UDP proxy hash policies. If hash_policies is not set, the hash-based
         load balancing algorithms will select a host randomly. Currently the number of hash policies is
         limited to 1.
         
        repeated .envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig.HashPolicy hash_policies = 5 [(.validate.rules) = { ... }
        Specified by:
        getHashPolicies in interface UdpProxyConfigOrBuilder
      • setHashPolicies

        public UdpProxyConfig.Builder setHashPolicies​(int index,
                                                      UdpProxyConfig.HashPolicy value)
         Optional configuration for UDP proxy hash policies. If hash_policies is not set, the hash-based
         load balancing algorithms will select a host randomly. Currently the number of hash policies is
         limited to 1.
         
        repeated .envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig.HashPolicy hash_policies = 5 [(.validate.rules) = { ... }
      • setHashPolicies

        public UdpProxyConfig.Builder setHashPolicies​(int index,
                                                      UdpProxyConfig.HashPolicy.Builder builderForValue)
         Optional configuration for UDP proxy hash policies. If hash_policies is not set, the hash-based
         load balancing algorithms will select a host randomly. Currently the number of hash policies is
         limited to 1.
         
        repeated .envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig.HashPolicy hash_policies = 5 [(.validate.rules) = { ... }
      • addHashPolicies

        public UdpProxyConfig.Builder addHashPolicies​(UdpProxyConfig.HashPolicy value)
         Optional configuration for UDP proxy hash policies. If hash_policies is not set, the hash-based
         load balancing algorithms will select a host randomly. Currently the number of hash policies is
         limited to 1.
         
        repeated .envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig.HashPolicy hash_policies = 5 [(.validate.rules) = { ... }
      • addHashPolicies

        public UdpProxyConfig.Builder addHashPolicies​(int index,
                                                      UdpProxyConfig.HashPolicy value)
         Optional configuration for UDP proxy hash policies. If hash_policies is not set, the hash-based
         load balancing algorithms will select a host randomly. Currently the number of hash policies is
         limited to 1.
         
        repeated .envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig.HashPolicy hash_policies = 5 [(.validate.rules) = { ... }
      • addHashPolicies

        public UdpProxyConfig.Builder addHashPolicies​(UdpProxyConfig.HashPolicy.Builder builderForValue)
         Optional configuration for UDP proxy hash policies. If hash_policies is not set, the hash-based
         load balancing algorithms will select a host randomly. Currently the number of hash policies is
         limited to 1.
         
        repeated .envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig.HashPolicy hash_policies = 5 [(.validate.rules) = { ... }
      • addHashPolicies

        public UdpProxyConfig.Builder addHashPolicies​(int index,
                                                      UdpProxyConfig.HashPolicy.Builder builderForValue)
         Optional configuration for UDP proxy hash policies. If hash_policies is not set, the hash-based
         load balancing algorithms will select a host randomly. Currently the number of hash policies is
         limited to 1.
         
        repeated .envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig.HashPolicy hash_policies = 5 [(.validate.rules) = { ... }
      • addAllHashPolicies

        public UdpProxyConfig.Builder addAllHashPolicies​(Iterable<? extends UdpProxyConfig.HashPolicy> values)
         Optional configuration for UDP proxy hash policies. If hash_policies is not set, the hash-based
         load balancing algorithms will select a host randomly. Currently the number of hash policies is
         limited to 1.
         
        repeated .envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig.HashPolicy hash_policies = 5 [(.validate.rules) = { ... }
      • clearHashPolicies

        public UdpProxyConfig.Builder clearHashPolicies()
         Optional configuration for UDP proxy hash policies. If hash_policies is not set, the hash-based
         load balancing algorithms will select a host randomly. Currently the number of hash policies is
         limited to 1.
         
        repeated .envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig.HashPolicy hash_policies = 5 [(.validate.rules) = { ... }
      • removeHashPolicies

        public UdpProxyConfig.Builder removeHashPolicies​(int index)
         Optional configuration for UDP proxy hash policies. If hash_policies is not set, the hash-based
         load balancing algorithms will select a host randomly. Currently the number of hash policies is
         limited to 1.
         
        repeated .envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig.HashPolicy hash_policies = 5 [(.validate.rules) = { ... }
      • getHashPoliciesBuilder

        public UdpProxyConfig.HashPolicy.Builder getHashPoliciesBuilder​(int index)
         Optional configuration for UDP proxy hash policies. If hash_policies is not set, the hash-based
         load balancing algorithms will select a host randomly. Currently the number of hash policies is
         limited to 1.
         
        repeated .envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig.HashPolicy hash_policies = 5 [(.validate.rules) = { ... }
      • getHashPoliciesOrBuilder

        public UdpProxyConfig.HashPolicyOrBuilder getHashPoliciesOrBuilder​(int index)
         Optional configuration for UDP proxy hash policies. If hash_policies is not set, the hash-based
         load balancing algorithms will select a host randomly. Currently the number of hash policies is
         limited to 1.
         
        repeated .envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig.HashPolicy hash_policies = 5 [(.validate.rules) = { ... }
        Specified by:
        getHashPoliciesOrBuilder in interface UdpProxyConfigOrBuilder
      • getHashPoliciesOrBuilderList

        public List<? extends UdpProxyConfig.HashPolicyOrBuilder> getHashPoliciesOrBuilderList()
         Optional configuration for UDP proxy hash policies. If hash_policies is not set, the hash-based
         load balancing algorithms will select a host randomly. Currently the number of hash policies is
         limited to 1.
         
        repeated .envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig.HashPolicy hash_policies = 5 [(.validate.rules) = { ... }
        Specified by:
        getHashPoliciesOrBuilderList in interface UdpProxyConfigOrBuilder
      • addHashPoliciesBuilder

        public UdpProxyConfig.HashPolicy.Builder addHashPoliciesBuilder()
         Optional configuration for UDP proxy hash policies. If hash_policies is not set, the hash-based
         load balancing algorithms will select a host randomly. Currently the number of hash policies is
         limited to 1.
         
        repeated .envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig.HashPolicy hash_policies = 5 [(.validate.rules) = { ... }
      • addHashPoliciesBuilder

        public UdpProxyConfig.HashPolicy.Builder addHashPoliciesBuilder​(int index)
         Optional configuration for UDP proxy hash policies. If hash_policies is not set, the hash-based
         load balancing algorithms will select a host randomly. Currently the number of hash policies is
         limited to 1.
         
        repeated .envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig.HashPolicy hash_policies = 5 [(.validate.rules) = { ... }
      • getHashPoliciesBuilderList

        public List<UdpProxyConfig.HashPolicy.Builder> getHashPoliciesBuilderList()
         Optional configuration for UDP proxy hash policies. If hash_policies is not set, the hash-based
         load balancing algorithms will select a host randomly. Currently the number of hash policies is
         limited to 1.
         
        repeated .envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig.HashPolicy hash_policies = 5 [(.validate.rules) = { ... }
      • hasUpstreamSocketConfig

        public boolean hasUpstreamSocketConfig()
         UDP socket configuration for upstream sockets. The default for
         :ref:`prefer_gro <envoy_v3_api_field_config.core.v3.UdpSocketConfig.prefer_gro>` is true for upstream
         sockets as the assumption is datagrams will be received from a single source.
         
        .envoy.config.core.v3.UdpSocketConfig upstream_socket_config = 6;
        Specified by:
        hasUpstreamSocketConfig in interface UdpProxyConfigOrBuilder
        Returns:
        Whether the upstreamSocketConfig field is set.
      • getUpstreamSocketConfig

        public UdpSocketConfig getUpstreamSocketConfig()
         UDP socket configuration for upstream sockets. The default for
         :ref:`prefer_gro <envoy_v3_api_field_config.core.v3.UdpSocketConfig.prefer_gro>` is true for upstream
         sockets as the assumption is datagrams will be received from a single source.
         
        .envoy.config.core.v3.UdpSocketConfig upstream_socket_config = 6;
        Specified by:
        getUpstreamSocketConfig in interface UdpProxyConfigOrBuilder
        Returns:
        The upstreamSocketConfig.
      • setUpstreamSocketConfig

        public UdpProxyConfig.Builder setUpstreamSocketConfig​(UdpSocketConfig value)
         UDP socket configuration for upstream sockets. The default for
         :ref:`prefer_gro <envoy_v3_api_field_config.core.v3.UdpSocketConfig.prefer_gro>` is true for upstream
         sockets as the assumption is datagrams will be received from a single source.
         
        .envoy.config.core.v3.UdpSocketConfig upstream_socket_config = 6;
      • setUpstreamSocketConfig

        public UdpProxyConfig.Builder setUpstreamSocketConfig​(UdpSocketConfig.Builder builderForValue)
         UDP socket configuration for upstream sockets. The default for
         :ref:`prefer_gro <envoy_v3_api_field_config.core.v3.UdpSocketConfig.prefer_gro>` is true for upstream
         sockets as the assumption is datagrams will be received from a single source.
         
        .envoy.config.core.v3.UdpSocketConfig upstream_socket_config = 6;
      • mergeUpstreamSocketConfig

        public UdpProxyConfig.Builder mergeUpstreamSocketConfig​(UdpSocketConfig value)
         UDP socket configuration for upstream sockets. The default for
         :ref:`prefer_gro <envoy_v3_api_field_config.core.v3.UdpSocketConfig.prefer_gro>` is true for upstream
         sockets as the assumption is datagrams will be received from a single source.
         
        .envoy.config.core.v3.UdpSocketConfig upstream_socket_config = 6;
      • clearUpstreamSocketConfig

        public UdpProxyConfig.Builder clearUpstreamSocketConfig()
         UDP socket configuration for upstream sockets. The default for
         :ref:`prefer_gro <envoy_v3_api_field_config.core.v3.UdpSocketConfig.prefer_gro>` is true for upstream
         sockets as the assumption is datagrams will be received from a single source.
         
        .envoy.config.core.v3.UdpSocketConfig upstream_socket_config = 6;
      • getUpstreamSocketConfigBuilder

        public UdpSocketConfig.Builder getUpstreamSocketConfigBuilder()
         UDP socket configuration for upstream sockets. The default for
         :ref:`prefer_gro <envoy_v3_api_field_config.core.v3.UdpSocketConfig.prefer_gro>` is true for upstream
         sockets as the assumption is datagrams will be received from a single source.
         
        .envoy.config.core.v3.UdpSocketConfig upstream_socket_config = 6;
      • getUpstreamSocketConfigOrBuilder

        public UdpSocketConfigOrBuilder getUpstreamSocketConfigOrBuilder()
         UDP socket configuration for upstream sockets. The default for
         :ref:`prefer_gro <envoy_v3_api_field_config.core.v3.UdpSocketConfig.prefer_gro>` is true for upstream
         sockets as the assumption is datagrams will be received from a single source.
         
        .envoy.config.core.v3.UdpSocketConfig upstream_socket_config = 6;
        Specified by:
        getUpstreamSocketConfigOrBuilder in interface UdpProxyConfigOrBuilder
      • getUsePerPacketLoadBalancing

        public boolean getUsePerPacketLoadBalancing()
         Perform per packet load balancing (upstream host selection) on each received data chunk.
         The default if not specified is false, that means each data chunk is forwarded
         to upstream host selected on first chunk receival for that "session" (identified by source IP/port and local IP/port).
         
        bool use_per_packet_load_balancing = 7;
        Specified by:
        getUsePerPacketLoadBalancing in interface UdpProxyConfigOrBuilder
        Returns:
        The usePerPacketLoadBalancing.
      • setUsePerPacketLoadBalancing

        public UdpProxyConfig.Builder setUsePerPacketLoadBalancing​(boolean value)
         Perform per packet load balancing (upstream host selection) on each received data chunk.
         The default if not specified is false, that means each data chunk is forwarded
         to upstream host selected on first chunk receival for that "session" (identified by source IP/port and local IP/port).
         
        bool use_per_packet_load_balancing = 7;
        Parameters:
        value - The usePerPacketLoadBalancing to set.
        Returns:
        This builder for chaining.
      • clearUsePerPacketLoadBalancing

        public UdpProxyConfig.Builder clearUsePerPacketLoadBalancing()
         Perform per packet load balancing (upstream host selection) on each received data chunk.
         The default if not specified is false, that means each data chunk is forwarded
         to upstream host selected on first chunk receival for that "session" (identified by source IP/port and local IP/port).
         
        bool use_per_packet_load_balancing = 7;
        Returns:
        This builder for chaining.
      • getAccessLogList

        public List<AccessLog> getAccessLogList()
         Configuration for access logs emitted by the UDP proxy. Note that certain UDP specific data is emitted as :ref:`Dynamic Metadata <config_access_log_format_dynamic_metadata>`.
         
        repeated .envoy.config.accesslog.v3.AccessLog access_log = 8;
        Specified by:
        getAccessLogList in interface UdpProxyConfigOrBuilder
      • getAccessLogCount

        public int getAccessLogCount()
         Configuration for access logs emitted by the UDP proxy. Note that certain UDP specific data is emitted as :ref:`Dynamic Metadata <config_access_log_format_dynamic_metadata>`.
         
        repeated .envoy.config.accesslog.v3.AccessLog access_log = 8;
        Specified by:
        getAccessLogCount in interface UdpProxyConfigOrBuilder
      • getAccessLog

        public AccessLog getAccessLog​(int index)
         Configuration for access logs emitted by the UDP proxy. Note that certain UDP specific data is emitted as :ref:`Dynamic Metadata <config_access_log_format_dynamic_metadata>`.
         
        repeated .envoy.config.accesslog.v3.AccessLog access_log = 8;
        Specified by:
        getAccessLog in interface UdpProxyConfigOrBuilder
      • setAccessLog

        public UdpProxyConfig.Builder setAccessLog​(int index,
                                                   AccessLog value)
         Configuration for access logs emitted by the UDP proxy. Note that certain UDP specific data is emitted as :ref:`Dynamic Metadata <config_access_log_format_dynamic_metadata>`.
         
        repeated .envoy.config.accesslog.v3.AccessLog access_log = 8;
      • setAccessLog

        public UdpProxyConfig.Builder setAccessLog​(int index,
                                                   AccessLog.Builder builderForValue)
         Configuration for access logs emitted by the UDP proxy. Note that certain UDP specific data is emitted as :ref:`Dynamic Metadata <config_access_log_format_dynamic_metadata>`.
         
        repeated .envoy.config.accesslog.v3.AccessLog access_log = 8;
      • addAccessLog

        public UdpProxyConfig.Builder addAccessLog​(AccessLog value)
         Configuration for access logs emitted by the UDP proxy. Note that certain UDP specific data is emitted as :ref:`Dynamic Metadata <config_access_log_format_dynamic_metadata>`.
         
        repeated .envoy.config.accesslog.v3.AccessLog access_log = 8;
      • addAccessLog

        public UdpProxyConfig.Builder addAccessLog​(int index,
                                                   AccessLog value)
         Configuration for access logs emitted by the UDP proxy. Note that certain UDP specific data is emitted as :ref:`Dynamic Metadata <config_access_log_format_dynamic_metadata>`.
         
        repeated .envoy.config.accesslog.v3.AccessLog access_log = 8;
      • addAccessLog

        public UdpProxyConfig.Builder addAccessLog​(AccessLog.Builder builderForValue)
         Configuration for access logs emitted by the UDP proxy. Note that certain UDP specific data is emitted as :ref:`Dynamic Metadata <config_access_log_format_dynamic_metadata>`.
         
        repeated .envoy.config.accesslog.v3.AccessLog access_log = 8;
      • addAccessLog

        public UdpProxyConfig.Builder addAccessLog​(int index,
                                                   AccessLog.Builder builderForValue)
         Configuration for access logs emitted by the UDP proxy. Note that certain UDP specific data is emitted as :ref:`Dynamic Metadata <config_access_log_format_dynamic_metadata>`.
         
        repeated .envoy.config.accesslog.v3.AccessLog access_log = 8;
      • addAllAccessLog

        public UdpProxyConfig.Builder addAllAccessLog​(Iterable<? extends AccessLog> values)
         Configuration for access logs emitted by the UDP proxy. Note that certain UDP specific data is emitted as :ref:`Dynamic Metadata <config_access_log_format_dynamic_metadata>`.
         
        repeated .envoy.config.accesslog.v3.AccessLog access_log = 8;
      • clearAccessLog

        public UdpProxyConfig.Builder clearAccessLog()
         Configuration for access logs emitted by the UDP proxy. Note that certain UDP specific data is emitted as :ref:`Dynamic Metadata <config_access_log_format_dynamic_metadata>`.
         
        repeated .envoy.config.accesslog.v3.AccessLog access_log = 8;
      • removeAccessLog

        public UdpProxyConfig.Builder removeAccessLog​(int index)
         Configuration for access logs emitted by the UDP proxy. Note that certain UDP specific data is emitted as :ref:`Dynamic Metadata <config_access_log_format_dynamic_metadata>`.
         
        repeated .envoy.config.accesslog.v3.AccessLog access_log = 8;
      • getAccessLogBuilder

        public AccessLog.Builder getAccessLogBuilder​(int index)
         Configuration for access logs emitted by the UDP proxy. Note that certain UDP specific data is emitted as :ref:`Dynamic Metadata <config_access_log_format_dynamic_metadata>`.
         
        repeated .envoy.config.accesslog.v3.AccessLog access_log = 8;
      • getAccessLogOrBuilder

        public AccessLogOrBuilder getAccessLogOrBuilder​(int index)
         Configuration for access logs emitted by the UDP proxy. Note that certain UDP specific data is emitted as :ref:`Dynamic Metadata <config_access_log_format_dynamic_metadata>`.
         
        repeated .envoy.config.accesslog.v3.AccessLog access_log = 8;
        Specified by:
        getAccessLogOrBuilder in interface UdpProxyConfigOrBuilder
      • getAccessLogOrBuilderList

        public List<? extends AccessLogOrBuilder> getAccessLogOrBuilderList()
         Configuration for access logs emitted by the UDP proxy. Note that certain UDP specific data is emitted as :ref:`Dynamic Metadata <config_access_log_format_dynamic_metadata>`.
         
        repeated .envoy.config.accesslog.v3.AccessLog access_log = 8;
        Specified by:
        getAccessLogOrBuilderList in interface UdpProxyConfigOrBuilder
      • addAccessLogBuilder

        public AccessLog.Builder addAccessLogBuilder()
         Configuration for access logs emitted by the UDP proxy. Note that certain UDP specific data is emitted as :ref:`Dynamic Metadata <config_access_log_format_dynamic_metadata>`.
         
        repeated .envoy.config.accesslog.v3.AccessLog access_log = 8;
      • addAccessLogBuilder

        public AccessLog.Builder addAccessLogBuilder​(int index)
         Configuration for access logs emitted by the UDP proxy. Note that certain UDP specific data is emitted as :ref:`Dynamic Metadata <config_access_log_format_dynamic_metadata>`.
         
        repeated .envoy.config.accesslog.v3.AccessLog access_log = 8;
      • getAccessLogBuilderList

        public List<AccessLog.Builder> getAccessLogBuilderList()
         Configuration for access logs emitted by the UDP proxy. Note that certain UDP specific data is emitted as :ref:`Dynamic Metadata <config_access_log_format_dynamic_metadata>`.
         
        repeated .envoy.config.accesslog.v3.AccessLog access_log = 8;
      • setUnknownFields

        public final UdpProxyConfig.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.Builder>
      • mergeUnknownFields

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