Class TcpProxy
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.envoyproxy.envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,TcpProxyOrBuilder,Serializable
public final class TcpProxy extends com.google.protobuf.GeneratedMessageV3 implements TcpProxyOrBuilder
[#next-free-field: 15]
Protobuf typeenvoy.extensions.filters.network.tcp_proxy.v3.TcpProxy- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTcpProxy.Builder[#next-free-field: 15]static classTcpProxy.ClusterSpecifierCasestatic classTcpProxy.OnDemandProtobuf typeenvoy.extensions.filters.network.tcp_proxy.v3.TcpProxy.OnDemandstatic interfaceTcpProxy.OnDemandOrBuilderstatic classTcpProxy.TunnelingConfigConfiguration for tunneling TCP over other transports or application layers.static interfaceTcpProxy.TunnelingConfigOrBuilderstatic classTcpProxy.WeightedClusterAllows for specification of multiple upstream clusters along with weights that indicate the percentage of traffic to be forwarded to each cluster.static interfaceTcpProxy.WeightedClusterOrBuilder-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intACCESS_LOG_FIELD_NUMBERstatic intCLUSTER_FIELD_NUMBERstatic intDOWNSTREAM_IDLE_TIMEOUT_FIELD_NUMBERstatic intHASH_POLICY_FIELD_NUMBERstatic intIDLE_TIMEOUT_FIELD_NUMBERstatic intMAX_CONNECT_ATTEMPTS_FIELD_NUMBERstatic intMAX_DOWNSTREAM_CONNECTION_DURATION_FIELD_NUMBERstatic intMETADATA_MATCH_FIELD_NUMBERstatic intON_DEMAND_FIELD_NUMBERstatic intSTAT_PREFIX_FIELD_NUMBERstatic intTUNNELING_CONFIG_FIELD_NUMBERstatic intUPSTREAM_IDLE_TIMEOUT_FIELD_NUMBERstatic intWEIGHTED_CLUSTERS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)AccessLoggetAccessLog(int index)Configuration for :ref:`access logs <arch_overview_access_logs>` emitted by the this tcp_proxy.intgetAccessLogCount()Configuration for :ref:`access logs <arch_overview_access_logs>` emitted by the this tcp_proxy.List<AccessLog>getAccessLogList()Configuration for :ref:`access logs <arch_overview_access_logs>` emitted by the this tcp_proxy.AccessLogOrBuildergetAccessLogOrBuilder(int index)Configuration for :ref:`access logs <arch_overview_access_logs>` emitted by the this tcp_proxy.List<? extends AccessLogOrBuilder>getAccessLogOrBuilderList()Configuration for :ref:`access logs <arch_overview_access_logs>` emitted by the this tcp_proxy.StringgetCluster()The upstream cluster to connect to.com.google.protobuf.ByteStringgetClusterBytes()The upstream cluster to connect to.TcpProxy.ClusterSpecifierCasegetClusterSpecifierCase()static TcpProxygetDefaultInstance()TcpProxygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.DurationgetDownstreamIdleTimeout()[#not-implemented-hide:] The idle timeout for connections managed by the TCP proxy filter.com.google.protobuf.DurationOrBuildergetDownstreamIdleTimeoutOrBuilder()[#not-implemented-hide:] The idle timeout for connections managed by the TCP proxy filter.HashPolicygetHashPolicy(int index)Optional configuration for TCP proxy hash policy.intgetHashPolicyCount()Optional configuration for TCP proxy hash policy.List<HashPolicy>getHashPolicyList()Optional configuration for TCP proxy hash policy.HashPolicyOrBuildergetHashPolicyOrBuilder(int index)Optional configuration for TCP proxy hash policy.List<? extends HashPolicyOrBuilder>getHashPolicyOrBuilderList()Optional configuration for TCP proxy hash policy.com.google.protobuf.DurationgetIdleTimeout()The idle timeout for connections managed by the TCP proxy filter.com.google.protobuf.DurationOrBuildergetIdleTimeoutOrBuilder()The idle timeout for connections managed by the TCP proxy filter.com.google.protobuf.UInt32ValuegetMaxConnectAttempts()The maximum number of unsuccessful connection attempts that will be made before giving up.com.google.protobuf.UInt32ValueOrBuildergetMaxConnectAttemptsOrBuilder()The maximum number of unsuccessful connection attempts that will be made before giving up.com.google.protobuf.DurationgetMaxDownstreamConnectionDuration()The maximum duration of a connection.com.google.protobuf.DurationOrBuildergetMaxDownstreamConnectionDurationOrBuilder()The maximum duration of a connection.MetadatagetMetadataMatch()Optional endpoint metadata match criteria.MetadataOrBuildergetMetadataMatchOrBuilder()Optional endpoint metadata match criteria.TcpProxy.OnDemandgetOnDemand()The on demand policy for the upstream cluster.TcpProxy.OnDemandOrBuildergetOnDemandOrBuilder()The on demand policy for the upstream cluster.com.google.protobuf.Parser<TcpProxy>getParserForType()intgetSerializedSize()StringgetStatPrefix()The prefix to use when emitting :ref:`statistics <config_network_filters_tcp_proxy_stats>`.com.google.protobuf.ByteStringgetStatPrefixBytes()The prefix to use when emitting :ref:`statistics <config_network_filters_tcp_proxy_stats>`.TcpProxy.TunnelingConfiggetTunnelingConfig()If set, this configures tunneling, e.g. configuration options to tunnel TCP payload over HTTP CONNECT.TcpProxy.TunnelingConfigOrBuildergetTunnelingConfigOrBuilder()If set, this configures tunneling, e.g. configuration options to tunnel TCP payload over HTTP CONNECT.com.google.protobuf.UnknownFieldSetgetUnknownFields()com.google.protobuf.DurationgetUpstreamIdleTimeout()[#not-implemented-hide:]com.google.protobuf.DurationOrBuildergetUpstreamIdleTimeoutOrBuilder()[#not-implemented-hide:]TcpProxy.WeightedClustergetWeightedClusters()Multiple upstream clusters can be specified for a given route.TcpProxy.WeightedClusterOrBuildergetWeightedClustersOrBuilder()Multiple upstream clusters can be specified for a given route.booleanhasCluster()The upstream cluster to connect to.booleanhasDownstreamIdleTimeout()[#not-implemented-hide:] The idle timeout for connections managed by the TCP proxy filter.inthashCode()booleanhasIdleTimeout()The idle timeout for connections managed by the TCP proxy filter.booleanhasMaxConnectAttempts()The maximum number of unsuccessful connection attempts that will be made before giving up.booleanhasMaxDownstreamConnectionDuration()The maximum duration of a connection.booleanhasMetadataMatch()Optional endpoint metadata match criteria.booleanhasOnDemand()The on demand policy for the upstream cluster.booleanhasTunnelingConfig()If set, this configures tunneling, e.g. configuration options to tunnel TCP payload over HTTP CONNECT.booleanhasUpstreamIdleTimeout()[#not-implemented-hide:]booleanhasWeightedClusters()Multiple upstream clusters can be specified for a given route.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static TcpProxy.BuildernewBuilder()static TcpProxy.BuildernewBuilder(TcpProxy prototype)TcpProxy.BuildernewBuilderForType()protected TcpProxy.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static TcpProxyparseDelimitedFrom(InputStream input)static TcpProxyparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TcpProxyparseFrom(byte[] data)static TcpProxyparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TcpProxyparseFrom(com.google.protobuf.ByteString data)static TcpProxyparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TcpProxyparseFrom(com.google.protobuf.CodedInputStream input)static TcpProxyparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TcpProxyparseFrom(InputStream input)static TcpProxyparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TcpProxyparseFrom(ByteBuffer data)static TcpProxyparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<TcpProxy>parser()TcpProxy.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
STAT_PREFIX_FIELD_NUMBER
public static final int STAT_PREFIX_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CLUSTER_FIELD_NUMBER
public static final int CLUSTER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
WEIGHTED_CLUSTERS_FIELD_NUMBER
public static final int WEIGHTED_CLUSTERS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ON_DEMAND_FIELD_NUMBER
public static final int ON_DEMAND_FIELD_NUMBER
- See Also:
- Constant Field Values
-
METADATA_MATCH_FIELD_NUMBER
public static final int METADATA_MATCH_FIELD_NUMBER
- See Also:
- Constant Field Values
-
IDLE_TIMEOUT_FIELD_NUMBER
public static final int IDLE_TIMEOUT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DOWNSTREAM_IDLE_TIMEOUT_FIELD_NUMBER
public static final int DOWNSTREAM_IDLE_TIMEOUT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
UPSTREAM_IDLE_TIMEOUT_FIELD_NUMBER
public static final int UPSTREAM_IDLE_TIMEOUT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ACCESS_LOG_FIELD_NUMBER
public static final int ACCESS_LOG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MAX_CONNECT_ATTEMPTS_FIELD_NUMBER
public static final int MAX_CONNECT_ATTEMPTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
HASH_POLICY_FIELD_NUMBER
public static final int HASH_POLICY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TUNNELING_CONFIG_FIELD_NUMBER
public static final int TUNNELING_CONFIG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MAX_DOWNSTREAM_CONNECTION_DURATION_FIELD_NUMBER
public static final int MAX_DOWNSTREAM_CONNECTION_DURATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getClusterSpecifierCase
public TcpProxy.ClusterSpecifierCase getClusterSpecifierCase()
- Specified by:
getClusterSpecifierCasein interfaceTcpProxyOrBuilder
-
getStatPrefix
public String getStatPrefix()
The prefix to use when emitting :ref:`statistics <config_network_filters_tcp_proxy_stats>`.
string stat_prefix = 1 [(.validate.rules) = { ... }- Specified by:
getStatPrefixin interfaceTcpProxyOrBuilder- Returns:
- The statPrefix.
-
getStatPrefixBytes
public com.google.protobuf.ByteString getStatPrefixBytes()
The prefix to use when emitting :ref:`statistics <config_network_filters_tcp_proxy_stats>`.
string stat_prefix = 1 [(.validate.rules) = { ... }- Specified by:
getStatPrefixBytesin interfaceTcpProxyOrBuilder- Returns:
- The bytes for statPrefix.
-
hasCluster
public boolean hasCluster()
The upstream cluster to connect to.
string cluster = 2;- Specified by:
hasClusterin interfaceTcpProxyOrBuilder- Returns:
- Whether the cluster field is set.
-
getCluster
public String getCluster()
The upstream cluster to connect to.
string cluster = 2;- Specified by:
getClusterin interfaceTcpProxyOrBuilder- Returns:
- The cluster.
-
getClusterBytes
public com.google.protobuf.ByteString getClusterBytes()
The upstream cluster to connect to.
string cluster = 2;- Specified by:
getClusterBytesin interfaceTcpProxyOrBuilder- Returns:
- The bytes for cluster.
-
hasWeightedClusters
public boolean hasWeightedClusters()
Multiple upstream clusters can be specified for a given route. The request is routed to one of the upstream clusters based on weights assigned to each cluster.
.envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy.WeightedCluster weighted_clusters = 10;- Specified by:
hasWeightedClustersin interfaceTcpProxyOrBuilder- Returns:
- Whether the weightedClusters field is set.
-
getWeightedClusters
public TcpProxy.WeightedCluster getWeightedClusters()
Multiple upstream clusters can be specified for a given route. The request is routed to one of the upstream clusters based on weights assigned to each cluster.
.envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy.WeightedCluster weighted_clusters = 10;- Specified by:
getWeightedClustersin interfaceTcpProxyOrBuilder- Returns:
- The weightedClusters.
-
getWeightedClustersOrBuilder
public TcpProxy.WeightedClusterOrBuilder getWeightedClustersOrBuilder()
Multiple upstream clusters can be specified for a given route. The request is routed to one of the upstream clusters based on weights assigned to each cluster.
.envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy.WeightedCluster weighted_clusters = 10;- Specified by:
getWeightedClustersOrBuilderin interfaceTcpProxyOrBuilder
-
hasOnDemand
public boolean hasOnDemand()
The on demand policy for the upstream cluster. It applies to both :ref:`TcpProxy.cluster <envoy_v3_api_field_extensions.filters.network.tcp_proxy.v3.TcpProxy.cluster>` and :ref:`TcpProxy.weighted_clusters <envoy_v3_api_field_extensions.filters.network.tcp_proxy.v3.TcpProxy.weighted_clusters>`.
.envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy.OnDemand on_demand = 14;- Specified by:
hasOnDemandin interfaceTcpProxyOrBuilder- Returns:
- Whether the onDemand field is set.
-
getOnDemand
public TcpProxy.OnDemand getOnDemand()
The on demand policy for the upstream cluster. It applies to both :ref:`TcpProxy.cluster <envoy_v3_api_field_extensions.filters.network.tcp_proxy.v3.TcpProxy.cluster>` and :ref:`TcpProxy.weighted_clusters <envoy_v3_api_field_extensions.filters.network.tcp_proxy.v3.TcpProxy.weighted_clusters>`.
.envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy.OnDemand on_demand = 14;- Specified by:
getOnDemandin interfaceTcpProxyOrBuilder- Returns:
- The onDemand.
-
getOnDemandOrBuilder
public TcpProxy.OnDemandOrBuilder getOnDemandOrBuilder()
The on demand policy for the upstream cluster. It applies to both :ref:`TcpProxy.cluster <envoy_v3_api_field_extensions.filters.network.tcp_proxy.v3.TcpProxy.cluster>` and :ref:`TcpProxy.weighted_clusters <envoy_v3_api_field_extensions.filters.network.tcp_proxy.v3.TcpProxy.weighted_clusters>`.
.envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy.OnDemand on_demand = 14;- Specified by:
getOnDemandOrBuilderin interfaceTcpProxyOrBuilder
-
hasMetadataMatch
public boolean hasMetadataMatch()
Optional endpoint metadata match criteria. Only endpoints in the upstream cluster with metadata matching that set in metadata_match will be considered. The filter name should be specified as ``envoy.lb``.
.envoy.config.core.v3.Metadata metadata_match = 9;- Specified by:
hasMetadataMatchin interfaceTcpProxyOrBuilder- Returns:
- Whether the metadataMatch field is set.
-
getMetadataMatch
public Metadata getMetadataMatch()
Optional endpoint metadata match criteria. Only endpoints in the upstream cluster with metadata matching that set in metadata_match will be considered. The filter name should be specified as ``envoy.lb``.
.envoy.config.core.v3.Metadata metadata_match = 9;- Specified by:
getMetadataMatchin interfaceTcpProxyOrBuilder- Returns:
- The metadataMatch.
-
getMetadataMatchOrBuilder
public MetadataOrBuilder getMetadataMatchOrBuilder()
Optional endpoint metadata match criteria. Only endpoints in the upstream cluster with metadata matching that set in metadata_match will be considered. The filter name should be specified as ``envoy.lb``.
.envoy.config.core.v3.Metadata metadata_match = 9;- Specified by:
getMetadataMatchOrBuilderin interfaceTcpProxyOrBuilder
-
hasIdleTimeout
public boolean hasIdleTimeout()
The idle timeout for connections managed by the TCP proxy filter. The idle timeout is defined as the period in which there are no bytes sent or received on either the upstream or downstream connection. If not set, the default idle timeout is 1 hour. If set to 0s, the timeout will be disabled. .. warning:: Disabling this timeout has a highly likelihood of yielding connection leaks due to lost TCP FIN packets, etc.
.google.protobuf.Duration idle_timeout = 8;- Specified by:
hasIdleTimeoutin interfaceTcpProxyOrBuilder- Returns:
- Whether the idleTimeout field is set.
-
getIdleTimeout
public com.google.protobuf.Duration getIdleTimeout()
The idle timeout for connections managed by the TCP proxy filter. The idle timeout is defined as the period in which there are no bytes sent or received on either the upstream or downstream connection. If not set, the default idle timeout is 1 hour. If set to 0s, the timeout will be disabled. .. warning:: Disabling this timeout has a highly likelihood of yielding connection leaks due to lost TCP FIN packets, etc.
.google.protobuf.Duration idle_timeout = 8;- Specified by:
getIdleTimeoutin interfaceTcpProxyOrBuilder- Returns:
- The idleTimeout.
-
getIdleTimeoutOrBuilder
public com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder()
The idle timeout for connections managed by the TCP proxy filter. The idle timeout is defined as the period in which there are no bytes sent or received on either the upstream or downstream connection. If not set, the default idle timeout is 1 hour. If set to 0s, the timeout will be disabled. .. warning:: Disabling this timeout has a highly likelihood of yielding connection leaks due to lost TCP FIN packets, etc.
.google.protobuf.Duration idle_timeout = 8;- Specified by:
getIdleTimeoutOrBuilderin interfaceTcpProxyOrBuilder
-
hasDownstreamIdleTimeout
public boolean hasDownstreamIdleTimeout()
[#not-implemented-hide:] The idle timeout for connections managed by the TCP proxy filter. The idle timeout is defined as the period in which there is no active traffic. If not set, there is no idle timeout. When the idle timeout is reached the connection will be closed. The distinction between downstream_idle_timeout/upstream_idle_timeout provides a means to set timeout based on the last byte sent on the downstream/upstream connection.
.google.protobuf.Duration downstream_idle_timeout = 3;- Specified by:
hasDownstreamIdleTimeoutin interfaceTcpProxyOrBuilder- Returns:
- Whether the downstreamIdleTimeout field is set.
-
getDownstreamIdleTimeout
public com.google.protobuf.Duration getDownstreamIdleTimeout()
[#not-implemented-hide:] The idle timeout for connections managed by the TCP proxy filter. The idle timeout is defined as the period in which there is no active traffic. If not set, there is no idle timeout. When the idle timeout is reached the connection will be closed. The distinction between downstream_idle_timeout/upstream_idle_timeout provides a means to set timeout based on the last byte sent on the downstream/upstream connection.
.google.protobuf.Duration downstream_idle_timeout = 3;- Specified by:
getDownstreamIdleTimeoutin interfaceTcpProxyOrBuilder- Returns:
- The downstreamIdleTimeout.
-
getDownstreamIdleTimeoutOrBuilder
public com.google.protobuf.DurationOrBuilder getDownstreamIdleTimeoutOrBuilder()
[#not-implemented-hide:] The idle timeout for connections managed by the TCP proxy filter. The idle timeout is defined as the period in which there is no active traffic. If not set, there is no idle timeout. When the idle timeout is reached the connection will be closed. The distinction between downstream_idle_timeout/upstream_idle_timeout provides a means to set timeout based on the last byte sent on the downstream/upstream connection.
.google.protobuf.Duration downstream_idle_timeout = 3;- Specified by:
getDownstreamIdleTimeoutOrBuilderin interfaceTcpProxyOrBuilder
-
hasUpstreamIdleTimeout
public boolean hasUpstreamIdleTimeout()
[#not-implemented-hide:]
.google.protobuf.Duration upstream_idle_timeout = 4;- Specified by:
hasUpstreamIdleTimeoutin interfaceTcpProxyOrBuilder- Returns:
- Whether the upstreamIdleTimeout field is set.
-
getUpstreamIdleTimeout
public com.google.protobuf.Duration getUpstreamIdleTimeout()
[#not-implemented-hide:]
.google.protobuf.Duration upstream_idle_timeout = 4;- Specified by:
getUpstreamIdleTimeoutin interfaceTcpProxyOrBuilder- Returns:
- The upstreamIdleTimeout.
-
getUpstreamIdleTimeoutOrBuilder
public com.google.protobuf.DurationOrBuilder getUpstreamIdleTimeoutOrBuilder()
[#not-implemented-hide:]
.google.protobuf.Duration upstream_idle_timeout = 4;- Specified by:
getUpstreamIdleTimeoutOrBuilderin interfaceTcpProxyOrBuilder
-
getAccessLogList
public List<AccessLog> getAccessLogList()
Configuration for :ref:`access logs <arch_overview_access_logs>` emitted by the this tcp_proxy.
repeated .envoy.config.accesslog.v3.AccessLog access_log = 5;- Specified by:
getAccessLogListin interfaceTcpProxyOrBuilder
-
getAccessLogOrBuilderList
public List<? extends AccessLogOrBuilder> getAccessLogOrBuilderList()
Configuration for :ref:`access logs <arch_overview_access_logs>` emitted by the this tcp_proxy.
repeated .envoy.config.accesslog.v3.AccessLog access_log = 5;- Specified by:
getAccessLogOrBuilderListin interfaceTcpProxyOrBuilder
-
getAccessLogCount
public int getAccessLogCount()
Configuration for :ref:`access logs <arch_overview_access_logs>` emitted by the this tcp_proxy.
repeated .envoy.config.accesslog.v3.AccessLog access_log = 5;- Specified by:
getAccessLogCountin interfaceTcpProxyOrBuilder
-
getAccessLog
public AccessLog getAccessLog(int index)
Configuration for :ref:`access logs <arch_overview_access_logs>` emitted by the this tcp_proxy.
repeated .envoy.config.accesslog.v3.AccessLog access_log = 5;- Specified by:
getAccessLogin interfaceTcpProxyOrBuilder
-
getAccessLogOrBuilder
public AccessLogOrBuilder getAccessLogOrBuilder(int index)
Configuration for :ref:`access logs <arch_overview_access_logs>` emitted by the this tcp_proxy.
repeated .envoy.config.accesslog.v3.AccessLog access_log = 5;- Specified by:
getAccessLogOrBuilderin interfaceTcpProxyOrBuilder
-
hasMaxConnectAttempts
public boolean hasMaxConnectAttempts()
The maximum number of unsuccessful connection attempts that will be made before giving up. If the parameter is not specified, 1 connection attempt will be made.
.google.protobuf.UInt32Value max_connect_attempts = 7 [(.validate.rules) = { ... }- Specified by:
hasMaxConnectAttemptsin interfaceTcpProxyOrBuilder- Returns:
- Whether the maxConnectAttempts field is set.
-
getMaxConnectAttempts
public com.google.protobuf.UInt32Value getMaxConnectAttempts()
The maximum number of unsuccessful connection attempts that will be made before giving up. If the parameter is not specified, 1 connection attempt will be made.
.google.protobuf.UInt32Value max_connect_attempts = 7 [(.validate.rules) = { ... }- Specified by:
getMaxConnectAttemptsin interfaceTcpProxyOrBuilder- Returns:
- The maxConnectAttempts.
-
getMaxConnectAttemptsOrBuilder
public com.google.protobuf.UInt32ValueOrBuilder getMaxConnectAttemptsOrBuilder()
The maximum number of unsuccessful connection attempts that will be made before giving up. If the parameter is not specified, 1 connection attempt will be made.
.google.protobuf.UInt32Value max_connect_attempts = 7 [(.validate.rules) = { ... }- Specified by:
getMaxConnectAttemptsOrBuilderin interfaceTcpProxyOrBuilder
-
getHashPolicyList
public List<HashPolicy> getHashPolicyList()
Optional configuration for TCP proxy hash policy. If hash_policy 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.type.v3.HashPolicy hash_policy = 11 [(.validate.rules) = { ... }- Specified by:
getHashPolicyListin interfaceTcpProxyOrBuilder
-
getHashPolicyOrBuilderList
public List<? extends HashPolicyOrBuilder> getHashPolicyOrBuilderList()
Optional configuration for TCP proxy hash policy. If hash_policy 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.type.v3.HashPolicy hash_policy = 11 [(.validate.rules) = { ... }- Specified by:
getHashPolicyOrBuilderListin interfaceTcpProxyOrBuilder
-
getHashPolicyCount
public int getHashPolicyCount()
Optional configuration for TCP proxy hash policy. If hash_policy 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.type.v3.HashPolicy hash_policy = 11 [(.validate.rules) = { ... }- Specified by:
getHashPolicyCountin interfaceTcpProxyOrBuilder
-
getHashPolicy
public HashPolicy getHashPolicy(int index)
Optional configuration for TCP proxy hash policy. If hash_policy 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.type.v3.HashPolicy hash_policy = 11 [(.validate.rules) = { ... }- Specified by:
getHashPolicyin interfaceTcpProxyOrBuilder
-
getHashPolicyOrBuilder
public HashPolicyOrBuilder getHashPolicyOrBuilder(int index)
Optional configuration for TCP proxy hash policy. If hash_policy 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.type.v3.HashPolicy hash_policy = 11 [(.validate.rules) = { ... }- Specified by:
getHashPolicyOrBuilderin interfaceTcpProxyOrBuilder
-
hasTunnelingConfig
public boolean hasTunnelingConfig()
If set, this configures tunneling, e.g. configuration options to tunnel TCP payload over HTTP CONNECT. If this message is absent, the payload will be proxied upstream as per usual.
.envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy.TunnelingConfig tunneling_config = 12;- Specified by:
hasTunnelingConfigin interfaceTcpProxyOrBuilder- Returns:
- Whether the tunnelingConfig field is set.
-
getTunnelingConfig
public TcpProxy.TunnelingConfig getTunnelingConfig()
If set, this configures tunneling, e.g. configuration options to tunnel TCP payload over HTTP CONNECT. If this message is absent, the payload will be proxied upstream as per usual.
.envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy.TunnelingConfig tunneling_config = 12;- Specified by:
getTunnelingConfigin interfaceTcpProxyOrBuilder- Returns:
- The tunnelingConfig.
-
getTunnelingConfigOrBuilder
public TcpProxy.TunnelingConfigOrBuilder getTunnelingConfigOrBuilder()
If set, this configures tunneling, e.g. configuration options to tunnel TCP payload over HTTP CONNECT. If this message is absent, the payload will be proxied upstream as per usual.
.envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy.TunnelingConfig tunneling_config = 12;- Specified by:
getTunnelingConfigOrBuilderin interfaceTcpProxyOrBuilder
-
hasMaxDownstreamConnectionDuration
public boolean hasMaxDownstreamConnectionDuration()
The maximum duration of a connection. The duration is defined as the period since a connection was established. If not set, there is no max duration. When max_downstream_connection_duration is reached the connection will be closed. Duration must be at least 1ms.
.google.protobuf.Duration max_downstream_connection_duration = 13 [(.validate.rules) = { ... }- Specified by:
hasMaxDownstreamConnectionDurationin interfaceTcpProxyOrBuilder- Returns:
- Whether the maxDownstreamConnectionDuration field is set.
-
getMaxDownstreamConnectionDuration
public com.google.protobuf.Duration getMaxDownstreamConnectionDuration()
The maximum duration of a connection. The duration is defined as the period since a connection was established. If not set, there is no max duration. When max_downstream_connection_duration is reached the connection will be closed. Duration must be at least 1ms.
.google.protobuf.Duration max_downstream_connection_duration = 13 [(.validate.rules) = { ... }- Specified by:
getMaxDownstreamConnectionDurationin interfaceTcpProxyOrBuilder- Returns:
- The maxDownstreamConnectionDuration.
-
getMaxDownstreamConnectionDurationOrBuilder
public com.google.protobuf.DurationOrBuilder getMaxDownstreamConnectionDurationOrBuilder()
The maximum duration of a connection. The duration is defined as the period since a connection was established. If not set, there is no max duration. When max_downstream_connection_duration is reached the connection will be closed. Duration must be at least 1ms.
.google.protobuf.Duration max_downstream_connection_duration = 13 [(.validate.rules) = { ... }- Specified by:
getMaxDownstreamConnectionDurationOrBuilderin interfaceTcpProxyOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static TcpProxy parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TcpProxy parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TcpProxy parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TcpProxy parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TcpProxy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TcpProxy parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TcpProxy parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static TcpProxy parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static TcpProxy parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static TcpProxy parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static TcpProxy parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static TcpProxy parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public TcpProxy.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static TcpProxy.Builder newBuilder()
-
newBuilder
public static TcpProxy.Builder newBuilder(TcpProxy prototype)
-
toBuilder
public TcpProxy.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected TcpProxy.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static TcpProxy getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<TcpProxy> parser()
-
getParserForType
public com.google.protobuf.Parser<TcpProxy> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public TcpProxy getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-