Class UpstreamConnectionOptions.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- 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,java.lang.Cloneable
- Enclosing class:
- UpstreamConnectionOptions
public static final class UpstreamConnectionOptions.Builder extends com.google.protobuf.GeneratedMessage.Builder<UpstreamConnectionOptions.Builder> implements UpstreamConnectionOptionsOrBuilder
Protobuf typeenvoy.config.cluster.v3.UpstreamConnectionOptions
-
-
Field Summary
Fields Modifier and Type Field Description private intbitField0_private UpstreamConnectionOptions.HappyEyeballsConfighappyEyeballsConfig_private com.google.protobuf.SingleFieldBuilder<UpstreamConnectionOptions.HappyEyeballsConfig,UpstreamConnectionOptions.HappyEyeballsConfig.Builder,UpstreamConnectionOptions.HappyEyeballsConfigOrBuilder>happyEyeballsConfigBuilder_private booleansetLocalInterfaceNameOnUpstreamConnections_private TcpKeepalivetcpKeepalive_private com.google.protobuf.SingleFieldBuilder<TcpKeepalive,TcpKeepalive.Builder,TcpKeepaliveOrBuilder>tcpKeepaliveBuilder_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UpstreamConnectionOptionsbuild()UpstreamConnectionOptionsbuildPartial()private voidbuildPartial0(UpstreamConnectionOptions result)UpstreamConnectionOptions.Builderclear()UpstreamConnectionOptions.BuilderclearHappyEyeballsConfig()Configurations for happy eyeballs algorithm.UpstreamConnectionOptions.BuilderclearSetLocalInterfaceNameOnUpstreamConnections()If enabled, associates the interface name of the local address with the upstream connection.UpstreamConnectionOptions.BuilderclearTcpKeepalive()If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.UpstreamConnectionOptionsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()UpstreamConnectionOptions.HappyEyeballsConfiggetHappyEyeballsConfig()Configurations for happy eyeballs algorithm.UpstreamConnectionOptions.HappyEyeballsConfig.BuildergetHappyEyeballsConfigBuilder()Configurations for happy eyeballs algorithm.private com.google.protobuf.SingleFieldBuilder<UpstreamConnectionOptions.HappyEyeballsConfig,UpstreamConnectionOptions.HappyEyeballsConfig.Builder,UpstreamConnectionOptions.HappyEyeballsConfigOrBuilder>getHappyEyeballsConfigFieldBuilder()Configurations for happy eyeballs algorithm.UpstreamConnectionOptions.HappyEyeballsConfigOrBuildergetHappyEyeballsConfigOrBuilder()Configurations for happy eyeballs algorithm.booleangetSetLocalInterfaceNameOnUpstreamConnections()If enabled, associates the interface name of the local address with the upstream connection.TcpKeepalivegetTcpKeepalive()If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.TcpKeepalive.BuildergetTcpKeepaliveBuilder()If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.private com.google.protobuf.SingleFieldBuilder<TcpKeepalive,TcpKeepalive.Builder,TcpKeepaliveOrBuilder>getTcpKeepaliveFieldBuilder()If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.TcpKeepaliveOrBuildergetTcpKeepaliveOrBuilder()If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.booleanhasHappyEyeballsConfig()Configurations for happy eyeballs algorithm.booleanhasTcpKeepalive()If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()private voidmaybeForceBuilderInitialization()UpstreamConnectionOptions.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)UpstreamConnectionOptions.BuildermergeFrom(com.google.protobuf.Message other)UpstreamConnectionOptions.BuildermergeFrom(UpstreamConnectionOptions other)UpstreamConnectionOptions.BuildermergeHappyEyeballsConfig(UpstreamConnectionOptions.HappyEyeballsConfig value)Configurations for happy eyeballs algorithm.UpstreamConnectionOptions.BuildermergeTcpKeepalive(TcpKeepalive value)If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.UpstreamConnectionOptions.BuildersetHappyEyeballsConfig(UpstreamConnectionOptions.HappyEyeballsConfig value)Configurations for happy eyeballs algorithm.UpstreamConnectionOptions.BuildersetHappyEyeballsConfig(UpstreamConnectionOptions.HappyEyeballsConfig.Builder builderForValue)Configurations for happy eyeballs algorithm.UpstreamConnectionOptions.BuildersetSetLocalInterfaceNameOnUpstreamConnections(boolean value)If enabled, associates the interface name of the local address with the upstream connection.UpstreamConnectionOptions.BuildersetTcpKeepalive(TcpKeepalive value)If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.UpstreamConnectionOptions.BuildersetTcpKeepalive(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
-
-
-
-
Field Detail
-
bitField0_
private int bitField0_
-
tcpKeepalive_
private TcpKeepalive tcpKeepalive_
-
tcpKeepaliveBuilder_
private com.google.protobuf.SingleFieldBuilder<TcpKeepalive,TcpKeepalive.Builder,TcpKeepaliveOrBuilder> tcpKeepaliveBuilder_
-
setLocalInterfaceNameOnUpstreamConnections_
private boolean setLocalInterfaceNameOnUpstreamConnections_
-
happyEyeballsConfig_
private UpstreamConnectionOptions.HappyEyeballsConfig happyEyeballsConfig_
-
happyEyeballsConfigBuilder_
private com.google.protobuf.SingleFieldBuilder<UpstreamConnectionOptions.HappyEyeballsConfig,UpstreamConnectionOptions.HappyEyeballsConfig.Builder,UpstreamConnectionOptions.HappyEyeballsConfigOrBuilder> happyEyeballsConfigBuilder_
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<UpstreamConnectionOptions.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization()
-
clear
public UpstreamConnectionOptions.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<UpstreamConnectionOptions.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<UpstreamConnectionOptions.Builder>
-
getDefaultInstanceForType
public UpstreamConnectionOptions getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public UpstreamConnectionOptions build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public UpstreamConnectionOptions buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
private void buildPartial0(UpstreamConnectionOptions result)
-
mergeFrom
public UpstreamConnectionOptions.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UpstreamConnectionOptions.Builder>
-
mergeFrom
public UpstreamConnectionOptions.Builder mergeFrom(UpstreamConnectionOptions other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<UpstreamConnectionOptions.Builder>
-
mergeFrom
public UpstreamConnectionOptions.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UpstreamConnectionOptions.Builder>- Throws:
java.io.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:
hasTcpKeepalivein interfaceUpstreamConnectionOptionsOrBuilder- 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:
getTcpKeepalivein interfaceUpstreamConnectionOptionsOrBuilder- 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:
getTcpKeepaliveOrBuilderin interfaceUpstreamConnectionOptionsOrBuilder
-
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:
getSetLocalInterfaceNameOnUpstreamConnectionsin 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
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:
hasHappyEyeballsConfigin interfaceUpstreamConnectionOptionsOrBuilder- 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:
getHappyEyeballsConfigin 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
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:
getHappyEyeballsConfigOrBuilderin interfaceUpstreamConnectionOptionsOrBuilder
-
getHappyEyeballsConfigFieldBuilder
private com.google.protobuf.SingleFieldBuilder<UpstreamConnectionOptions.HappyEyeballsConfig,UpstreamConnectionOptions.HappyEyeballsConfig.Builder,UpstreamConnectionOptions.HappyEyeballsConfigOrBuilder> 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;
-
-