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 Summary
FieldsModifier and TypeFieldDescriptionprivate int
private com.google.protobuf.SingleFieldBuilder
<UpstreamConnectionOptions.HappyEyeballsConfig, UpstreamConnectionOptions.HappyEyeballsConfig.Builder, UpstreamConnectionOptions.HappyEyeballsConfigOrBuilder> private boolean
private TcpKeepalive
private com.google.protobuf.SingleFieldBuilder
<TcpKeepalive, TcpKeepalive.Builder, TcpKeepaliveOrBuilder> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
private void
clear()
Configurations for happy eyeballs algorithm.If enabled, associates the interface name of the local address with the upstream connection.If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
Configurations for happy eyeballs algorithm.Configurations for happy eyeballs algorithm.Configurations for happy eyeballs algorithm.boolean
If enabled, associates the interface name of the local address with the upstream connection.If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.boolean
Configurations for happy eyeballs algorithm.boolean
If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
private com.google.protobuf.SingleFieldBuilder
<UpstreamConnectionOptions.HappyEyeballsConfig, UpstreamConnectionOptions.HappyEyeballsConfig.Builder, UpstreamConnectionOptions.HappyEyeballsConfigOrBuilder> Configurations for happy eyeballs algorithm.private com.google.protobuf.SingleFieldBuilder
<TcpKeepalive, TcpKeepalive.Builder, TcpKeepaliveOrBuilder> If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.final boolean
private void
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) Configurations for happy eyeballs algorithm.mergeTcpKeepalive
(TcpKeepalive value) If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.Configurations for happy eyeballs algorithm.Configurations for happy eyeballs algorithm.setSetLocalInterfaceNameOnUpstreamConnections
(boolean value) If enabled, associates the interface name of the local address with the upstream connection.setTcpKeepalive
(TcpKeepalive value) If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.setTcpKeepalive
(TcpKeepalive.Builder builderForValue) If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
bitField0_
private int bitField0_ -
tcpKeepalive_
-
tcpKeepaliveBuilder_
private com.google.protobuf.SingleFieldBuilder<TcpKeepalive,TcpKeepalive.Builder, tcpKeepaliveBuilder_TcpKeepaliveOrBuilder> -
setLocalInterfaceNameOnUpstreamConnections_
private boolean setLocalInterfaceNameOnUpstreamConnections_ -
happyEyeballsConfig_
-
happyEyeballsConfigBuilder_
private com.google.protobuf.SingleFieldBuilder<UpstreamConnectionOptions.HappyEyeballsConfig,UpstreamConnectionOptions.HappyEyeballsConfig.Builder, happyEyeballsConfigBuilder_UpstreamConnectionOptions.HappyEyeballsConfigOrBuilder>
-
-
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 classcom.google.protobuf.GeneratedMessage.Builder<UpstreamConnectionOptions.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<UpstreamConnectionOptions.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<UpstreamConnectionOptions.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<UpstreamConnectionOptions.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.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 interfaceUpstreamConnectionOptionsOrBuilder
- Returns:
- Whether the tcpKeepalive field is set.
-
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 interfaceUpstreamConnectionOptionsOrBuilder
- Returns:
- The tcpKeepalive.
-
setTcpKeepalive
If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.
.envoy.config.core.v3.TcpKeepalive tcp_keepalive = 1;
-
setTcpKeepalive
If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.
.envoy.config.core.v3.TcpKeepalive tcp_keepalive = 1;
-
mergeTcpKeepalive
If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.
.envoy.config.core.v3.TcpKeepalive tcp_keepalive = 1;
-
clearTcpKeepalive
If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.
.envoy.config.core.v3.TcpKeepalive tcp_keepalive = 1;
-
getTcpKeepaliveBuilder
If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.
.envoy.config.core.v3.TcpKeepalive tcp_keepalive = 1;
-
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 interfaceUpstreamConnectionOptionsOrBuilder
-
internalGetTcpKeepaliveFieldBuilder
private com.google.protobuf.SingleFieldBuilder<TcpKeepalive,TcpKeepalive.Builder, internalGetTcpKeepaliveFieldBuilder()TcpKeepaliveOrBuilder> 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 interfaceUpstreamConnectionOptionsOrBuilder
- 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
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 interfaceUpstreamConnectionOptionsOrBuilder
- Returns:
- Whether the happyEyeballsConfig field is set.
-
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 interfaceUpstreamConnectionOptionsOrBuilder
- Returns:
- The happyEyeballsConfig.
-
setHappyEyeballsConfig
public UpstreamConnectionOptions.Builder setHappyEyeballsConfig(UpstreamConnectionOptions.HappyEyeballsConfig value) 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
public UpstreamConnectionOptions.Builder setHappyEyeballsConfig(UpstreamConnectionOptions.HappyEyeballsConfig.Builder builderForValue) 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
public UpstreamConnectionOptions.Builder mergeHappyEyeballsConfig(UpstreamConnectionOptions.HappyEyeballsConfig value) 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
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
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
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 interfaceUpstreamConnectionOptionsOrBuilder
-
internalGetHappyEyeballsConfigFieldBuilder
private com.google.protobuf.SingleFieldBuilder<UpstreamConnectionOptions.HappyEyeballsConfig,UpstreamConnectionOptions.HappyEyeballsConfig.Builder, internalGetHappyEyeballsConfigFieldBuilder()UpstreamConnectionOptions.HappyEyeballsConfigOrBuilder> 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;
-