Class RateLimitConfig.Action.HeaderValueMatch.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<RateLimitConfig.Action.HeaderValueMatch.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<RateLimitConfig.Action.HeaderValueMatch.Builder>
      • getDefaultInstanceForType

        public RateLimitConfig.Action.HeaderValueMatch getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public RateLimitConfig.Action.HeaderValueMatch build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public RateLimitConfig.Action.HeaderValueMatch buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<RateLimitConfig.Action.HeaderValueMatch.Builder>
      • setDescriptorValue

        public RateLimitConfig.Action.HeaderValueMatch.Builder setDescriptorValue​(String value)
         The value to use in the descriptor entry.
         
        string descriptor_value = 1 [(.validate.rules) = { ... }
        Parameters:
        value - The descriptorValue to set.
        Returns:
        This builder for chaining.
      • clearDescriptorValue

        public RateLimitConfig.Action.HeaderValueMatch.Builder clearDescriptorValue()
         The value to use in the descriptor entry.
         
        string descriptor_value = 1 [(.validate.rules) = { ... }
        Returns:
        This builder for chaining.
      • setDescriptorValueBytes

        public RateLimitConfig.Action.HeaderValueMatch.Builder setDescriptorValueBytes​(com.google.protobuf.ByteString value)
         The value to use in the descriptor entry.
         
        string descriptor_value = 1 [(.validate.rules) = { ... }
        Parameters:
        value - The bytes for descriptorValue to set.
        Returns:
        This builder for chaining.
      • getExpectMatch

        public boolean getExpectMatch()
         If set to true, the action will append a descriptor entry when the
         request matches the headers. If set to false, the action will append a
         descriptor entry when the request does not match the headers. The
         default value is true.
         
        bool expect_match = 2;
        Specified by:
        getExpectMatch in interface RateLimitConfig.Action.HeaderValueMatchOrBuilder
        Returns:
        The expectMatch.
      • setExpectMatch

        public RateLimitConfig.Action.HeaderValueMatch.Builder setExpectMatch​(boolean value)
         If set to true, the action will append a descriptor entry when the
         request matches the headers. If set to false, the action will append a
         descriptor entry when the request does not match the headers. The
         default value is true.
         
        bool expect_match = 2;
        Parameters:
        value - The expectMatch to set.
        Returns:
        This builder for chaining.
      • clearExpectMatch

        public RateLimitConfig.Action.HeaderValueMatch.Builder clearExpectMatch()
         If set to true, the action will append a descriptor entry when the
         request matches the headers. If set to false, the action will append a
         descriptor entry when the request does not match the headers. The
         default value is true.
         
        bool expect_match = 2;
        Returns:
        This builder for chaining.
      • getHeadersList

        public List<HeaderMatcher> getHeadersList()
         Specifies a set of headers that the rate limit action should match
         on. The action will check the request’s headers against all the
         specified headers in the config. A match will happen if all the
         headers in the config are present in the request with the same values
         (or based on presence if the value field is not in the config).
         
        repeated .envoy.config.route.v3.HeaderMatcher headers = 3 [(.validate.rules) = { ... }
        Specified by:
        getHeadersList in interface RateLimitConfig.Action.HeaderValueMatchOrBuilder
      • getHeadersCount

        public int getHeadersCount()
         Specifies a set of headers that the rate limit action should match
         on. The action will check the request’s headers against all the
         specified headers in the config. A match will happen if all the
         headers in the config are present in the request with the same values
         (or based on presence if the value field is not in the config).
         
        repeated .envoy.config.route.v3.HeaderMatcher headers = 3 [(.validate.rules) = { ... }
        Specified by:
        getHeadersCount in interface RateLimitConfig.Action.HeaderValueMatchOrBuilder
      • getHeaders

        public HeaderMatcher getHeaders​(int index)
         Specifies a set of headers that the rate limit action should match
         on. The action will check the request’s headers against all the
         specified headers in the config. A match will happen if all the
         headers in the config are present in the request with the same values
         (or based on presence if the value field is not in the config).
         
        repeated .envoy.config.route.v3.HeaderMatcher headers = 3 [(.validate.rules) = { ... }
        Specified by:
        getHeaders in interface RateLimitConfig.Action.HeaderValueMatchOrBuilder
      • setHeaders

        public RateLimitConfig.Action.HeaderValueMatch.Builder setHeaders​(int index,
                                                                          HeaderMatcher value)
         Specifies a set of headers that the rate limit action should match
         on. The action will check the request’s headers against all the
         specified headers in the config. A match will happen if all the
         headers in the config are present in the request with the same values
         (or based on presence if the value field is not in the config).
         
        repeated .envoy.config.route.v3.HeaderMatcher headers = 3 [(.validate.rules) = { ... }
      • setHeaders

        public RateLimitConfig.Action.HeaderValueMatch.Builder setHeaders​(int index,
                                                                          HeaderMatcher.Builder builderForValue)
         Specifies a set of headers that the rate limit action should match
         on. The action will check the request’s headers against all the
         specified headers in the config. A match will happen if all the
         headers in the config are present in the request with the same values
         (or based on presence if the value field is not in the config).
         
        repeated .envoy.config.route.v3.HeaderMatcher headers = 3 [(.validate.rules) = { ... }
      • addHeaders

        public RateLimitConfig.Action.HeaderValueMatch.Builder addHeaders​(HeaderMatcher value)
         Specifies a set of headers that the rate limit action should match
         on. The action will check the request’s headers against all the
         specified headers in the config. A match will happen if all the
         headers in the config are present in the request with the same values
         (or based on presence if the value field is not in the config).
         
        repeated .envoy.config.route.v3.HeaderMatcher headers = 3 [(.validate.rules) = { ... }
      • addHeaders

        public RateLimitConfig.Action.HeaderValueMatch.Builder addHeaders​(int index,
                                                                          HeaderMatcher value)
         Specifies a set of headers that the rate limit action should match
         on. The action will check the request’s headers against all the
         specified headers in the config. A match will happen if all the
         headers in the config are present in the request with the same values
         (or based on presence if the value field is not in the config).
         
        repeated .envoy.config.route.v3.HeaderMatcher headers = 3 [(.validate.rules) = { ... }
      • addHeaders

        public RateLimitConfig.Action.HeaderValueMatch.Builder addHeaders​(HeaderMatcher.Builder builderForValue)
         Specifies a set of headers that the rate limit action should match
         on. The action will check the request’s headers against all the
         specified headers in the config. A match will happen if all the
         headers in the config are present in the request with the same values
         (or based on presence if the value field is not in the config).
         
        repeated .envoy.config.route.v3.HeaderMatcher headers = 3 [(.validate.rules) = { ... }
      • addHeaders

        public RateLimitConfig.Action.HeaderValueMatch.Builder addHeaders​(int index,
                                                                          HeaderMatcher.Builder builderForValue)
         Specifies a set of headers that the rate limit action should match
         on. The action will check the request’s headers against all the
         specified headers in the config. A match will happen if all the
         headers in the config are present in the request with the same values
         (or based on presence if the value field is not in the config).
         
        repeated .envoy.config.route.v3.HeaderMatcher headers = 3 [(.validate.rules) = { ... }
      • addAllHeaders

        public RateLimitConfig.Action.HeaderValueMatch.Builder addAllHeaders​(Iterable<? extends HeaderMatcher> values)
         Specifies a set of headers that the rate limit action should match
         on. The action will check the request’s headers against all the
         specified headers in the config. A match will happen if all the
         headers in the config are present in the request with the same values
         (or based on presence if the value field is not in the config).
         
        repeated .envoy.config.route.v3.HeaderMatcher headers = 3 [(.validate.rules) = { ... }
      • clearHeaders

        public RateLimitConfig.Action.HeaderValueMatch.Builder clearHeaders()
         Specifies a set of headers that the rate limit action should match
         on. The action will check the request’s headers against all the
         specified headers in the config. A match will happen if all the
         headers in the config are present in the request with the same values
         (or based on presence if the value field is not in the config).
         
        repeated .envoy.config.route.v3.HeaderMatcher headers = 3 [(.validate.rules) = { ... }
      • removeHeaders

        public RateLimitConfig.Action.HeaderValueMatch.Builder removeHeaders​(int index)
         Specifies a set of headers that the rate limit action should match
         on. The action will check the request’s headers against all the
         specified headers in the config. A match will happen if all the
         headers in the config are present in the request with the same values
         (or based on presence if the value field is not in the config).
         
        repeated .envoy.config.route.v3.HeaderMatcher headers = 3 [(.validate.rules) = { ... }
      • getHeadersBuilder

        public HeaderMatcher.Builder getHeadersBuilder​(int index)
         Specifies a set of headers that the rate limit action should match
         on. The action will check the request’s headers against all the
         specified headers in the config. A match will happen if all the
         headers in the config are present in the request with the same values
         (or based on presence if the value field is not in the config).
         
        repeated .envoy.config.route.v3.HeaderMatcher headers = 3 [(.validate.rules) = { ... }
      • getHeadersOrBuilder

        public HeaderMatcherOrBuilder getHeadersOrBuilder​(int index)
         Specifies a set of headers that the rate limit action should match
         on. The action will check the request’s headers against all the
         specified headers in the config. A match will happen if all the
         headers in the config are present in the request with the same values
         (or based on presence if the value field is not in the config).
         
        repeated .envoy.config.route.v3.HeaderMatcher headers = 3 [(.validate.rules) = { ... }
        Specified by:
        getHeadersOrBuilder in interface RateLimitConfig.Action.HeaderValueMatchOrBuilder
      • getHeadersOrBuilderList

        public List<? extends HeaderMatcherOrBuilder> getHeadersOrBuilderList()
         Specifies a set of headers that the rate limit action should match
         on. The action will check the request’s headers against all the
         specified headers in the config. A match will happen if all the
         headers in the config are present in the request with the same values
         (or based on presence if the value field is not in the config).
         
        repeated .envoy.config.route.v3.HeaderMatcher headers = 3 [(.validate.rules) = { ... }
        Specified by:
        getHeadersOrBuilderList in interface RateLimitConfig.Action.HeaderValueMatchOrBuilder
      • addHeadersBuilder

        public HeaderMatcher.Builder addHeadersBuilder()
         Specifies a set of headers that the rate limit action should match
         on. The action will check the request’s headers against all the
         specified headers in the config. A match will happen if all the
         headers in the config are present in the request with the same values
         (or based on presence if the value field is not in the config).
         
        repeated .envoy.config.route.v3.HeaderMatcher headers = 3 [(.validate.rules) = { ... }
      • addHeadersBuilder

        public HeaderMatcher.Builder addHeadersBuilder​(int index)
         Specifies a set of headers that the rate limit action should match
         on. The action will check the request’s headers against all the
         specified headers in the config. A match will happen if all the
         headers in the config are present in the request with the same values
         (or based on presence if the value field is not in the config).
         
        repeated .envoy.config.route.v3.HeaderMatcher headers = 3 [(.validate.rules) = { ... }
      • getHeadersBuilderList

        public List<HeaderMatcher.Builder> getHeadersBuilderList()
         Specifies a set of headers that the rate limit action should match
         on. The action will check the request’s headers against all the
         specified headers in the config. A match will happen if all the
         headers in the config are present in the request with the same values
         (or based on presence if the value field is not in the config).
         
        repeated .envoy.config.route.v3.HeaderMatcher headers = 3 [(.validate.rules) = { ... }