public final class UdpProxyConfig extends com.google.protobuf.GeneratedMessageV3 implements UdpProxyConfigOrBuilder
Configuration for the UDP proxy filter. [#next-free-field: 6]Protobuf type
envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig| Modifier and Type | Class and Description |
|---|---|
static class |
UdpProxyConfig.Builder
Configuration for the UDP proxy filter.
|
static class |
UdpProxyConfig.HashPolicy
Specifies the UDP hash policy.
|
static interface |
UdpProxyConfig.HashPolicyOrBuilder |
static class |
UdpProxyConfig.RouteSpecifierCase |
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| Modifier and Type | Field and Description |
|---|---|
static int |
CLUSTER_FIELD_NUMBER |
static int |
HASH_POLICIES_FIELD_NUMBER |
static int |
IDLE_TIMEOUT_FIELD_NUMBER |
static int |
STAT_PREFIX_FIELD_NUMBER |
static int |
USE_ORIGINAL_SRC_IP_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getCluster()
The upstream cluster to connect to.
|
com.google.protobuf.ByteString |
getClusterBytes()
The upstream cluster to connect to.
|
static UdpProxyConfig |
getDefaultInstance() |
UdpProxyConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
UdpProxyConfig.HashPolicy |
getHashPolicies(int index)
Optional configuration for UDP proxy hash policies.
|
int |
getHashPoliciesCount()
Optional configuration for UDP proxy hash policies.
|
List<UdpProxyConfig.HashPolicy> |
getHashPoliciesList()
Optional configuration for UDP proxy hash policies.
|
UdpProxyConfig.HashPolicyOrBuilder |
getHashPoliciesOrBuilder(int index)
Optional configuration for UDP proxy hash policies.
|
List<? extends UdpProxyConfig.HashPolicyOrBuilder> |
getHashPoliciesOrBuilderList()
Optional configuration for UDP proxy hash policies.
|
com.google.protobuf.Duration |
getIdleTimeout()
The idle timeout for sessions.
|
com.google.protobuf.DurationOrBuilder |
getIdleTimeoutOrBuilder()
The idle timeout for sessions.
|
com.google.protobuf.Parser<UdpProxyConfig> |
getParserForType() |
UdpProxyConfig.RouteSpecifierCase |
getRouteSpecifierCase() |
int |
getSerializedSize() |
String |
getStatPrefix()
The stat prefix used when emitting UDP proxy filter stats.
|
com.google.protobuf.ByteString |
getStatPrefixBytes()
The stat prefix used when emitting UDP proxy filter stats.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
getUseOriginalSrcIp()
Use the remote downstream IP address as the sender IP address when sending packets to upstream hosts.
|
int |
hashCode() |
boolean |
hasIdleTimeout()
The idle timeout for sessions.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static UdpProxyConfig.Builder |
newBuilder() |
static UdpProxyConfig.Builder |
newBuilder(UdpProxyConfig prototype) |
UdpProxyConfig.Builder |
newBuilderForType() |
protected UdpProxyConfig.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static UdpProxyConfig |
parseDelimitedFrom(InputStream input) |
static UdpProxyConfig |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static UdpProxyConfig |
parseFrom(byte[] data) |
static UdpProxyConfig |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static UdpProxyConfig |
parseFrom(ByteBuffer data) |
static UdpProxyConfig |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static UdpProxyConfig |
parseFrom(com.google.protobuf.ByteString data) |
static UdpProxyConfig |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static UdpProxyConfig |
parseFrom(com.google.protobuf.CodedInputStream input) |
static UdpProxyConfig |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static UdpProxyConfig |
parseFrom(InputStream input) |
static UdpProxyConfig |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<UdpProxyConfig> |
parser() |
UdpProxyConfig.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int STAT_PREFIX_FIELD_NUMBER
public static final int CLUSTER_FIELD_NUMBER
public static final int IDLE_TIMEOUT_FIELD_NUMBER
public static final int USE_ORIGINAL_SRC_IP_FIELD_NUMBER
public static final int HASH_POLICIES_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public UdpProxyConfig.RouteSpecifierCase getRouteSpecifierCase()
getRouteSpecifierCase in interface UdpProxyConfigOrBuilderpublic String getStatPrefix()
The stat prefix used when emitting UDP proxy filter stats.
string stat_prefix = 1 [(.validate.rules) = { ... }getStatPrefix in interface UdpProxyConfigOrBuilderpublic com.google.protobuf.ByteString getStatPrefixBytes()
The stat prefix used when emitting UDP proxy filter stats.
string stat_prefix = 1 [(.validate.rules) = { ... }getStatPrefixBytes in interface UdpProxyConfigOrBuilderpublic String getCluster()
The upstream cluster to connect to.
string cluster = 2 [(.validate.rules) = { ... }getCluster in interface UdpProxyConfigOrBuilderpublic com.google.protobuf.ByteString getClusterBytes()
The upstream cluster to connect to.
string cluster = 2 [(.validate.rules) = { ... }getClusterBytes in interface UdpProxyConfigOrBuilderpublic 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;hasIdleTimeout in interface UdpProxyConfigOrBuilderpublic 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;getIdleTimeout in interface UdpProxyConfigOrBuilderpublic 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;getIdleTimeoutOrBuilder in interface UdpProxyConfigOrBuilderpublic 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;getUseOriginalSrcIp in interface UdpProxyConfigOrBuilderpublic 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) = { ... }getHashPoliciesList in interface UdpProxyConfigOrBuilderpublic 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) = { ... }getHashPoliciesOrBuilderList in interface UdpProxyConfigOrBuilderpublic 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) = { ... }getHashPoliciesCount in interface UdpProxyConfigOrBuilderpublic 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) = { ... }getHashPolicies in interface UdpProxyConfigOrBuilderpublic 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) = { ... }getHashPoliciesOrBuilder in interface UdpProxyConfigOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static UdpProxyConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static UdpProxyConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static UdpProxyConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static UdpProxyConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static UdpProxyConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static UdpProxyConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static UdpProxyConfig parseFrom(InputStream input) throws IOException
IOExceptionpublic static UdpProxyConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static UdpProxyConfig parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static UdpProxyConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static UdpProxyConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static UdpProxyConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic UdpProxyConfig.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static UdpProxyConfig.Builder newBuilder()
public static UdpProxyConfig.Builder newBuilder(UdpProxyConfig prototype)
public UdpProxyConfig.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected UdpProxyConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static UdpProxyConfig getDefaultInstance()
public static com.google.protobuf.Parser<UdpProxyConfig> parser()
public com.google.protobuf.Parser<UdpProxyConfig> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public UdpProxyConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018–2021 The Envoy Project. All rights reserved.