Class UdpProxyConfig.HashPolicy.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<UdpProxyConfig.HashPolicy.Builder>
-
- io.envoyproxy.envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig.HashPolicy.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,UdpProxyConfig.HashPolicyOrBuilder,Cloneable
- Enclosing class:
- UdpProxyConfig.HashPolicy
public static final class UdpProxyConfig.HashPolicy.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<UdpProxyConfig.HashPolicy.Builder> implements UdpProxyConfig.HashPolicyOrBuilder
Specifies the UDP hash policy. The packets can be routed by hash policy.
Protobuf typeenvoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig.HashPolicy
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UdpProxyConfig.HashPolicy.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)UdpProxyConfig.HashPolicybuild()UdpProxyConfig.HashPolicybuildPartial()UdpProxyConfig.HashPolicy.Builderclear()UdpProxyConfig.HashPolicy.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)UdpProxyConfig.HashPolicy.BuilderclearKey()A given key will be used to compute the hash used by hash-based load balancing algorithms.UdpProxyConfig.HashPolicy.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)UdpProxyConfig.HashPolicy.BuilderclearPolicySpecifier()UdpProxyConfig.HashPolicy.BuilderclearSourceIp()The source IP will be used to compute the hash used by hash-based load balancing algorithms.UdpProxyConfig.HashPolicy.Builderclone()UdpProxyConfig.HashPolicygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetKey()A given key will be used to compute the hash used by hash-based load balancing algorithms.com.google.protobuf.ByteStringgetKeyBytes()A given key will be used to compute the hash used by hash-based load balancing algorithms.UdpProxyConfig.HashPolicy.PolicySpecifierCasegetPolicySpecifierCase()booleangetSourceIp()The source IP will be used to compute the hash used by hash-based load balancing algorithms.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()UdpProxyConfig.HashPolicy.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)UdpProxyConfig.HashPolicy.BuildermergeFrom(com.google.protobuf.Message other)UdpProxyConfig.HashPolicy.BuildermergeFrom(UdpProxyConfig.HashPolicy other)UdpProxyConfig.HashPolicy.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)UdpProxyConfig.HashPolicy.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)UdpProxyConfig.HashPolicy.BuildersetKey(String value)A given key will be used to compute the hash used by hash-based load balancing algorithms.UdpProxyConfig.HashPolicy.BuildersetKeyBytes(com.google.protobuf.ByteString value)A given key will be used to compute the hash used by hash-based load balancing algorithms.UdpProxyConfig.HashPolicy.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)UdpProxyConfig.HashPolicy.BuildersetSourceIp(boolean value)The source IP will be used to compute the hash used by hash-based load balancing algorithms.UdpProxyConfig.HashPolicy.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
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.Builder<UdpProxyConfig.HashPolicy.Builder>
-
clear
public UdpProxyConfig.HashPolicy.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<UdpProxyConfig.HashPolicy.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.GeneratedMessageV3.Builder<UdpProxyConfig.HashPolicy.Builder>
-
getDefaultInstanceForType
public UdpProxyConfig.HashPolicy getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public UdpProxyConfig.HashPolicy build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public UdpProxyConfig.HashPolicy buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public UdpProxyConfig.HashPolicy.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<UdpProxyConfig.HashPolicy.Builder>
-
setField
public UdpProxyConfig.HashPolicy.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<UdpProxyConfig.HashPolicy.Builder>
-
clearField
public UdpProxyConfig.HashPolicy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<UdpProxyConfig.HashPolicy.Builder>
-
clearOneof
public UdpProxyConfig.HashPolicy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<UdpProxyConfig.HashPolicy.Builder>
-
setRepeatedField
public UdpProxyConfig.HashPolicy.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<UdpProxyConfig.HashPolicy.Builder>
-
addRepeatedField
public UdpProxyConfig.HashPolicy.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<UdpProxyConfig.HashPolicy.Builder>
-
mergeFrom
public UdpProxyConfig.HashPolicy.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UdpProxyConfig.HashPolicy.Builder>
-
mergeFrom
public UdpProxyConfig.HashPolicy.Builder mergeFrom(UdpProxyConfig.HashPolicy other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<UdpProxyConfig.HashPolicy.Builder>
-
mergeFrom
public UdpProxyConfig.HashPolicy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UdpProxyConfig.HashPolicy.Builder>- Throws:
IOException
-
getPolicySpecifierCase
public UdpProxyConfig.HashPolicy.PolicySpecifierCase getPolicySpecifierCase()
- Specified by:
getPolicySpecifierCasein interfaceUdpProxyConfig.HashPolicyOrBuilder
-
clearPolicySpecifier
public UdpProxyConfig.HashPolicy.Builder clearPolicySpecifier()
-
getSourceIp
public boolean getSourceIp()
The source IP will be used to compute the hash used by hash-based load balancing algorithms.
bool source_ip = 1 [(.validate.rules) = { ... }- Specified by:
getSourceIpin interfaceUdpProxyConfig.HashPolicyOrBuilder
-
setSourceIp
public UdpProxyConfig.HashPolicy.Builder setSourceIp(boolean value)
The source IP will be used to compute the hash used by hash-based load balancing algorithms.
bool source_ip = 1 [(.validate.rules) = { ... }
-
clearSourceIp
public UdpProxyConfig.HashPolicy.Builder clearSourceIp()
The source IP will be used to compute the hash used by hash-based load balancing algorithms.
bool source_ip = 1 [(.validate.rules) = { ... }
-
getKey
public String getKey()
A given key will be used to compute the hash used by hash-based load balancing algorithms. In certain cases there is a need to direct different UDP streams jointly towards the selected set of endpoints. A possible use-case is VoIP telephony, where media (RTP) and its corresponding control (RTCP) belong to the same logical session, although they travel in separate streams. To ensure that these pair of streams are load-balanced on session level (instead of individual stream level), dynamically created listeners can use the same hash key for each stream in the session.
string key = 2 [(.validate.rules) = { ... }- Specified by:
getKeyin interfaceUdpProxyConfig.HashPolicyOrBuilder
-
getKeyBytes
public com.google.protobuf.ByteString getKeyBytes()
A given key will be used to compute the hash used by hash-based load balancing algorithms. In certain cases there is a need to direct different UDP streams jointly towards the selected set of endpoints. A possible use-case is VoIP telephony, where media (RTP) and its corresponding control (RTCP) belong to the same logical session, although they travel in separate streams. To ensure that these pair of streams are load-balanced on session level (instead of individual stream level), dynamically created listeners can use the same hash key for each stream in the session.
string key = 2 [(.validate.rules) = { ... }- Specified by:
getKeyBytesin interfaceUdpProxyConfig.HashPolicyOrBuilder
-
setKey
public UdpProxyConfig.HashPolicy.Builder setKey(String value)
A given key will be used to compute the hash used by hash-based load balancing algorithms. In certain cases there is a need to direct different UDP streams jointly towards the selected set of endpoints. A possible use-case is VoIP telephony, where media (RTP) and its corresponding control (RTCP) belong to the same logical session, although they travel in separate streams. To ensure that these pair of streams are load-balanced on session level (instead of individual stream level), dynamically created listeners can use the same hash key for each stream in the session.
string key = 2 [(.validate.rules) = { ... }
-
clearKey
public UdpProxyConfig.HashPolicy.Builder clearKey()
A given key will be used to compute the hash used by hash-based load balancing algorithms. In certain cases there is a need to direct different UDP streams jointly towards the selected set of endpoints. A possible use-case is VoIP telephony, where media (RTP) and its corresponding control (RTCP) belong to the same logical session, although they travel in separate streams. To ensure that these pair of streams are load-balanced on session level (instead of individual stream level), dynamically created listeners can use the same hash key for each stream in the session.
string key = 2 [(.validate.rules) = { ... }
-
setKeyBytes
public UdpProxyConfig.HashPolicy.Builder setKeyBytes(com.google.protobuf.ByteString value)
A given key will be used to compute the hash used by hash-based load balancing algorithms. In certain cases there is a need to direct different UDP streams jointly towards the selected set of endpoints. A possible use-case is VoIP telephony, where media (RTP) and its corresponding control (RTCP) belong to the same logical session, although they travel in separate streams. To ensure that these pair of streams are load-balanced on session level (instead of individual stream level), dynamically created listeners can use the same hash key for each stream in the session.
string key = 2 [(.validate.rules) = { ... }
-
setUnknownFields
public final UdpProxyConfig.HashPolicy.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<UdpProxyConfig.HashPolicy.Builder>
-
mergeUnknownFields
public final UdpProxyConfig.HashPolicy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<UdpProxyConfig.HashPolicy.Builder>
-
-