Package com.google.cloud.compute.v1
Class SecurityPolicyRuleRateLimitOptions.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<SecurityPolicyRuleRateLimitOptions.Builder>
-
- com.google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions.Builder
-
- All Implemented Interfaces:
SecurityPolicyRuleRateLimitOptionsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SecurityPolicyRuleRateLimitOptions
public static final class SecurityPolicyRuleRateLimitOptions.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SecurityPolicyRuleRateLimitOptions.Builder> implements SecurityPolicyRuleRateLimitOptionsOrBuilder
Protobuf typegoogle.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SecurityPolicyRuleRateLimitOptions.BuilderaddAllEnforceOnKeyConfigs(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.SecurityPolicyRuleRateLimitOptions.BuilderaddEnforceOnKeyConfigs(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.SecurityPolicyRuleRateLimitOptions.BuilderaddEnforceOnKeyConfigs(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.SecurityPolicyRuleRateLimitOptions.BuilderaddEnforceOnKeyConfigs(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.SecurityPolicyRuleRateLimitOptions.BuilderaddEnforceOnKeyConfigs(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.SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig.BuilderaddEnforceOnKeyConfigsBuilder()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.SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig.BuilderaddEnforceOnKeyConfigsBuilder(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.SecurityPolicyRuleRateLimitOptions.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)SecurityPolicyRuleRateLimitOptionsbuild()SecurityPolicyRuleRateLimitOptionsbuildPartial()SecurityPolicyRuleRateLimitOptions.Builderclear()SecurityPolicyRuleRateLimitOptions.BuilderclearBanDurationSec()Can only be specified if the action for the rule is "rate_based_ban".SecurityPolicyRuleRateLimitOptions.BuilderclearBanThreshold()Can only be specified if the action for the rule is "rate_based_ban".SecurityPolicyRuleRateLimitOptions.BuilderclearConformAction()Action to take for requests that are under the configured rate limit threshold.SecurityPolicyRuleRateLimitOptions.BuilderclearEnforceOnKey()Determines the key to enforce the rate_limit_threshold on.SecurityPolicyRuleRateLimitOptions.BuilderclearEnforceOnKeyConfigs()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.SecurityPolicyRuleRateLimitOptions.BuilderclearEnforceOnKeyName()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.SecurityPolicyRuleRateLimitOptions.BuilderclearExceedAction()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.SecurityPolicyRuleRateLimitOptions.BuilderclearExceedRedirectOptions()Parameters defining the redirect action that is used as the exceed action.SecurityPolicyRuleRateLimitOptions.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)SecurityPolicyRuleRateLimitOptions.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)SecurityPolicyRuleRateLimitOptions.BuilderclearRateLimitThreshold()Threshold at which to begin ratelimiting.SecurityPolicyRuleRateLimitOptions.Builderclone()intgetBanDurationSec()Can only be specified if the action for the rule is "rate_based_ban".SecurityPolicyRuleRateLimitOptionsThresholdgetBanThreshold()Can only be specified if the action for the rule is "rate_based_ban".SecurityPolicyRuleRateLimitOptionsThreshold.BuildergetBanThresholdBuilder()Can only be specified if the action for the rule is "rate_based_ban".SecurityPolicyRuleRateLimitOptionsThresholdOrBuildergetBanThresholdOrBuilder()Can only be specified if the action for the rule is "rate_based_ban".StringgetConformAction()Action to take for requests that are under the configured rate limit threshold.com.google.protobuf.ByteStringgetConformActionBytes()Action to take for requests that are under the configured rate limit threshold.SecurityPolicyRuleRateLimitOptionsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetEnforceOnKey()Determines the key to enforce the rate_limit_threshold on.com.google.protobuf.ByteStringgetEnforceOnKeyBytes()Determines the key to enforce the rate_limit_threshold on.SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfiggetEnforceOnKeyConfigs(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.SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig.BuildergetEnforceOnKeyConfigsBuilder(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.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.intgetEnforceOnKeyConfigsCount()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.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.SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfigOrBuildergetEnforceOnKeyConfigsOrBuilder(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.List<? extends SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfigOrBuilder>getEnforceOnKeyConfigsOrBuilderList()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.StringgetEnforceOnKeyName()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.com.google.protobuf.ByteStringgetEnforceOnKeyNameBytes()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.StringgetExceedAction()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.com.google.protobuf.ByteStringgetExceedActionBytes()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.SecurityPolicyRuleRedirectOptionsgetExceedRedirectOptions()Parameters defining the redirect action that is used as the exceed action.SecurityPolicyRuleRedirectOptions.BuildergetExceedRedirectOptionsBuilder()Parameters defining the redirect action that is used as the exceed action.SecurityPolicyRuleRedirectOptionsOrBuildergetExceedRedirectOptionsOrBuilder()Parameters defining the redirect action that is used as the exceed action.SecurityPolicyRuleRateLimitOptionsThresholdgetRateLimitThreshold()Threshold at which to begin ratelimiting.SecurityPolicyRuleRateLimitOptionsThreshold.BuildergetRateLimitThresholdBuilder()Threshold at which to begin ratelimiting.SecurityPolicyRuleRateLimitOptionsThresholdOrBuildergetRateLimitThresholdOrBuilder()Threshold at which to begin ratelimiting.booleanhasBanDurationSec()Can only be specified if the action for the rule is "rate_based_ban".booleanhasBanThreshold()Can only be specified if the action for the rule is "rate_based_ban".booleanhasConformAction()Action to take for requests that are under the configured rate limit threshold.booleanhasEnforceOnKey()Determines the key to enforce the rate_limit_threshold on.booleanhasEnforceOnKeyName()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.booleanhasExceedAction()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.booleanhasExceedRedirectOptions()Parameters defining the redirect action that is used as the exceed action.booleanhasRateLimitThreshold()Threshold at which to begin ratelimiting.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()SecurityPolicyRuleRateLimitOptions.BuildermergeBanThreshold(SecurityPolicyRuleRateLimitOptionsThreshold value)Can only be specified if the action for the rule is "rate_based_ban".SecurityPolicyRuleRateLimitOptions.BuildermergeExceedRedirectOptions(SecurityPolicyRuleRedirectOptions value)Parameters defining the redirect action that is used as the exceed action.SecurityPolicyRuleRateLimitOptions.BuildermergeFrom(SecurityPolicyRuleRateLimitOptions other)SecurityPolicyRuleRateLimitOptions.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)SecurityPolicyRuleRateLimitOptions.BuildermergeFrom(com.google.protobuf.Message other)SecurityPolicyRuleRateLimitOptions.BuildermergeRateLimitThreshold(SecurityPolicyRuleRateLimitOptionsThreshold value)Threshold at which to begin ratelimiting.SecurityPolicyRuleRateLimitOptions.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)SecurityPolicyRuleRateLimitOptions.BuilderremoveEnforceOnKeyConfigs(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.SecurityPolicyRuleRateLimitOptions.BuildersetBanDurationSec(int value)Can only be specified if the action for the rule is "rate_based_ban".SecurityPolicyRuleRateLimitOptions.BuildersetBanThreshold(SecurityPolicyRuleRateLimitOptionsThreshold value)Can only be specified if the action for the rule is "rate_based_ban".SecurityPolicyRuleRateLimitOptions.BuildersetBanThreshold(SecurityPolicyRuleRateLimitOptionsThreshold.Builder builderForValue)Can only be specified if the action for the rule is "rate_based_ban".SecurityPolicyRuleRateLimitOptions.BuildersetConformAction(String value)Action to take for requests that are under the configured rate limit threshold.SecurityPolicyRuleRateLimitOptions.BuildersetConformActionBytes(com.google.protobuf.ByteString value)Action to take for requests that are under the configured rate limit threshold.SecurityPolicyRuleRateLimitOptions.BuildersetEnforceOnKey(String value)Determines the key to enforce the rate_limit_threshold on.SecurityPolicyRuleRateLimitOptions.BuildersetEnforceOnKeyBytes(com.google.protobuf.ByteString value)Determines the key to enforce the rate_limit_threshold on.SecurityPolicyRuleRateLimitOptions.BuildersetEnforceOnKeyConfigs(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.SecurityPolicyRuleRateLimitOptions.BuildersetEnforceOnKeyConfigs(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.SecurityPolicyRuleRateLimitOptions.BuildersetEnforceOnKeyName(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.SecurityPolicyRuleRateLimitOptions.BuildersetEnforceOnKeyNameBytes(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.SecurityPolicyRuleRateLimitOptions.BuildersetExceedAction(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.SecurityPolicyRuleRateLimitOptions.BuildersetExceedActionBytes(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.SecurityPolicyRuleRateLimitOptions.BuildersetExceedRedirectOptions(SecurityPolicyRuleRedirectOptions value)Parameters defining the redirect action that is used as the exceed action.SecurityPolicyRuleRateLimitOptions.BuildersetExceedRedirectOptions(SecurityPolicyRuleRedirectOptions.Builder builderForValue)Parameters defining the redirect action that is used as the exceed action.SecurityPolicyRuleRateLimitOptions.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)SecurityPolicyRuleRateLimitOptions.BuildersetRateLimitThreshold(SecurityPolicyRuleRateLimitOptionsThreshold value)Threshold at which to begin ratelimiting.SecurityPolicyRuleRateLimitOptions.BuildersetRateLimitThreshold(SecurityPolicyRuleRateLimitOptionsThreshold.Builder builderForValue)Threshold at which to begin ratelimiting.SecurityPolicyRuleRateLimitOptions.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)SecurityPolicyRuleRateLimitOptions.BuildersetUnknownFields(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, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
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<SecurityPolicyRuleRateLimitOptions.Builder>
-
clear
public SecurityPolicyRuleRateLimitOptions.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<SecurityPolicyRuleRateLimitOptions.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<SecurityPolicyRuleRateLimitOptions.Builder>
-
getDefaultInstanceForType
public SecurityPolicyRuleRateLimitOptions getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public SecurityPolicyRuleRateLimitOptions build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SecurityPolicyRuleRateLimitOptions buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SecurityPolicyRuleRateLimitOptions.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<SecurityPolicyRuleRateLimitOptions.Builder>
-
setField
public SecurityPolicyRuleRateLimitOptions.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<SecurityPolicyRuleRateLimitOptions.Builder>
-
clearField
public SecurityPolicyRuleRateLimitOptions.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SecurityPolicyRuleRateLimitOptions.Builder>
-
clearOneof
public SecurityPolicyRuleRateLimitOptions.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<SecurityPolicyRuleRateLimitOptions.Builder>
-
setRepeatedField
public SecurityPolicyRuleRateLimitOptions.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<SecurityPolicyRuleRateLimitOptions.Builder>
-
addRepeatedField
public SecurityPolicyRuleRateLimitOptions.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<SecurityPolicyRuleRateLimitOptions.Builder>
-
mergeFrom
public SecurityPolicyRuleRateLimitOptions.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SecurityPolicyRuleRateLimitOptions.Builder>
-
mergeFrom
public SecurityPolicyRuleRateLimitOptions.Builder mergeFrom(SecurityPolicyRuleRateLimitOptions other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<SecurityPolicyRuleRateLimitOptions.Builder>
-
mergeFrom
public SecurityPolicyRuleRateLimitOptions.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<SecurityPolicyRuleRateLimitOptions.Builder>- Throws:
IOException
-
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:
hasBanDurationSecin interfaceSecurityPolicyRuleRateLimitOptionsOrBuilder- 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:
getBanDurationSecin interfaceSecurityPolicyRuleRateLimitOptionsOrBuilder- 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:
hasBanThresholdin interfaceSecurityPolicyRuleRateLimitOptionsOrBuilder- 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:
getBanThresholdin interfaceSecurityPolicyRuleRateLimitOptionsOrBuilder- 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;
-
getBanThresholdOrBuilder
public SecurityPolicyRuleRateLimitOptionsThresholdOrBuilder getBanThresholdOrBuilder()
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:
getBanThresholdOrBuilderin interfaceSecurityPolicyRuleRateLimitOptionsOrBuilder
-
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:
hasConformActionin interfaceSecurityPolicyRuleRateLimitOptionsOrBuilder- 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:
getConformActionin interfaceSecurityPolicyRuleRateLimitOptionsOrBuilder- 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:
getConformActionBytesin interfaceSecurityPolicyRuleRateLimitOptionsOrBuilder- 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:
hasEnforceOnKeyin interfaceSecurityPolicyRuleRateLimitOptionsOrBuilder- 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:
getEnforceOnKeyin interfaceSecurityPolicyRuleRateLimitOptionsOrBuilder- 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:
getEnforceOnKeyBytesin interfaceSecurityPolicyRuleRateLimitOptionsOrBuilder- 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:
getEnforceOnKeyConfigsListin interfaceSecurityPolicyRuleRateLimitOptionsOrBuilder
-
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:
getEnforceOnKeyConfigsCountin interfaceSecurityPolicyRuleRateLimitOptionsOrBuilder
-
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:
getEnforceOnKeyConfigsin interfaceSecurityPolicyRuleRateLimitOptionsOrBuilder
-
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;
-
getEnforceOnKeyConfigsOrBuilder
public SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfigOrBuilder getEnforceOnKeyConfigsOrBuilder(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:
getEnforceOnKeyConfigsOrBuilderin interfaceSecurityPolicyRuleRateLimitOptionsOrBuilder
-
getEnforceOnKeyConfigsOrBuilderList
public List<? extends SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfigOrBuilder> getEnforceOnKeyConfigsOrBuilderList()
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:
getEnforceOnKeyConfigsOrBuilderListin interfaceSecurityPolicyRuleRateLimitOptionsOrBuilder
-
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:
hasEnforceOnKeyNamein interfaceSecurityPolicyRuleRateLimitOptionsOrBuilder- 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:
getEnforceOnKeyNamein interfaceSecurityPolicyRuleRateLimitOptionsOrBuilder- 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:
getEnforceOnKeyNameBytesin interfaceSecurityPolicyRuleRateLimitOptionsOrBuilder- 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:
hasExceedActionin interfaceSecurityPolicyRuleRateLimitOptionsOrBuilder- 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:
getExceedActionin interfaceSecurityPolicyRuleRateLimitOptionsOrBuilder- 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:
getExceedActionBytesin interfaceSecurityPolicyRuleRateLimitOptionsOrBuilder- 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:
hasExceedRedirectOptionsin interfaceSecurityPolicyRuleRateLimitOptionsOrBuilder- 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:
getExceedRedirectOptionsin interfaceSecurityPolicyRuleRateLimitOptionsOrBuilder- 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;
-
getExceedRedirectOptionsOrBuilder
public SecurityPolicyRuleRedirectOptionsOrBuilder getExceedRedirectOptionsOrBuilder()
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:
getExceedRedirectOptionsOrBuilderin interfaceSecurityPolicyRuleRateLimitOptionsOrBuilder
-
hasRateLimitThreshold
public boolean hasRateLimitThreshold()
Threshold at which to begin ratelimiting.
optional .google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold rate_limit_threshold = 315875208;- Specified by:
hasRateLimitThresholdin interfaceSecurityPolicyRuleRateLimitOptionsOrBuilder- Returns:
- Whether the rateLimitThreshold field is set.
-
getRateLimitThreshold
public SecurityPolicyRuleRateLimitOptionsThreshold getRateLimitThreshold()
Threshold at which to begin ratelimiting.
optional .google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold rate_limit_threshold = 315875208;- Specified by:
getRateLimitThresholdin interfaceSecurityPolicyRuleRateLimitOptionsOrBuilder- Returns:
- The rateLimitThreshold.
-
setRateLimitThreshold
public SecurityPolicyRuleRateLimitOptions.Builder setRateLimitThreshold(SecurityPolicyRuleRateLimitOptionsThreshold value)
Threshold at which to begin ratelimiting.
optional .google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold rate_limit_threshold = 315875208;
-
setRateLimitThreshold
public SecurityPolicyRuleRateLimitOptions.Builder setRateLimitThreshold(SecurityPolicyRuleRateLimitOptionsThreshold.Builder builderForValue)
Threshold at which to begin ratelimiting.
optional .google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold rate_limit_threshold = 315875208;
-
mergeRateLimitThreshold
public SecurityPolicyRuleRateLimitOptions.Builder mergeRateLimitThreshold(SecurityPolicyRuleRateLimitOptionsThreshold value)
Threshold at which to begin ratelimiting.
optional .google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold rate_limit_threshold = 315875208;
-
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;
-
getRateLimitThresholdOrBuilder
public SecurityPolicyRuleRateLimitOptionsThresholdOrBuilder getRateLimitThresholdOrBuilder()
Threshold at which to begin ratelimiting.
optional .google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold rate_limit_threshold = 315875208;- Specified by:
getRateLimitThresholdOrBuilderin interfaceSecurityPolicyRuleRateLimitOptionsOrBuilder
-
setUnknownFields
public final SecurityPolicyRuleRateLimitOptions.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SecurityPolicyRuleRateLimitOptions.Builder>
-
mergeUnknownFields
public final SecurityPolicyRuleRateLimitOptions.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SecurityPolicyRuleRateLimitOptions.Builder>
-
-