Class UdpProxyConfig.HashPolicy.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<UdpProxyConfig.HashPolicy.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<UdpProxyConfig.HashPolicy.Builder>
      • getDefaultInstanceForType

        public UdpProxyConfig.HashPolicy getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public UdpProxyConfig.HashPolicy build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public UdpProxyConfig.HashPolicy buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • setRepeatedField

        public UdpProxyConfig.HashPolicy.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                  int index,
                                                                  Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<UdpProxyConfig.HashPolicy.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<UdpProxyConfig.HashPolicy.Builder>
        Throws:
        IOException
      • 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:
        getSourceIp in interface UdpProxyConfig.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:
        getKey in interface UdpProxyConfig.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:
        getKeyBytes in interface UdpProxyConfig.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:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<UdpProxyConfig.HashPolicy.Builder>
      • mergeUnknownFields

        public final UdpProxyConfig.HashPolicy.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<UdpProxyConfig.HashPolicy.Builder>