Class UdpProxyConfig.HashPolicy.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
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 type
envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig.HashPolicy-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearKey()A given key will be used to compute the hash used by hash-based load balancing algorithms.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The source IP will be used to compute the hash used by hash-based load balancing algorithms.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetKey()A given key will be used to compute the hash used by hash-based load balancing algorithms.com.google.protobuf.ByteStringA given key will be used to compute the hash used by hash-based load balancing algorithms.booleanThe source IP will be used to compute the hash used by hash-based load balancing algorithms.booleanhasKey()A given key will be used to compute the hash used by hash-based load balancing algorithms.booleanThe source IP will be used to compute the hash used by hash-based load balancing algorithms.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) A given key will be used to compute the hash used by hash-based load balancing algorithms.setKeyBytes(com.google.protobuf.ByteString value) A given key will be used to compute the hash used by hash-based load balancing algorithms.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSourceIp(boolean value) The source IP will be used to compute the hash used by hash-based load balancing algorithms.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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
- 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
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.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
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UdpProxyConfig.HashPolicy.Builder>
-
mergeFrom
-
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
- Specified by:
getPolicySpecifierCasein interfaceUdpProxyConfig.HashPolicyOrBuilder
-
clearPolicySpecifier
-
hasSourceIp
public boolean hasSourceIp()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:
hasSourceIpin interfaceUdpProxyConfig.HashPolicyOrBuilder- Returns:
- Whether the sourceIp field is set.
-
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- Returns:
- The sourceIp.
-
setSourceIp
The source IP will be used to compute the hash used by hash-based load balancing algorithms.
bool source_ip = 1 [(.validate.rules) = { ... }- Parameters:
value- The sourceIp to set.- Returns:
- This builder for chaining.
-
clearSourceIp
The source IP will be used to compute the hash used by hash-based load balancing algorithms.
bool source_ip = 1 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
hasKey
public boolean hasKey()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:
hasKeyin interfaceUdpProxyConfig.HashPolicyOrBuilder- Returns:
- Whether the key field is set.
-
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- Returns:
- The key.
-
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- Returns:
- The bytes for key.
-
setKey
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) = { ... }- Parameters:
value- The key to set.- Returns:
- This builder for chaining.
-
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) = { ... }- Returns:
- This builder for chaining.
-
setKeyBytes
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) = { ... }- Parameters:
value- The bytes for key to set.- Returns:
- This builder for chaining.
-
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>
-