public static final class SecurityPolicyRuleRateLimitOptions.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SecurityPolicyRuleRateLimitOptions.Builder> implements SecurityPolicyRuleRateLimitOptionsOrBuilder
Protobuf type
google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions| Modifier and Type | Method and Description |
|---|---|
SecurityPolicyRuleRateLimitOptions.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SecurityPolicyRuleRateLimitOptions |
build() |
SecurityPolicyRuleRateLimitOptions |
buildPartial() |
SecurityPolicyRuleRateLimitOptions.Builder |
clear() |
SecurityPolicyRuleRateLimitOptions.Builder |
clearBanDurationSec()
Can only be specified if the action for the rule is "rate_based_ban".
|
SecurityPolicyRuleRateLimitOptions.Builder |
clearBanThreshold()
Can only be specified if the action for the rule is "rate_based_ban".
|
SecurityPolicyRuleRateLimitOptions.Builder |
clearConformAction()
Action to take for requests that are under the configured rate limit threshold.
|
SecurityPolicyRuleRateLimitOptions.Builder |
clearEnforceOnKey()
Determines the key to enforce the rate_limit_threshold on.
|
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.
|
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.
|
SecurityPolicyRuleRateLimitOptions.Builder |
clearExceedRedirectOptions()
Parameters defining the redirect action that is used as the exceed action.
|
SecurityPolicyRuleRateLimitOptions.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
SecurityPolicyRuleRateLimitOptions.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
SecurityPolicyRuleRateLimitOptions.Builder |
clearRateLimitThreshold()
Threshold at which to begin ratelimiting.
|
SecurityPolicyRuleRateLimitOptions.Builder |
clone() |
int |
getBanDurationSec()
Can only be specified if the action for the rule is "rate_based_ban".
|
SecurityPolicyRuleRateLimitOptionsThreshold |
getBanThreshold()
Can only be specified if the action for the rule is "rate_based_ban".
|
SecurityPolicyRuleRateLimitOptionsThreshold.Builder |
getBanThresholdBuilder()
Can only be specified if the action for the rule is "rate_based_ban".
|
SecurityPolicyRuleRateLimitOptionsThresholdOrBuilder |
getBanThresholdOrBuilder()
Can only be specified if the action for the rule is "rate_based_ban".
|
String |
getConformAction()
Action to take for requests that are under the configured rate limit threshold.
|
com.google.protobuf.ByteString |
getConformActionBytes()
Action to take for requests that are under the configured rate limit threshold.
|
SecurityPolicyRuleRateLimitOptions |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getEnforceOnKey()
Determines the key to enforce the rate_limit_threshold on.
|
com.google.protobuf.ByteString |
getEnforceOnKeyBytes()
Determines the key to enforce the rate_limit_threshold on.
|
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.
|
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.
|
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.
|
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.
|
SecurityPolicyRuleRedirectOptions |
getExceedRedirectOptions()
Parameters defining the redirect action that is used as the exceed action.
|
SecurityPolicyRuleRedirectOptions.Builder |
getExceedRedirectOptionsBuilder()
Parameters defining the redirect action that is used as the exceed action.
|
SecurityPolicyRuleRedirectOptionsOrBuilder |
getExceedRedirectOptionsOrBuilder()
Parameters defining the redirect action that is used as the exceed action.
|
SecurityPolicyRuleRateLimitOptionsThreshold |
getRateLimitThreshold()
Threshold at which to begin ratelimiting.
|
SecurityPolicyRuleRateLimitOptionsThreshold.Builder |
getRateLimitThresholdBuilder()
Threshold at which to begin ratelimiting.
|
SecurityPolicyRuleRateLimitOptionsThresholdOrBuilder |
getRateLimitThresholdOrBuilder()
Threshold at which to begin ratelimiting.
|
boolean |
hasBanDurationSec()
Can only be specified if the action for the rule is "rate_based_ban".
|
boolean |
hasBanThreshold()
Can only be specified if the action for the rule is "rate_based_ban".
|
boolean |
hasConformAction()
Action to take for requests that are under the configured rate limit threshold.
|
boolean |
hasEnforceOnKey()
Determines the key to enforce the rate_limit_threshold on.
|
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.
|
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.
|
boolean |
hasExceedRedirectOptions()
Parameters defining the redirect action that is used as the exceed action.
|
boolean |
hasRateLimitThreshold()
Threshold at which to begin ratelimiting.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
SecurityPolicyRuleRateLimitOptions.Builder |
mergeBanThreshold(SecurityPolicyRuleRateLimitOptionsThreshold value)
Can only be specified if the action for the rule is "rate_based_ban".
|
SecurityPolicyRuleRateLimitOptions.Builder |
mergeExceedRedirectOptions(SecurityPolicyRuleRedirectOptions value)
Parameters defining the redirect action that is used as the exceed action.
|
SecurityPolicyRuleRateLimitOptions.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SecurityPolicyRuleRateLimitOptions.Builder |
mergeFrom(com.google.protobuf.Message other) |
SecurityPolicyRuleRateLimitOptions.Builder |
mergeFrom(SecurityPolicyRuleRateLimitOptions other) |
SecurityPolicyRuleRateLimitOptions.Builder |
mergeRateLimitThreshold(SecurityPolicyRuleRateLimitOptionsThreshold value)
Threshold at which to begin ratelimiting.
|
SecurityPolicyRuleRateLimitOptions.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
SecurityPolicyRuleRateLimitOptions.Builder |
setBanDurationSec(int value)
Can only be specified if the action for the rule is "rate_based_ban".
|
SecurityPolicyRuleRateLimitOptions.Builder |
setBanThreshold(SecurityPolicyRuleRateLimitOptionsThreshold.Builder builderForValue)
Can only be specified if the action for the rule is "rate_based_ban".
|
SecurityPolicyRuleRateLimitOptions.Builder |
setBanThreshold(SecurityPolicyRuleRateLimitOptionsThreshold value)
Can only be specified if the action for the rule is "rate_based_ban".
|
SecurityPolicyRuleRateLimitOptions.Builder |
setConformAction(String value)
Action to take for requests that are under the configured rate limit threshold.
|
SecurityPolicyRuleRateLimitOptions.Builder |
setConformActionBytes(com.google.protobuf.ByteString value)
Action to take for requests that are under the configured rate limit threshold.
|
SecurityPolicyRuleRateLimitOptions.Builder |
setEnforceOnKey(String value)
Determines the key to enforce the rate_limit_threshold on.
|
SecurityPolicyRuleRateLimitOptions.Builder |
setEnforceOnKeyBytes(com.google.protobuf.ByteString value)
Determines the key to enforce the rate_limit_threshold on.
|
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.
|
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.
|
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.
|
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.
|
SecurityPolicyRuleRateLimitOptions.Builder |
setExceedRedirectOptions(SecurityPolicyRuleRedirectOptions.Builder builderForValue)
Parameters defining the redirect action that is used as the exceed action.
|
SecurityPolicyRuleRateLimitOptions.Builder |
setExceedRedirectOptions(SecurityPolicyRuleRedirectOptions value)
Parameters defining the redirect action that is used as the exceed action.
|
SecurityPolicyRuleRateLimitOptions.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SecurityPolicyRuleRateLimitOptions.Builder |
setRateLimitThreshold(SecurityPolicyRuleRateLimitOptionsThreshold.Builder builderForValue)
Threshold at which to begin ratelimiting.
|
SecurityPolicyRuleRateLimitOptions.Builder |
setRateLimitThreshold(SecurityPolicyRuleRateLimitOptionsThreshold value)
Threshold at which to begin ratelimiting.
|
SecurityPolicyRuleRateLimitOptions.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
SecurityPolicyRuleRateLimitOptions.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<SecurityPolicyRuleRateLimitOptions.Builder>public SecurityPolicyRuleRateLimitOptions.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<SecurityPolicyRuleRateLimitOptions.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<SecurityPolicyRuleRateLimitOptions.Builder>public SecurityPolicyRuleRateLimitOptions getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic SecurityPolicyRuleRateLimitOptions build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic SecurityPolicyRuleRateLimitOptions buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic SecurityPolicyRuleRateLimitOptions.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<SecurityPolicyRuleRateLimitOptions.Builder>public SecurityPolicyRuleRateLimitOptions.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<SecurityPolicyRuleRateLimitOptions.Builder>public SecurityPolicyRuleRateLimitOptions.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<SecurityPolicyRuleRateLimitOptions.Builder>public SecurityPolicyRuleRateLimitOptions.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SecurityPolicyRuleRateLimitOptions.Builder>public SecurityPolicyRuleRateLimitOptions.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SecurityPolicyRuleRateLimitOptions.Builder>public SecurityPolicyRuleRateLimitOptions.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SecurityPolicyRuleRateLimitOptions.Builder>public SecurityPolicyRuleRateLimitOptions.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SecurityPolicyRuleRateLimitOptions.Builder>public SecurityPolicyRuleRateLimitOptions.Builder mergeFrom(SecurityPolicyRuleRateLimitOptions other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SecurityPolicyRuleRateLimitOptions.Builder>public SecurityPolicyRuleRateLimitOptions.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SecurityPolicyRuleRateLimitOptions.Builder>IOExceptionpublic 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;hasBanDurationSec in interface SecurityPolicyRuleRateLimitOptionsOrBuilderpublic 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;getBanDurationSec in interface SecurityPolicyRuleRateLimitOptionsOrBuilderpublic 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;value - The banDurationSec to set.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;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;
hasBanThreshold in interface SecurityPolicyRuleRateLimitOptionsOrBuilderpublic 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;
getBanThreshold in interface SecurityPolicyRuleRateLimitOptionsOrBuilderpublic 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;
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;
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;
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;
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;
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;
getBanThresholdOrBuilder in interface SecurityPolicyRuleRateLimitOptionsOrBuilderpublic 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;hasConformAction in interface SecurityPolicyRuleRateLimitOptionsOrBuilderpublic 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;getConformAction in interface SecurityPolicyRuleRateLimitOptionsOrBuilderpublic 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;getConformActionBytes in interface SecurityPolicyRuleRateLimitOptionsOrBuilderpublic 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;value - The conformAction to set.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;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;value - The bytes for conformAction to set.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;hasEnforceOnKey in interface SecurityPolicyRuleRateLimitOptionsOrBuilderpublic 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;getEnforceOnKey in interface SecurityPolicyRuleRateLimitOptionsOrBuilderpublic 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;getEnforceOnKeyBytes in interface SecurityPolicyRuleRateLimitOptionsOrBuilderpublic 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;value - The enforceOnKey to set.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;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;value - The bytes for enforceOnKey to set.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;hasEnforceOnKeyName in interface SecurityPolicyRuleRateLimitOptionsOrBuilderpublic 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;getEnforceOnKeyName in interface SecurityPolicyRuleRateLimitOptionsOrBuilderpublic 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;getEnforceOnKeyNameBytes in interface SecurityPolicyRuleRateLimitOptionsOrBuilderpublic 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;value - The enforceOnKeyName to set.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;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;value - The bytes for enforceOnKeyName to set.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.
optional string exceed_action = 167159073;hasExceedAction in interface SecurityPolicyRuleRateLimitOptionsOrBuilderpublic 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.
optional string exceed_action = 167159073;getExceedAction in interface SecurityPolicyRuleRateLimitOptionsOrBuilderpublic 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.
optional string exceed_action = 167159073;getExceedActionBytes in interface SecurityPolicyRuleRateLimitOptionsOrBuilderpublic 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.
optional string exceed_action = 167159073;value - The exceedAction to set.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.
optional string exceed_action = 167159073;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.
optional string exceed_action = 167159073;value - The bytes for exceedAction to set.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.
optional .google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions exceed_redirect_options = 473646694;
hasExceedRedirectOptions in interface SecurityPolicyRuleRateLimitOptionsOrBuilderpublic SecurityPolicyRuleRedirectOptions getExceedRedirectOptions()
Parameters defining the redirect action that is used as the exceed action. Cannot be specified if the exceed action is not redirect.
optional .google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions exceed_redirect_options = 473646694;
getExceedRedirectOptions in interface SecurityPolicyRuleRateLimitOptionsOrBuilderpublic 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.
optional .google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions exceed_redirect_options = 473646694;
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.
optional .google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions exceed_redirect_options = 473646694;
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.
optional .google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions exceed_redirect_options = 473646694;
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.
optional .google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions exceed_redirect_options = 473646694;
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.
optional .google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions exceed_redirect_options = 473646694;
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.
optional .google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions exceed_redirect_options = 473646694;
getExceedRedirectOptionsOrBuilder in interface SecurityPolicyRuleRateLimitOptionsOrBuilderpublic boolean hasRateLimitThreshold()
Threshold at which to begin ratelimiting.
optional .google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold rate_limit_threshold = 315875208;
hasRateLimitThreshold in interface SecurityPolicyRuleRateLimitOptionsOrBuilderpublic SecurityPolicyRuleRateLimitOptionsThreshold getRateLimitThreshold()
Threshold at which to begin ratelimiting.
optional .google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold rate_limit_threshold = 315875208;
getRateLimitThreshold in interface SecurityPolicyRuleRateLimitOptionsOrBuilderpublic SecurityPolicyRuleRateLimitOptions.Builder setRateLimitThreshold(SecurityPolicyRuleRateLimitOptionsThreshold value)
Threshold at which to begin ratelimiting.
optional .google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold rate_limit_threshold = 315875208;
public SecurityPolicyRuleRateLimitOptions.Builder setRateLimitThreshold(SecurityPolicyRuleRateLimitOptionsThreshold.Builder builderForValue)
Threshold at which to begin ratelimiting.
optional .google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold rate_limit_threshold = 315875208;
public SecurityPolicyRuleRateLimitOptions.Builder mergeRateLimitThreshold(SecurityPolicyRuleRateLimitOptionsThreshold value)
Threshold at which to begin ratelimiting.
optional .google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold rate_limit_threshold = 315875208;
public SecurityPolicyRuleRateLimitOptions.Builder clearRateLimitThreshold()
Threshold at which to begin ratelimiting.
optional .google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold rate_limit_threshold = 315875208;
public SecurityPolicyRuleRateLimitOptionsThreshold.Builder getRateLimitThresholdBuilder()
Threshold at which to begin ratelimiting.
optional .google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold rate_limit_threshold = 315875208;
public SecurityPolicyRuleRateLimitOptionsThresholdOrBuilder getRateLimitThresholdOrBuilder()
Threshold at which to begin ratelimiting.
optional .google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold rate_limit_threshold = 315875208;
getRateLimitThresholdOrBuilder in interface SecurityPolicyRuleRateLimitOptionsOrBuilderpublic final SecurityPolicyRuleRateLimitOptions.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SecurityPolicyRuleRateLimitOptions.Builder>public final SecurityPolicyRuleRateLimitOptions.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SecurityPolicyRuleRateLimitOptions.Builder>Copyright © 2023 Google LLC. All rights reserved.