Class UpstreamConnectionOptions.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<UpstreamConnectionOptions.Builder>
com.google.protobuf.GeneratedMessage.Builder<UpstreamConnectionOptions.Builder>
io.envoyproxy.envoy.config.cluster.v3.UpstreamConnectionOptions.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, UpstreamConnectionOptionsOrBuilder, Cloneable
Enclosing class:
UpstreamConnectionOptions

public static final class UpstreamConnectionOptions.Builder extends com.google.protobuf.GeneratedMessage.Builder<UpstreamConnectionOptions.Builder> implements UpstreamConnectionOptionsOrBuilder
Protobuf type envoy.config.cluster.v3.UpstreamConnectionOptions
  • Field Details

  • Constructor Details

    • Builder

      private Builder()
    • Builder

      private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<UpstreamConnectionOptions.Builder>
    • maybeForceBuilderInitialization

      private void maybeForceBuilderInitialization()
    • 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.GeneratedMessage.Builder<UpstreamConnectionOptions.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.GeneratedMessage.Builder<UpstreamConnectionOptions.Builder>
    • getDefaultInstanceForType

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

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

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

      private void buildPartial0(UpstreamConnectionOptions result)
    • mergeFrom

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

    • isInitialized

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

      public UpstreamConnectionOptions.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<UpstreamConnectionOptions.Builder>
      Throws:
      IOException
    • hasTcpKeepalive

      public boolean hasTcpKeepalive()
       If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.
       
      .envoy.config.core.v3.TcpKeepalive tcp_keepalive = 1;
      Specified by:
      hasTcpKeepalive in interface UpstreamConnectionOptionsOrBuilder
      Returns:
      Whether the tcpKeepalive field is set.
    • getTcpKeepalive

      public TcpKeepalive getTcpKeepalive()
       If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.
       
      .envoy.config.core.v3.TcpKeepalive tcp_keepalive = 1;
      Specified by:
      getTcpKeepalive in interface UpstreamConnectionOptionsOrBuilder
      Returns:
      The tcpKeepalive.
    • setTcpKeepalive

      public UpstreamConnectionOptions.Builder setTcpKeepalive(TcpKeepalive value)
       If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.
       
      .envoy.config.core.v3.TcpKeepalive tcp_keepalive = 1;
    • setTcpKeepalive

      public UpstreamConnectionOptions.Builder setTcpKeepalive(TcpKeepalive.Builder builderForValue)
       If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.
       
      .envoy.config.core.v3.TcpKeepalive tcp_keepalive = 1;
    • mergeTcpKeepalive

      public UpstreamConnectionOptions.Builder mergeTcpKeepalive(TcpKeepalive value)
       If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.
       
      .envoy.config.core.v3.TcpKeepalive tcp_keepalive = 1;
    • clearTcpKeepalive

      public UpstreamConnectionOptions.Builder clearTcpKeepalive()
       If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.
       
      .envoy.config.core.v3.TcpKeepalive tcp_keepalive = 1;
    • getTcpKeepaliveBuilder

      public TcpKeepalive.Builder getTcpKeepaliveBuilder()
       If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.
       
      .envoy.config.core.v3.TcpKeepalive tcp_keepalive = 1;
    • getTcpKeepaliveOrBuilder

      public TcpKeepaliveOrBuilder getTcpKeepaliveOrBuilder()
       If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.
       
      .envoy.config.core.v3.TcpKeepalive tcp_keepalive = 1;
      Specified by:
      getTcpKeepaliveOrBuilder in interface UpstreamConnectionOptionsOrBuilder
    • getTcpKeepaliveFieldBuilder

      private com.google.protobuf.SingleFieldBuilder<TcpKeepalive,TcpKeepalive.Builder,TcpKeepaliveOrBuilder> getTcpKeepaliveFieldBuilder()
       If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.
       
      .envoy.config.core.v3.TcpKeepalive tcp_keepalive = 1;
    • getSetLocalInterfaceNameOnUpstreamConnections

      public boolean getSetLocalInterfaceNameOnUpstreamConnections()
       If enabled, associates the interface name of the local address with the upstream connection.
       This can be used by extensions during processing of requests. The association mechanism is
       implementation specific. Defaults to false due to performance concerns.
       
      bool set_local_interface_name_on_upstream_connections = 2;
      Specified by:
      getSetLocalInterfaceNameOnUpstreamConnections in interface UpstreamConnectionOptionsOrBuilder
      Returns:
      The setLocalInterfaceNameOnUpstreamConnections.
    • setSetLocalInterfaceNameOnUpstreamConnections

      public UpstreamConnectionOptions.Builder setSetLocalInterfaceNameOnUpstreamConnections(boolean value)
       If enabled, associates the interface name of the local address with the upstream connection.
       This can be used by extensions during processing of requests. The association mechanism is
       implementation specific. Defaults to false due to performance concerns.
       
      bool set_local_interface_name_on_upstream_connections = 2;
      Parameters:
      value - The setLocalInterfaceNameOnUpstreamConnections to set.
      Returns:
      This builder for chaining.
    • clearSetLocalInterfaceNameOnUpstreamConnections

      public UpstreamConnectionOptions.Builder clearSetLocalInterfaceNameOnUpstreamConnections()
       If enabled, associates the interface name of the local address with the upstream connection.
       This can be used by extensions during processing of requests. The association mechanism is
       implementation specific. Defaults to false due to performance concerns.
       
      bool set_local_interface_name_on_upstream_connections = 2;
      Returns:
      This builder for chaining.
    • hasHappyEyeballsConfig

      public boolean hasHappyEyeballsConfig()
       Configurations for happy eyeballs algorithm.
       Add configs for first_address_family_version and first_address_family_count
       when sorting destination ip addresses.
       
      .envoy.config.cluster.v3.UpstreamConnectionOptions.HappyEyeballsConfig happy_eyeballs_config = 3;
      Specified by:
      hasHappyEyeballsConfig in interface UpstreamConnectionOptionsOrBuilder
      Returns:
      Whether the happyEyeballsConfig field is set.
    • getHappyEyeballsConfig

      public UpstreamConnectionOptions.HappyEyeballsConfig getHappyEyeballsConfig()
       Configurations for happy eyeballs algorithm.
       Add configs for first_address_family_version and first_address_family_count
       when sorting destination ip addresses.
       
      .envoy.config.cluster.v3.UpstreamConnectionOptions.HappyEyeballsConfig happy_eyeballs_config = 3;
      Specified by:
      getHappyEyeballsConfig in interface UpstreamConnectionOptionsOrBuilder
      Returns:
      The happyEyeballsConfig.
    • setHappyEyeballsConfig

       Configurations for happy eyeballs algorithm.
       Add configs for first_address_family_version and first_address_family_count
       when sorting destination ip addresses.
       
      .envoy.config.cluster.v3.UpstreamConnectionOptions.HappyEyeballsConfig happy_eyeballs_config = 3;
    • setHappyEyeballsConfig

       Configurations for happy eyeballs algorithm.
       Add configs for first_address_family_version and first_address_family_count
       when sorting destination ip addresses.
       
      .envoy.config.cluster.v3.UpstreamConnectionOptions.HappyEyeballsConfig happy_eyeballs_config = 3;
    • mergeHappyEyeballsConfig

       Configurations for happy eyeballs algorithm.
       Add configs for first_address_family_version and first_address_family_count
       when sorting destination ip addresses.
       
      .envoy.config.cluster.v3.UpstreamConnectionOptions.HappyEyeballsConfig happy_eyeballs_config = 3;
    • clearHappyEyeballsConfig

      public UpstreamConnectionOptions.Builder clearHappyEyeballsConfig()
       Configurations for happy eyeballs algorithm.
       Add configs for first_address_family_version and first_address_family_count
       when sorting destination ip addresses.
       
      .envoy.config.cluster.v3.UpstreamConnectionOptions.HappyEyeballsConfig happy_eyeballs_config = 3;
    • getHappyEyeballsConfigBuilder

      public UpstreamConnectionOptions.HappyEyeballsConfig.Builder getHappyEyeballsConfigBuilder()
       Configurations for happy eyeballs algorithm.
       Add configs for first_address_family_version and first_address_family_count
       when sorting destination ip addresses.
       
      .envoy.config.cluster.v3.UpstreamConnectionOptions.HappyEyeballsConfig happy_eyeballs_config = 3;
    • getHappyEyeballsConfigOrBuilder

      public UpstreamConnectionOptions.HappyEyeballsConfigOrBuilder getHappyEyeballsConfigOrBuilder()
       Configurations for happy eyeballs algorithm.
       Add configs for first_address_family_version and first_address_family_count
       when sorting destination ip addresses.
       
      .envoy.config.cluster.v3.UpstreamConnectionOptions.HappyEyeballsConfig happy_eyeballs_config = 3;
      Specified by:
      getHappyEyeballsConfigOrBuilder in interface UpstreamConnectionOptionsOrBuilder
    • getHappyEyeballsConfigFieldBuilder

       Configurations for happy eyeballs algorithm.
       Add configs for first_address_family_version and first_address_family_count
       when sorting destination ip addresses.
       
      .envoy.config.cluster.v3.UpstreamConnectionOptions.HappyEyeballsConfig happy_eyeballs_config = 3;