Class SecurityPolicyRuleRateLimitOptions.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<SecurityPolicyRuleRateLimitOptions.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<SecurityPolicyRuleRateLimitOptions.Builder>
      • getDefaultInstanceForType

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

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

        public SecurityPolicyRuleRateLimitOptions 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<SecurityPolicyRuleRateLimitOptions.Builder>
      • hasBanDurationSec

        public boolean hasBanDurationSec()
         Can only be specified if the action for the rule is "rate_based_ban". If specified, determines the time (in seconds) the traffic will continue to be banned by the rate limit after the rate falls below the threshold.
         
        optional int32 ban_duration_sec = 42896726;
        Specified by:
        hasBanDurationSec in interface SecurityPolicyRuleRateLimitOptionsOrBuilder
        Returns:
        Whether the banDurationSec field is set.
      • getBanDurationSec

        public int getBanDurationSec()
         Can only be specified if the action for the rule is "rate_based_ban". If specified, determines the time (in seconds) the traffic will continue to be banned by the rate limit after the rate falls below the threshold.
         
        optional int32 ban_duration_sec = 42896726;
        Specified by:
        getBanDurationSec in interface SecurityPolicyRuleRateLimitOptionsOrBuilder
        Returns:
        The banDurationSec.
      • setBanDurationSec

        public SecurityPolicyRuleRateLimitOptions.Builder setBanDurationSec​(int value)
         Can only be specified if the action for the rule is "rate_based_ban". If specified, determines the time (in seconds) the traffic will continue to be banned by the rate limit after the rate falls below the threshold.
         
        optional int32 ban_duration_sec = 42896726;
        Parameters:
        value - The banDurationSec to set.
        Returns:
        This builder for chaining.
      • clearBanDurationSec

        public SecurityPolicyRuleRateLimitOptions.Builder clearBanDurationSec()
         Can only be specified if the action for the rule is "rate_based_ban". If specified, determines the time (in seconds) the traffic will continue to be banned by the rate limit after the rate falls below the threshold.
         
        optional int32 ban_duration_sec = 42896726;
        Returns:
        This builder for chaining.
      • hasBanThreshold

        public boolean hasBanThreshold()
         Can only be specified if the action for the rule is "rate_based_ban". If specified, the key will be banned for the configured 'ban_duration_sec' when the number of requests that exceed the 'rate_limit_threshold' also exceed this 'ban_threshold'.
         
        optional .google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold ban_threshold = 501208123;
        Specified by:
        hasBanThreshold in interface SecurityPolicyRuleRateLimitOptionsOrBuilder
        Returns:
        Whether the banThreshold field is set.
      • getBanThreshold

        public SecurityPolicyRuleRateLimitOptionsThreshold getBanThreshold()
         Can only be specified if the action for the rule is "rate_based_ban". If specified, the key will be banned for the configured 'ban_duration_sec' when the number of requests that exceed the 'rate_limit_threshold' also exceed this 'ban_threshold'.
         
        optional .google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold ban_threshold = 501208123;
        Specified by:
        getBanThreshold in interface SecurityPolicyRuleRateLimitOptionsOrBuilder
        Returns:
        The banThreshold.
      • setBanThreshold

        public SecurityPolicyRuleRateLimitOptions.Builder setBanThreshold​(SecurityPolicyRuleRateLimitOptionsThreshold value)
         Can only be specified if the action for the rule is "rate_based_ban". If specified, the key will be banned for the configured 'ban_duration_sec' when the number of requests that exceed the 'rate_limit_threshold' also exceed this 'ban_threshold'.
         
        optional .google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold ban_threshold = 501208123;
      • setBanThreshold

        public SecurityPolicyRuleRateLimitOptions.Builder setBanThreshold​(SecurityPolicyRuleRateLimitOptionsThreshold.Builder builderForValue)
         Can only be specified if the action for the rule is "rate_based_ban". If specified, the key will be banned for the configured 'ban_duration_sec' when the number of requests that exceed the 'rate_limit_threshold' also exceed this 'ban_threshold'.
         
        optional .google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold ban_threshold = 501208123;
      • mergeBanThreshold

        public SecurityPolicyRuleRateLimitOptions.Builder mergeBanThreshold​(SecurityPolicyRuleRateLimitOptionsThreshold value)
         Can only be specified if the action for the rule is "rate_based_ban". If specified, the key will be banned for the configured 'ban_duration_sec' when the number of requests that exceed the 'rate_limit_threshold' also exceed this 'ban_threshold'.
         
        optional .google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold ban_threshold = 501208123;
      • clearBanThreshold

        public SecurityPolicyRuleRateLimitOptions.Builder clearBanThreshold()
         Can only be specified if the action for the rule is "rate_based_ban". If specified, the key will be banned for the configured 'ban_duration_sec' when the number of requests that exceed the 'rate_limit_threshold' also exceed this 'ban_threshold'.
         
        optional .google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold ban_threshold = 501208123;
      • getBanThresholdBuilder

        public SecurityPolicyRuleRateLimitOptionsThreshold.Builder getBanThresholdBuilder()
         Can only be specified if the action for the rule is "rate_based_ban". If specified, the key will be banned for the configured 'ban_duration_sec' when the number of requests that exceed the 'rate_limit_threshold' also exceed this 'ban_threshold'.
         
        optional .google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold ban_threshold = 501208123;
      • hasConformAction

        public boolean hasConformAction()
         Action to take for requests that are under the configured rate limit threshold. Valid option is "allow" only.
         
        optional string conform_action = 517612367;
        Specified by:
        hasConformAction in interface SecurityPolicyRuleRateLimitOptionsOrBuilder
        Returns:
        Whether the conformAction field is set.
      • getConformAction

        public String getConformAction()
         Action to take for requests that are under the configured rate limit threshold. Valid option is "allow" only.
         
        optional string conform_action = 517612367;
        Specified by:
        getConformAction in interface SecurityPolicyRuleRateLimitOptionsOrBuilder
        Returns:
        The conformAction.
      • getConformActionBytes

        public com.google.protobuf.ByteString getConformActionBytes()
         Action to take for requests that are under the configured rate limit threshold. Valid option is "allow" only.
         
        optional string conform_action = 517612367;
        Specified by:
        getConformActionBytes in interface SecurityPolicyRuleRateLimitOptionsOrBuilder
        Returns:
        The bytes for conformAction.
      • setConformAction

        public SecurityPolicyRuleRateLimitOptions.Builder setConformAction​(String value)
         Action to take for requests that are under the configured rate limit threshold. Valid option is "allow" only.
         
        optional string conform_action = 517612367;
        Parameters:
        value - The conformAction to set.
        Returns:
        This builder for chaining.
      • clearConformAction

        public SecurityPolicyRuleRateLimitOptions.Builder clearConformAction()
         Action to take for requests that are under the configured rate limit threshold. Valid option is "allow" only.
         
        optional string conform_action = 517612367;
        Returns:
        This builder for chaining.
      • setConformActionBytes

        public SecurityPolicyRuleRateLimitOptions.Builder setConformActionBytes​(com.google.protobuf.ByteString value)
         Action to take for requests that are under the configured rate limit threshold. Valid option is "allow" only.
         
        optional string conform_action = 517612367;
        Parameters:
        value - The bytes for conformAction to set.
        Returns:
        This builder for chaining.
      • hasEnforceOnKey

        public boolean hasEnforceOnKey()
         Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates.
         Check the EnforceOnKey enum for the list of possible values.
         
        optional string enforce_on_key = 416648956;
        Specified by:
        hasEnforceOnKey in interface SecurityPolicyRuleRateLimitOptionsOrBuilder
        Returns:
        Whether the enforceOnKey field is set.
      • getEnforceOnKey

        public String getEnforceOnKey()
         Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates.
         Check the EnforceOnKey enum for the list of possible values.
         
        optional string enforce_on_key = 416648956;
        Specified by:
        getEnforceOnKey in interface SecurityPolicyRuleRateLimitOptionsOrBuilder
        Returns:
        The enforceOnKey.
      • getEnforceOnKeyBytes

        public com.google.protobuf.ByteString getEnforceOnKeyBytes()
         Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates.
         Check the EnforceOnKey enum for the list of possible values.
         
        optional string enforce_on_key = 416648956;
        Specified by:
        getEnforceOnKeyBytes in interface SecurityPolicyRuleRateLimitOptionsOrBuilder
        Returns:
        The bytes for enforceOnKey.
      • setEnforceOnKey

        public SecurityPolicyRuleRateLimitOptions.Builder setEnforceOnKey​(String value)
         Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates.
         Check the EnforceOnKey enum for the list of possible values.
         
        optional string enforce_on_key = 416648956;
        Parameters:
        value - The enforceOnKey to set.
        Returns:
        This builder for chaining.
      • clearEnforceOnKey

        public SecurityPolicyRuleRateLimitOptions.Builder clearEnforceOnKey()
         Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates.
         Check the EnforceOnKey enum for the list of possible values.
         
        optional string enforce_on_key = 416648956;
        Returns:
        This builder for chaining.
      • setEnforceOnKeyBytes

        public SecurityPolicyRuleRateLimitOptions.Builder setEnforceOnKeyBytes​(com.google.protobuf.ByteString value)
         Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates.
         Check the EnforceOnKey enum for the list of possible values.
         
        optional string enforce_on_key = 416648956;
        Parameters:
        value - The bytes for enforceOnKey to set.
        Returns:
        This builder for chaining.
      • getEnforceOnKeyConfigsList

        public List<SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig> getEnforceOnKeyConfigsList()
         If specified, any combination of values of enforce_on_key_type/enforce_on_key_name is treated as the key on which ratelimit threshold/action is enforced. You can specify up to 3 enforce_on_key_configs. If enforce_on_key_configs is specified, enforce_on_key must not be specified.
         
        repeated .google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig enforce_on_key_configs = 33906478;
        Specified by:
        getEnforceOnKeyConfigsList in interface SecurityPolicyRuleRateLimitOptionsOrBuilder
      • getEnforceOnKeyConfigsCount

        public int getEnforceOnKeyConfigsCount()
         If specified, any combination of values of enforce_on_key_type/enforce_on_key_name is treated as the key on which ratelimit threshold/action is enforced. You can specify up to 3 enforce_on_key_configs. If enforce_on_key_configs is specified, enforce_on_key must not be specified.
         
        repeated .google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig enforce_on_key_configs = 33906478;
        Specified by:
        getEnforceOnKeyConfigsCount in interface SecurityPolicyRuleRateLimitOptionsOrBuilder
      • getEnforceOnKeyConfigs

        public SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig getEnforceOnKeyConfigs​(int index)
         If specified, any combination of values of enforce_on_key_type/enforce_on_key_name is treated as the key on which ratelimit threshold/action is enforced. You can specify up to 3 enforce_on_key_configs. If enforce_on_key_configs is specified, enforce_on_key must not be specified.
         
        repeated .google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig enforce_on_key_configs = 33906478;
        Specified by:
        getEnforceOnKeyConfigs in interface SecurityPolicyRuleRateLimitOptionsOrBuilder
      • setEnforceOnKeyConfigs

        public SecurityPolicyRuleRateLimitOptions.Builder setEnforceOnKeyConfigs​(int index,
                                                                                 SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig value)
         If specified, any combination of values of enforce_on_key_type/enforce_on_key_name is treated as the key on which ratelimit threshold/action is enforced. You can specify up to 3 enforce_on_key_configs. If enforce_on_key_configs is specified, enforce_on_key must not be specified.
         
        repeated .google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig enforce_on_key_configs = 33906478;
      • setEnforceOnKeyConfigs

        public SecurityPolicyRuleRateLimitOptions.Builder setEnforceOnKeyConfigs​(int index,
                                                                                 SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig.Builder builderForValue)
         If specified, any combination of values of enforce_on_key_type/enforce_on_key_name is treated as the key on which ratelimit threshold/action is enforced. You can specify up to 3 enforce_on_key_configs. If enforce_on_key_configs is specified, enforce_on_key must not be specified.
         
        repeated .google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig enforce_on_key_configs = 33906478;
      • addEnforceOnKeyConfigs

        public SecurityPolicyRuleRateLimitOptions.Builder addEnforceOnKeyConfigs​(SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig value)
         If specified, any combination of values of enforce_on_key_type/enforce_on_key_name is treated as the key on which ratelimit threshold/action is enforced. You can specify up to 3 enforce_on_key_configs. If enforce_on_key_configs is specified, enforce_on_key must not be specified.
         
        repeated .google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig enforce_on_key_configs = 33906478;
      • addEnforceOnKeyConfigs

        public SecurityPolicyRuleRateLimitOptions.Builder addEnforceOnKeyConfigs​(int index,
                                                                                 SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig value)
         If specified, any combination of values of enforce_on_key_type/enforce_on_key_name is treated as the key on which ratelimit threshold/action is enforced. You can specify up to 3 enforce_on_key_configs. If enforce_on_key_configs is specified, enforce_on_key must not be specified.
         
        repeated .google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig enforce_on_key_configs = 33906478;
      • addEnforceOnKeyConfigs

        public SecurityPolicyRuleRateLimitOptions.Builder addEnforceOnKeyConfigs​(SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig.Builder builderForValue)
         If specified, any combination of values of enforce_on_key_type/enforce_on_key_name is treated as the key on which ratelimit threshold/action is enforced. You can specify up to 3 enforce_on_key_configs. If enforce_on_key_configs is specified, enforce_on_key must not be specified.
         
        repeated .google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig enforce_on_key_configs = 33906478;
      • addEnforceOnKeyConfigs

        public SecurityPolicyRuleRateLimitOptions.Builder addEnforceOnKeyConfigs​(int index,
                                                                                 SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig.Builder builderForValue)
         If specified, any combination of values of enforce_on_key_type/enforce_on_key_name is treated as the key on which ratelimit threshold/action is enforced. You can specify up to 3 enforce_on_key_configs. If enforce_on_key_configs is specified, enforce_on_key must not be specified.
         
        repeated .google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig enforce_on_key_configs = 33906478;
      • addAllEnforceOnKeyConfigs

        public SecurityPolicyRuleRateLimitOptions.Builder addAllEnforceOnKeyConfigs​(Iterable<? extends SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig> values)
         If specified, any combination of values of enforce_on_key_type/enforce_on_key_name is treated as the key on which ratelimit threshold/action is enforced. You can specify up to 3 enforce_on_key_configs. If enforce_on_key_configs is specified, enforce_on_key must not be specified.
         
        repeated .google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig enforce_on_key_configs = 33906478;
      • clearEnforceOnKeyConfigs

        public SecurityPolicyRuleRateLimitOptions.Builder clearEnforceOnKeyConfigs()
         If specified, any combination of values of enforce_on_key_type/enforce_on_key_name is treated as the key on which ratelimit threshold/action is enforced. You can specify up to 3 enforce_on_key_configs. If enforce_on_key_configs is specified, enforce_on_key must not be specified.
         
        repeated .google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig enforce_on_key_configs = 33906478;
      • removeEnforceOnKeyConfigs

        public SecurityPolicyRuleRateLimitOptions.Builder removeEnforceOnKeyConfigs​(int index)
         If specified, any combination of values of enforce_on_key_type/enforce_on_key_name is treated as the key on which ratelimit threshold/action is enforced. You can specify up to 3 enforce_on_key_configs. If enforce_on_key_configs is specified, enforce_on_key must not be specified.
         
        repeated .google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig enforce_on_key_configs = 33906478;
      • getEnforceOnKeyConfigsBuilder

        public SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig.Builder getEnforceOnKeyConfigsBuilder​(int index)
         If specified, any combination of values of enforce_on_key_type/enforce_on_key_name is treated as the key on which ratelimit threshold/action is enforced. You can specify up to 3 enforce_on_key_configs. If enforce_on_key_configs is specified, enforce_on_key must not be specified.
         
        repeated .google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig enforce_on_key_configs = 33906478;
      • addEnforceOnKeyConfigsBuilder

        public SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig.Builder addEnforceOnKeyConfigsBuilder()
         If specified, any combination of values of enforce_on_key_type/enforce_on_key_name is treated as the key on which ratelimit threshold/action is enforced. You can specify up to 3 enforce_on_key_configs. If enforce_on_key_configs is specified, enforce_on_key must not be specified.
         
        repeated .google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig enforce_on_key_configs = 33906478;
      • addEnforceOnKeyConfigsBuilder

        public SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig.Builder addEnforceOnKeyConfigsBuilder​(int index)
         If specified, any combination of values of enforce_on_key_type/enforce_on_key_name is treated as the key on which ratelimit threshold/action is enforced. You can specify up to 3 enforce_on_key_configs. If enforce_on_key_configs is specified, enforce_on_key must not be specified.
         
        repeated .google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig enforce_on_key_configs = 33906478;
      • getEnforceOnKeyConfigsBuilderList

        public List<SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig.Builder> getEnforceOnKeyConfigsBuilderList()
         If specified, any combination of values of enforce_on_key_type/enforce_on_key_name is treated as the key on which ratelimit threshold/action is enforced. You can specify up to 3 enforce_on_key_configs. If enforce_on_key_configs is specified, enforce_on_key must not be specified.
         
        repeated .google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig enforce_on_key_configs = 33906478;
      • hasEnforceOnKeyName

        public boolean hasEnforceOnKeyName()
         Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the HTTP header whose value is taken as the key value. HTTP_COOKIE -- Name of the HTTP cookie whose value is taken as the key value.
         
        optional string enforce_on_key_name = 132555246;
        Specified by:
        hasEnforceOnKeyName in interface SecurityPolicyRuleRateLimitOptionsOrBuilder
        Returns:
        Whether the enforceOnKeyName field is set.
      • getEnforceOnKeyName

        public String getEnforceOnKeyName()
         Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the HTTP header whose value is taken as the key value. HTTP_COOKIE -- Name of the HTTP cookie whose value is taken as the key value.
         
        optional string enforce_on_key_name = 132555246;
        Specified by:
        getEnforceOnKeyName in interface SecurityPolicyRuleRateLimitOptionsOrBuilder
        Returns:
        The enforceOnKeyName.
      • getEnforceOnKeyNameBytes

        public com.google.protobuf.ByteString getEnforceOnKeyNameBytes()
         Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the HTTP header whose value is taken as the key value. HTTP_COOKIE -- Name of the HTTP cookie whose value is taken as the key value.
         
        optional string enforce_on_key_name = 132555246;
        Specified by:
        getEnforceOnKeyNameBytes in interface SecurityPolicyRuleRateLimitOptionsOrBuilder
        Returns:
        The bytes for enforceOnKeyName.
      • setEnforceOnKeyName

        public SecurityPolicyRuleRateLimitOptions.Builder setEnforceOnKeyName​(String value)
         Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the HTTP header whose value is taken as the key value. HTTP_COOKIE -- Name of the HTTP cookie whose value is taken as the key value.
         
        optional string enforce_on_key_name = 132555246;
        Parameters:
        value - The enforceOnKeyName to set.
        Returns:
        This builder for chaining.
      • clearEnforceOnKeyName

        public SecurityPolicyRuleRateLimitOptions.Builder clearEnforceOnKeyName()
         Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the HTTP header whose value is taken as the key value. HTTP_COOKIE -- Name of the HTTP cookie whose value is taken as the key value.
         
        optional string enforce_on_key_name = 132555246;
        Returns:
        This builder for chaining.
      • setEnforceOnKeyNameBytes

        public SecurityPolicyRuleRateLimitOptions.Builder setEnforceOnKeyNameBytes​(com.google.protobuf.ByteString value)
         Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the HTTP header whose value is taken as the key value. HTTP_COOKIE -- Name of the HTTP cookie whose value is taken as the key value.
         
        optional string enforce_on_key_name = 132555246;
        Parameters:
        value - The bytes for enforceOnKeyName to set.
        Returns:
        This builder for chaining.
      • hasExceedAction

        public boolean hasExceedAction()
         Action to take for requests that are above the configured rate limit threshold, to either deny with a specified HTTP response code, or redirect to a different endpoint. Valid options are `deny(STATUS)`, where valid values for `STATUS` are 403, 404, 429, and 502, and `redirect`, where the redirect parameters come from `exceedRedirectOptions` below. The `redirect` action is only supported in Global Security Policies of type CLOUD_ARMOR.
         
        optional string exceed_action = 167159073;
        Specified by:
        hasExceedAction in interface SecurityPolicyRuleRateLimitOptionsOrBuilder
        Returns:
        Whether the exceedAction field is set.
      • getExceedAction

        public String getExceedAction()
         Action to take for requests that are above the configured rate limit threshold, to either deny with a specified HTTP response code, or redirect to a different endpoint. Valid options are `deny(STATUS)`, where valid values for `STATUS` are 403, 404, 429, and 502, and `redirect`, where the redirect parameters come from `exceedRedirectOptions` below. The `redirect` action is only supported in Global Security Policies of type CLOUD_ARMOR.
         
        optional string exceed_action = 167159073;
        Specified by:
        getExceedAction in interface SecurityPolicyRuleRateLimitOptionsOrBuilder
        Returns:
        The exceedAction.
      • getExceedActionBytes

        public com.google.protobuf.ByteString getExceedActionBytes()
         Action to take for requests that are above the configured rate limit threshold, to either deny with a specified HTTP response code, or redirect to a different endpoint. Valid options are `deny(STATUS)`, where valid values for `STATUS` are 403, 404, 429, and 502, and `redirect`, where the redirect parameters come from `exceedRedirectOptions` below. The `redirect` action is only supported in Global Security Policies of type CLOUD_ARMOR.
         
        optional string exceed_action = 167159073;
        Specified by:
        getExceedActionBytes in interface SecurityPolicyRuleRateLimitOptionsOrBuilder
        Returns:
        The bytes for exceedAction.
      • setExceedAction

        public SecurityPolicyRuleRateLimitOptions.Builder setExceedAction​(String value)
         Action to take for requests that are above the configured rate limit threshold, to either deny with a specified HTTP response code, or redirect to a different endpoint. Valid options are `deny(STATUS)`, where valid values for `STATUS` are 403, 404, 429, and 502, and `redirect`, where the redirect parameters come from `exceedRedirectOptions` below. The `redirect` action is only supported in Global Security Policies of type CLOUD_ARMOR.
         
        optional string exceed_action = 167159073;
        Parameters:
        value - The exceedAction to set.
        Returns:
        This builder for chaining.
      • clearExceedAction

        public SecurityPolicyRuleRateLimitOptions.Builder clearExceedAction()
         Action to take for requests that are above the configured rate limit threshold, to either deny with a specified HTTP response code, or redirect to a different endpoint. Valid options are `deny(STATUS)`, where valid values for `STATUS` are 403, 404, 429, and 502, and `redirect`, where the redirect parameters come from `exceedRedirectOptions` below. The `redirect` action is only supported in Global Security Policies of type CLOUD_ARMOR.
         
        optional string exceed_action = 167159073;
        Returns:
        This builder for chaining.
      • setExceedActionBytes

        public SecurityPolicyRuleRateLimitOptions.Builder setExceedActionBytes​(com.google.protobuf.ByteString value)
         Action to take for requests that are above the configured rate limit threshold, to either deny with a specified HTTP response code, or redirect to a different endpoint. Valid options are `deny(STATUS)`, where valid values for `STATUS` are 403, 404, 429, and 502, and `redirect`, where the redirect parameters come from `exceedRedirectOptions` below. The `redirect` action is only supported in Global Security Policies of type CLOUD_ARMOR.
         
        optional string exceed_action = 167159073;
        Parameters:
        value - The bytes for exceedAction to set.
        Returns:
        This builder for chaining.
      • hasExceedRedirectOptions

        public boolean hasExceedRedirectOptions()
         Parameters defining the redirect action that is used as the exceed action. Cannot be specified if the exceed action is not redirect. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
         
        optional .google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions exceed_redirect_options = 473646694;
        Specified by:
        hasExceedRedirectOptions in interface SecurityPolicyRuleRateLimitOptionsOrBuilder
        Returns:
        Whether the exceedRedirectOptions field is set.
      • getExceedRedirectOptions

        public SecurityPolicyRuleRedirectOptions getExceedRedirectOptions()
         Parameters defining the redirect action that is used as the exceed action. Cannot be specified if the exceed action is not redirect. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
         
        optional .google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions exceed_redirect_options = 473646694;
        Specified by:
        getExceedRedirectOptions in interface SecurityPolicyRuleRateLimitOptionsOrBuilder
        Returns:
        The exceedRedirectOptions.
      • setExceedRedirectOptions

        public SecurityPolicyRuleRateLimitOptions.Builder setExceedRedirectOptions​(SecurityPolicyRuleRedirectOptions value)
         Parameters defining the redirect action that is used as the exceed action. Cannot be specified if the exceed action is not redirect. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
         
        optional .google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions exceed_redirect_options = 473646694;
      • setExceedRedirectOptions

        public SecurityPolicyRuleRateLimitOptions.Builder setExceedRedirectOptions​(SecurityPolicyRuleRedirectOptions.Builder builderForValue)
         Parameters defining the redirect action that is used as the exceed action. Cannot be specified if the exceed action is not redirect. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
         
        optional .google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions exceed_redirect_options = 473646694;
      • mergeExceedRedirectOptions

        public SecurityPolicyRuleRateLimitOptions.Builder mergeExceedRedirectOptions​(SecurityPolicyRuleRedirectOptions value)
         Parameters defining the redirect action that is used as the exceed action. Cannot be specified if the exceed action is not redirect. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
         
        optional .google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions exceed_redirect_options = 473646694;
      • clearExceedRedirectOptions

        public SecurityPolicyRuleRateLimitOptions.Builder clearExceedRedirectOptions()
         Parameters defining the redirect action that is used as the exceed action. Cannot be specified if the exceed action is not redirect. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
         
        optional .google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions exceed_redirect_options = 473646694;
      • getExceedRedirectOptionsBuilder

        public SecurityPolicyRuleRedirectOptions.Builder getExceedRedirectOptionsBuilder()
         Parameters defining the redirect action that is used as the exceed action. Cannot be specified if the exceed action is not redirect. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
         
        optional .google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions exceed_redirect_options = 473646694;
      • hasRateLimitThreshold

        public boolean hasRateLimitThreshold()
         Threshold at which to begin ratelimiting.
         
        optional .google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold rate_limit_threshold = 315875208;
        Specified by:
        hasRateLimitThreshold in interface SecurityPolicyRuleRateLimitOptionsOrBuilder
        Returns:
        Whether the rateLimitThreshold field is set.
      • clearRateLimitThreshold

        public SecurityPolicyRuleRateLimitOptions.Builder clearRateLimitThreshold()
         Threshold at which to begin ratelimiting.
         
        optional .google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold rate_limit_threshold = 315875208;
      • getRateLimitThresholdBuilder

        public SecurityPolicyRuleRateLimitOptionsThreshold.Builder getRateLimitThresholdBuilder()
         Threshold at which to begin ratelimiting.
         
        optional .google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold rate_limit_threshold = 315875208;