Package com.google.cloud.compute.v1
Class SecurityPolicyRule.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<SecurityPolicyRule.Builder>
-
- com.google.cloud.compute.v1.SecurityPolicyRule.Builder
-
- All Implemented Interfaces:
SecurityPolicyRuleOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SecurityPolicyRule
public static final class SecurityPolicyRule.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SecurityPolicyRule.Builder> implements SecurityPolicyRuleOrBuilder
Represents a rule that describes one or more match conditions along with the action to be taken when traffic matches this condition (allow or deny).
Protobuf typegoogle.cloud.compute.v1.SecurityPolicyRule
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SecurityPolicyRule.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)SecurityPolicyRulebuild()SecurityPolicyRulebuildPartial()SecurityPolicyRule.Builderclear()SecurityPolicyRule.BuilderclearAction()The Action to perform when the rule is matched.SecurityPolicyRule.BuilderclearDescription()An optional description of this resource.SecurityPolicyRule.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)SecurityPolicyRule.BuilderclearHeaderAction()Optional, additional actions that are performed on headers.SecurityPolicyRule.BuilderclearKind()[Output only] Type of the resource.SecurityPolicyRule.BuilderclearMatch()A match condition that incoming traffic is evaluated against.SecurityPolicyRule.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)SecurityPolicyRule.BuilderclearPreconfiguredWafConfig()Preconfigured WAF configuration to be applied for the rule.SecurityPolicyRule.BuilderclearPreview()If set to true, the specified action is not enforced.SecurityPolicyRule.BuilderclearPriority()An integer indicating the priority of a rule in the list.SecurityPolicyRule.BuilderclearRateLimitOptions()Must be specified if the action is "rate_based_ban" or "throttle".SecurityPolicyRule.BuilderclearRedirectOptions()Parameters defining the redirect action.SecurityPolicyRule.Builderclone()StringgetAction()The Action to perform when the rule is matched.com.google.protobuf.ByteStringgetActionBytes()The Action to perform when the rule is matched.SecurityPolicyRulegetDefaultInstanceForType()StringgetDescription()An optional description of this resource.com.google.protobuf.ByteStringgetDescriptionBytes()An optional description of this resource.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()SecurityPolicyRuleHttpHeaderActiongetHeaderAction()Optional, additional actions that are performed on headers.SecurityPolicyRuleHttpHeaderAction.BuildergetHeaderActionBuilder()Optional, additional actions that are performed on headers.SecurityPolicyRuleHttpHeaderActionOrBuildergetHeaderActionOrBuilder()Optional, additional actions that are performed on headers.StringgetKind()[Output only] Type of the resource.com.google.protobuf.ByteStringgetKindBytes()[Output only] Type of the resource.SecurityPolicyRuleMatchergetMatch()A match condition that incoming traffic is evaluated against.SecurityPolicyRuleMatcher.BuildergetMatchBuilder()A match condition that incoming traffic is evaluated against.SecurityPolicyRuleMatcherOrBuildergetMatchOrBuilder()A match condition that incoming traffic is evaluated against.SecurityPolicyRulePreconfiguredWafConfiggetPreconfiguredWafConfig()Preconfigured WAF configuration to be applied for the rule.SecurityPolicyRulePreconfiguredWafConfig.BuildergetPreconfiguredWafConfigBuilder()Preconfigured WAF configuration to be applied for the rule.SecurityPolicyRulePreconfiguredWafConfigOrBuildergetPreconfiguredWafConfigOrBuilder()Preconfigured WAF configuration to be applied for the rule.booleangetPreview()If set to true, the specified action is not enforced.intgetPriority()An integer indicating the priority of a rule in the list.SecurityPolicyRuleRateLimitOptionsgetRateLimitOptions()Must be specified if the action is "rate_based_ban" or "throttle".SecurityPolicyRuleRateLimitOptions.BuildergetRateLimitOptionsBuilder()Must be specified if the action is "rate_based_ban" or "throttle".SecurityPolicyRuleRateLimitOptionsOrBuildergetRateLimitOptionsOrBuilder()Must be specified if the action is "rate_based_ban" or "throttle".SecurityPolicyRuleRedirectOptionsgetRedirectOptions()Parameters defining the redirect action.SecurityPolicyRuleRedirectOptions.BuildergetRedirectOptionsBuilder()Parameters defining the redirect action.SecurityPolicyRuleRedirectOptionsOrBuildergetRedirectOptionsOrBuilder()Parameters defining the redirect action.booleanhasAction()The Action to perform when the rule is matched.booleanhasDescription()An optional description of this resource.booleanhasHeaderAction()Optional, additional actions that are performed on headers.booleanhasKind()[Output only] Type of the resource.booleanhasMatch()A match condition that incoming traffic is evaluated against.booleanhasPreconfiguredWafConfig()Preconfigured WAF configuration to be applied for the rule.booleanhasPreview()If set to true, the specified action is not enforced.booleanhasPriority()An integer indicating the priority of a rule in the list.booleanhasRateLimitOptions()Must be specified if the action is "rate_based_ban" or "throttle".booleanhasRedirectOptions()Parameters defining the redirect action.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()SecurityPolicyRule.BuildermergeFrom(SecurityPolicyRule other)SecurityPolicyRule.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)SecurityPolicyRule.BuildermergeFrom(com.google.protobuf.Message other)SecurityPolicyRule.BuildermergeHeaderAction(SecurityPolicyRuleHttpHeaderAction value)Optional, additional actions that are performed on headers.SecurityPolicyRule.BuildermergeMatch(SecurityPolicyRuleMatcher value)A match condition that incoming traffic is evaluated against.SecurityPolicyRule.BuildermergePreconfiguredWafConfig(SecurityPolicyRulePreconfiguredWafConfig value)Preconfigured WAF configuration to be applied for the rule.SecurityPolicyRule.BuildermergeRateLimitOptions(SecurityPolicyRuleRateLimitOptions value)Must be specified if the action is "rate_based_ban" or "throttle".SecurityPolicyRule.BuildermergeRedirectOptions(SecurityPolicyRuleRedirectOptions value)Parameters defining the redirect action.SecurityPolicyRule.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)SecurityPolicyRule.BuildersetAction(String value)The Action to perform when the rule is matched.SecurityPolicyRule.BuildersetActionBytes(com.google.protobuf.ByteString value)The Action to perform when the rule is matched.SecurityPolicyRule.BuildersetDescription(String value)An optional description of this resource.SecurityPolicyRule.BuildersetDescriptionBytes(com.google.protobuf.ByteString value)An optional description of this resource.SecurityPolicyRule.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)SecurityPolicyRule.BuildersetHeaderAction(SecurityPolicyRuleHttpHeaderAction value)Optional, additional actions that are performed on headers.SecurityPolicyRule.BuildersetHeaderAction(SecurityPolicyRuleHttpHeaderAction.Builder builderForValue)Optional, additional actions that are performed on headers.SecurityPolicyRule.BuildersetKind(String value)[Output only] Type of the resource.SecurityPolicyRule.BuildersetKindBytes(com.google.protobuf.ByteString value)[Output only] Type of the resource.SecurityPolicyRule.BuildersetMatch(SecurityPolicyRuleMatcher value)A match condition that incoming traffic is evaluated against.SecurityPolicyRule.BuildersetMatch(SecurityPolicyRuleMatcher.Builder builderForValue)A match condition that incoming traffic is evaluated against.SecurityPolicyRule.BuildersetPreconfiguredWafConfig(SecurityPolicyRulePreconfiguredWafConfig value)Preconfigured WAF configuration to be applied for the rule.SecurityPolicyRule.BuildersetPreconfiguredWafConfig(SecurityPolicyRulePreconfiguredWafConfig.Builder builderForValue)Preconfigured WAF configuration to be applied for the rule.SecurityPolicyRule.BuildersetPreview(boolean value)If set to true, the specified action is not enforced.SecurityPolicyRule.BuildersetPriority(int value)An integer indicating the priority of a rule in the list.SecurityPolicyRule.BuildersetRateLimitOptions(SecurityPolicyRuleRateLimitOptions value)Must be specified if the action is "rate_based_ban" or "throttle".SecurityPolicyRule.BuildersetRateLimitOptions(SecurityPolicyRuleRateLimitOptions.Builder builderForValue)Must be specified if the action is "rate_based_ban" or "throttle".SecurityPolicyRule.BuildersetRedirectOptions(SecurityPolicyRuleRedirectOptions value)Parameters defining the redirect action.SecurityPolicyRule.BuildersetRedirectOptions(SecurityPolicyRuleRedirectOptions.Builder builderForValue)Parameters defining the redirect action.SecurityPolicyRule.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)SecurityPolicyRule.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<SecurityPolicyRule.Builder>
-
clear
public SecurityPolicyRule.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<SecurityPolicyRule.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<SecurityPolicyRule.Builder>
-
getDefaultInstanceForType
public SecurityPolicyRule getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public SecurityPolicyRule build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SecurityPolicyRule buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SecurityPolicyRule.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<SecurityPolicyRule.Builder>
-
setField
public SecurityPolicyRule.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<SecurityPolicyRule.Builder>
-
clearField
public SecurityPolicyRule.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SecurityPolicyRule.Builder>
-
clearOneof
public SecurityPolicyRule.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<SecurityPolicyRule.Builder>
-
setRepeatedField
public SecurityPolicyRule.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<SecurityPolicyRule.Builder>
-
addRepeatedField
public SecurityPolicyRule.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<SecurityPolicyRule.Builder>
-
mergeFrom
public SecurityPolicyRule.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SecurityPolicyRule.Builder>
-
mergeFrom
public SecurityPolicyRule.Builder mergeFrom(SecurityPolicyRule other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<SecurityPolicyRule.Builder>
-
mergeFrom
public SecurityPolicyRule.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<SecurityPolicyRule.Builder>- Throws:
IOException
-
hasAction
public boolean hasAction()
The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(STATUS): deny access to target, returns the HTTP response code specified. Valid values for `STATUS` are 403, 404, and 502. - rate_based_ban: limit client traffic to the configured threshold and ban the client if the traffic exceeds the threshold. Configure parameters for this action in RateLimitOptions. Requires rate_limit_options to be set. - redirect: redirect to a different target. This can either be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 response. Parameters for this action can be configured via redirectOptions. This action is only supported in Global Security Policies of type CLOUD_ARMOR. - throttle: limit client traffic to the configured threshold. Configure parameters for this action in rateLimitOptions. Requires rate_limit_options to be set for this.
optional string action = 187661878;- Specified by:
hasActionin interfaceSecurityPolicyRuleOrBuilder- Returns:
- Whether the action field is set.
-
getAction
public String getAction()
The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(STATUS): deny access to target, returns the HTTP response code specified. Valid values for `STATUS` are 403, 404, and 502. - rate_based_ban: limit client traffic to the configured threshold and ban the client if the traffic exceeds the threshold. Configure parameters for this action in RateLimitOptions. Requires rate_limit_options to be set. - redirect: redirect to a different target. This can either be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 response. Parameters for this action can be configured via redirectOptions. This action is only supported in Global Security Policies of type CLOUD_ARMOR. - throttle: limit client traffic to the configured threshold. Configure parameters for this action in rateLimitOptions. Requires rate_limit_options to be set for this.
optional string action = 187661878;- Specified by:
getActionin interfaceSecurityPolicyRuleOrBuilder- Returns:
- The action.
-
getActionBytes
public com.google.protobuf.ByteString getActionBytes()
The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(STATUS): deny access to target, returns the HTTP response code specified. Valid values for `STATUS` are 403, 404, and 502. - rate_based_ban: limit client traffic to the configured threshold and ban the client if the traffic exceeds the threshold. Configure parameters for this action in RateLimitOptions. Requires rate_limit_options to be set. - redirect: redirect to a different target. This can either be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 response. Parameters for this action can be configured via redirectOptions. This action is only supported in Global Security Policies of type CLOUD_ARMOR. - throttle: limit client traffic to the configured threshold. Configure parameters for this action in rateLimitOptions. Requires rate_limit_options to be set for this.
optional string action = 187661878;- Specified by:
getActionBytesin interfaceSecurityPolicyRuleOrBuilder- Returns:
- The bytes for action.
-
setAction
public SecurityPolicyRule.Builder setAction(String value)
The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(STATUS): deny access to target, returns the HTTP response code specified. Valid values for `STATUS` are 403, 404, and 502. - rate_based_ban: limit client traffic to the configured threshold and ban the client if the traffic exceeds the threshold. Configure parameters for this action in RateLimitOptions. Requires rate_limit_options to be set. - redirect: redirect to a different target. This can either be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 response. Parameters for this action can be configured via redirectOptions. This action is only supported in Global Security Policies of type CLOUD_ARMOR. - throttle: limit client traffic to the configured threshold. Configure parameters for this action in rateLimitOptions. Requires rate_limit_options to be set for this.
optional string action = 187661878;- Parameters:
value- The action to set.- Returns:
- This builder for chaining.
-
clearAction
public SecurityPolicyRule.Builder clearAction()
The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(STATUS): deny access to target, returns the HTTP response code specified. Valid values for `STATUS` are 403, 404, and 502. - rate_based_ban: limit client traffic to the configured threshold and ban the client if the traffic exceeds the threshold. Configure parameters for this action in RateLimitOptions. Requires rate_limit_options to be set. - redirect: redirect to a different target. This can either be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 response. Parameters for this action can be configured via redirectOptions. This action is only supported in Global Security Policies of type CLOUD_ARMOR. - throttle: limit client traffic to the configured threshold. Configure parameters for this action in rateLimitOptions. Requires rate_limit_options to be set for this.
optional string action = 187661878;- Returns:
- This builder for chaining.
-
setActionBytes
public SecurityPolicyRule.Builder setActionBytes(com.google.protobuf.ByteString value)
The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(STATUS): deny access to target, returns the HTTP response code specified. Valid values for `STATUS` are 403, 404, and 502. - rate_based_ban: limit client traffic to the configured threshold and ban the client if the traffic exceeds the threshold. Configure parameters for this action in RateLimitOptions. Requires rate_limit_options to be set. - redirect: redirect to a different target. This can either be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 response. Parameters for this action can be configured via redirectOptions. This action is only supported in Global Security Policies of type CLOUD_ARMOR. - throttle: limit client traffic to the configured threshold. Configure parameters for this action in rateLimitOptions. Requires rate_limit_options to be set for this.
optional string action = 187661878;- Parameters:
value- The bytes for action to set.- Returns:
- This builder for chaining.
-
hasDescription
public boolean hasDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Specified by:
hasDescriptionin interfaceSecurityPolicyRuleOrBuilder- Returns:
- Whether the description field is set.
-
getDescription
public String getDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Specified by:
getDescriptionin interfaceSecurityPolicyRuleOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Specified by:
getDescriptionBytesin interfaceSecurityPolicyRuleOrBuilder- Returns:
- The bytes for description.
-
setDescription
public SecurityPolicyRule.Builder setDescription(String value)
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public SecurityPolicyRule.Builder clearDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Returns:
- This builder for chaining.
-
setDescriptionBytes
public SecurityPolicyRule.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
hasHeaderAction
public boolean hasHeaderAction()
Optional, additional actions that are performed on headers. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
optional .google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderAction header_action = 328077352;- Specified by:
hasHeaderActionin interfaceSecurityPolicyRuleOrBuilder- Returns:
- Whether the headerAction field is set.
-
getHeaderAction
public SecurityPolicyRuleHttpHeaderAction getHeaderAction()
Optional, additional actions that are performed on headers. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
optional .google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderAction header_action = 328077352;- Specified by:
getHeaderActionin interfaceSecurityPolicyRuleOrBuilder- Returns:
- The headerAction.
-
setHeaderAction
public SecurityPolicyRule.Builder setHeaderAction(SecurityPolicyRuleHttpHeaderAction value)
Optional, additional actions that are performed on headers. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
optional .google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderAction header_action = 328077352;
-
setHeaderAction
public SecurityPolicyRule.Builder setHeaderAction(SecurityPolicyRuleHttpHeaderAction.Builder builderForValue)
Optional, additional actions that are performed on headers. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
optional .google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderAction header_action = 328077352;
-
mergeHeaderAction
public SecurityPolicyRule.Builder mergeHeaderAction(SecurityPolicyRuleHttpHeaderAction value)
Optional, additional actions that are performed on headers. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
optional .google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderAction header_action = 328077352;
-
clearHeaderAction
public SecurityPolicyRule.Builder clearHeaderAction()
Optional, additional actions that are performed on headers. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
optional .google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderAction header_action = 328077352;
-
getHeaderActionBuilder
public SecurityPolicyRuleHttpHeaderAction.Builder getHeaderActionBuilder()
Optional, additional actions that are performed on headers. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
optional .google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderAction header_action = 328077352;
-
getHeaderActionOrBuilder
public SecurityPolicyRuleHttpHeaderActionOrBuilder getHeaderActionOrBuilder()
Optional, additional actions that are performed on headers. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
optional .google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderAction header_action = 328077352;- Specified by:
getHeaderActionOrBuilderin interfaceSecurityPolicyRuleOrBuilder
-
hasKind
public boolean hasKind()
[Output only] Type of the resource. Always compute#securityPolicyRule for security policy rules
optional string kind = 3292052;- Specified by:
hasKindin interfaceSecurityPolicyRuleOrBuilder- Returns:
- Whether the kind field is set.
-
getKind
public String getKind()
[Output only] Type of the resource. Always compute#securityPolicyRule for security policy rules
optional string kind = 3292052;- Specified by:
getKindin interfaceSecurityPolicyRuleOrBuilder- Returns:
- The kind.
-
getKindBytes
public com.google.protobuf.ByteString getKindBytes()
[Output only] Type of the resource. Always compute#securityPolicyRule for security policy rules
optional string kind = 3292052;- Specified by:
getKindBytesin interfaceSecurityPolicyRuleOrBuilder- Returns:
- The bytes for kind.
-
setKind
public SecurityPolicyRule.Builder setKind(String value)
[Output only] Type of the resource. Always compute#securityPolicyRule for security policy rules
optional string kind = 3292052;- Parameters:
value- The kind to set.- Returns:
- This builder for chaining.
-
clearKind
public SecurityPolicyRule.Builder clearKind()
[Output only] Type of the resource. Always compute#securityPolicyRule for security policy rules
optional string kind = 3292052;- Returns:
- This builder for chaining.
-
setKindBytes
public SecurityPolicyRule.Builder setKindBytes(com.google.protobuf.ByteString value)
[Output only] Type of the resource. Always compute#securityPolicyRule for security policy rules
optional string kind = 3292052;- Parameters:
value- The bytes for kind to set.- Returns:
- This builder for chaining.
-
hasMatch
public boolean hasMatch()
A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced.
optional .google.cloud.compute.v1.SecurityPolicyRuleMatcher match = 103668165;- Specified by:
hasMatchin interfaceSecurityPolicyRuleOrBuilder- Returns:
- Whether the match field is set.
-
getMatch
public SecurityPolicyRuleMatcher getMatch()
A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced.
optional .google.cloud.compute.v1.SecurityPolicyRuleMatcher match = 103668165;- Specified by:
getMatchin interfaceSecurityPolicyRuleOrBuilder- Returns:
- The match.
-
setMatch
public SecurityPolicyRule.Builder setMatch(SecurityPolicyRuleMatcher value)
A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced.
optional .google.cloud.compute.v1.SecurityPolicyRuleMatcher match = 103668165;
-
setMatch
public SecurityPolicyRule.Builder setMatch(SecurityPolicyRuleMatcher.Builder builderForValue)
A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced.
optional .google.cloud.compute.v1.SecurityPolicyRuleMatcher match = 103668165;
-
mergeMatch
public SecurityPolicyRule.Builder mergeMatch(SecurityPolicyRuleMatcher value)
A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced.
optional .google.cloud.compute.v1.SecurityPolicyRuleMatcher match = 103668165;
-
clearMatch
public SecurityPolicyRule.Builder clearMatch()
A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced.
optional .google.cloud.compute.v1.SecurityPolicyRuleMatcher match = 103668165;
-
getMatchBuilder
public SecurityPolicyRuleMatcher.Builder getMatchBuilder()
A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced.
optional .google.cloud.compute.v1.SecurityPolicyRuleMatcher match = 103668165;
-
getMatchOrBuilder
public SecurityPolicyRuleMatcherOrBuilder getMatchOrBuilder()
A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced.
optional .google.cloud.compute.v1.SecurityPolicyRuleMatcher match = 103668165;- Specified by:
getMatchOrBuilderin interfaceSecurityPolicyRuleOrBuilder
-
hasPreconfiguredWafConfig
public boolean hasPreconfiguredWafConfig()
Preconfigured WAF configuration to be applied for the rule. If the rule does not evaluate preconfigured WAF rules, i.e., if evaluatePreconfiguredWaf() is not used, this field will have no effect.
optional .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfig preconfigured_waf_config = 117805027;- Specified by:
hasPreconfiguredWafConfigin interfaceSecurityPolicyRuleOrBuilder- Returns:
- Whether the preconfiguredWafConfig field is set.
-
getPreconfiguredWafConfig
public SecurityPolicyRulePreconfiguredWafConfig getPreconfiguredWafConfig()
Preconfigured WAF configuration to be applied for the rule. If the rule does not evaluate preconfigured WAF rules, i.e., if evaluatePreconfiguredWaf() is not used, this field will have no effect.
optional .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfig preconfigured_waf_config = 117805027;- Specified by:
getPreconfiguredWafConfigin interfaceSecurityPolicyRuleOrBuilder- Returns:
- The preconfiguredWafConfig.
-
setPreconfiguredWafConfig
public SecurityPolicyRule.Builder setPreconfiguredWafConfig(SecurityPolicyRulePreconfiguredWafConfig value)
Preconfigured WAF configuration to be applied for the rule. If the rule does not evaluate preconfigured WAF rules, i.e., if evaluatePreconfiguredWaf() is not used, this field will have no effect.
optional .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfig preconfigured_waf_config = 117805027;
-
setPreconfiguredWafConfig
public SecurityPolicyRule.Builder setPreconfiguredWafConfig(SecurityPolicyRulePreconfiguredWafConfig.Builder builderForValue)
Preconfigured WAF configuration to be applied for the rule. If the rule does not evaluate preconfigured WAF rules, i.e., if evaluatePreconfiguredWaf() is not used, this field will have no effect.
optional .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfig preconfigured_waf_config = 117805027;
-
mergePreconfiguredWafConfig
public SecurityPolicyRule.Builder mergePreconfiguredWafConfig(SecurityPolicyRulePreconfiguredWafConfig value)
Preconfigured WAF configuration to be applied for the rule. If the rule does not evaluate preconfigured WAF rules, i.e., if evaluatePreconfiguredWaf() is not used, this field will have no effect.
optional .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfig preconfigured_waf_config = 117805027;
-
clearPreconfiguredWafConfig
public SecurityPolicyRule.Builder clearPreconfiguredWafConfig()
Preconfigured WAF configuration to be applied for the rule. If the rule does not evaluate preconfigured WAF rules, i.e., if evaluatePreconfiguredWaf() is not used, this field will have no effect.
optional .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfig preconfigured_waf_config = 117805027;
-
getPreconfiguredWafConfigBuilder
public SecurityPolicyRulePreconfiguredWafConfig.Builder getPreconfiguredWafConfigBuilder()
Preconfigured WAF configuration to be applied for the rule. If the rule does not evaluate preconfigured WAF rules, i.e., if evaluatePreconfiguredWaf() is not used, this field will have no effect.
optional .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfig preconfigured_waf_config = 117805027;
-
getPreconfiguredWafConfigOrBuilder
public SecurityPolicyRulePreconfiguredWafConfigOrBuilder getPreconfiguredWafConfigOrBuilder()
Preconfigured WAF configuration to be applied for the rule. If the rule does not evaluate preconfigured WAF rules, i.e., if evaluatePreconfiguredWaf() is not used, this field will have no effect.
optional .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfig preconfigured_waf_config = 117805027;- Specified by:
getPreconfiguredWafConfigOrBuilderin interfaceSecurityPolicyRuleOrBuilder
-
hasPreview
public boolean hasPreview()
If set to true, the specified action is not enforced.
optional bool preview = 218686408;- Specified by:
hasPreviewin interfaceSecurityPolicyRuleOrBuilder- Returns:
- Whether the preview field is set.
-
getPreview
public boolean getPreview()
If set to true, the specified action is not enforced.
optional bool preview = 218686408;- Specified by:
getPreviewin interfaceSecurityPolicyRuleOrBuilder- Returns:
- The preview.
-
setPreview
public SecurityPolicyRule.Builder setPreview(boolean value)
If set to true, the specified action is not enforced.
optional bool preview = 218686408;- Parameters:
value- The preview to set.- Returns:
- This builder for chaining.
-
clearPreview
public SecurityPolicyRule.Builder clearPreview()
If set to true, the specified action is not enforced.
optional bool preview = 218686408;- Returns:
- This builder for chaining.
-
hasPriority
public boolean hasPriority()
An integer indicating the priority of a rule in the list. The priority must be a positive value between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the highest priority and 2147483647 is the lowest priority.
optional int32 priority = 445151652;- Specified by:
hasPriorityin interfaceSecurityPolicyRuleOrBuilder- Returns:
- Whether the priority field is set.
-
getPriority
public int getPriority()
An integer indicating the priority of a rule in the list. The priority must be a positive value between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the highest priority and 2147483647 is the lowest priority.
optional int32 priority = 445151652;- Specified by:
getPriorityin interfaceSecurityPolicyRuleOrBuilder- Returns:
- The priority.
-
setPriority
public SecurityPolicyRule.Builder setPriority(int value)
An integer indicating the priority of a rule in the list. The priority must be a positive value between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the highest priority and 2147483647 is the lowest priority.
optional int32 priority = 445151652;- Parameters:
value- The priority to set.- Returns:
- This builder for chaining.
-
clearPriority
public SecurityPolicyRule.Builder clearPriority()
An integer indicating the priority of a rule in the list. The priority must be a positive value between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the highest priority and 2147483647 is the lowest priority.
optional int32 priority = 445151652;- Returns:
- This builder for chaining.
-
hasRateLimitOptions
public boolean hasRateLimitOptions()
Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.
optional .google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions rate_limit_options = 67544315;- Specified by:
hasRateLimitOptionsin interfaceSecurityPolicyRuleOrBuilder- Returns:
- Whether the rateLimitOptions field is set.
-
getRateLimitOptions
public SecurityPolicyRuleRateLimitOptions getRateLimitOptions()
Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.
optional .google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions rate_limit_options = 67544315;- Specified by:
getRateLimitOptionsin interfaceSecurityPolicyRuleOrBuilder- Returns:
- The rateLimitOptions.
-
setRateLimitOptions
public SecurityPolicyRule.Builder setRateLimitOptions(SecurityPolicyRuleRateLimitOptions value)
Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.
optional .google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions rate_limit_options = 67544315;
-
setRateLimitOptions
public SecurityPolicyRule.Builder setRateLimitOptions(SecurityPolicyRuleRateLimitOptions.Builder builderForValue)
Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.
optional .google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions rate_limit_options = 67544315;
-
mergeRateLimitOptions
public SecurityPolicyRule.Builder mergeRateLimitOptions(SecurityPolicyRuleRateLimitOptions value)
Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.
optional .google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions rate_limit_options = 67544315;
-
clearRateLimitOptions
public SecurityPolicyRule.Builder clearRateLimitOptions()
Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.
optional .google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions rate_limit_options = 67544315;
-
getRateLimitOptionsBuilder
public SecurityPolicyRuleRateLimitOptions.Builder getRateLimitOptionsBuilder()
Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.
optional .google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions rate_limit_options = 67544315;
-
getRateLimitOptionsOrBuilder
public SecurityPolicyRuleRateLimitOptionsOrBuilder getRateLimitOptionsOrBuilder()
Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.
optional .google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions rate_limit_options = 67544315;- Specified by:
getRateLimitOptionsOrBuilderin interfaceSecurityPolicyRuleOrBuilder
-
hasRedirectOptions
public boolean hasRedirectOptions()
Parameters defining the redirect action. Cannot be specified for any other actions. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
optional .google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions redirect_options = 163285307;- Specified by:
hasRedirectOptionsin interfaceSecurityPolicyRuleOrBuilder- Returns:
- Whether the redirectOptions field is set.
-
getRedirectOptions
public SecurityPolicyRuleRedirectOptions getRedirectOptions()
Parameters defining the redirect action. Cannot be specified for any other actions. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
optional .google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions redirect_options = 163285307;- Specified by:
getRedirectOptionsin interfaceSecurityPolicyRuleOrBuilder- Returns:
- The redirectOptions.
-
setRedirectOptions
public SecurityPolicyRule.Builder setRedirectOptions(SecurityPolicyRuleRedirectOptions value)
Parameters defining the redirect action. Cannot be specified for any other actions. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
optional .google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions redirect_options = 163285307;
-
setRedirectOptions
public SecurityPolicyRule.Builder setRedirectOptions(SecurityPolicyRuleRedirectOptions.Builder builderForValue)
Parameters defining the redirect action. Cannot be specified for any other actions. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
optional .google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions redirect_options = 163285307;
-
mergeRedirectOptions
public SecurityPolicyRule.Builder mergeRedirectOptions(SecurityPolicyRuleRedirectOptions value)
Parameters defining the redirect action. Cannot be specified for any other actions. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
optional .google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions redirect_options = 163285307;
-
clearRedirectOptions
public SecurityPolicyRule.Builder clearRedirectOptions()
Parameters defining the redirect action. Cannot be specified for any other actions. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
optional .google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions redirect_options = 163285307;
-
getRedirectOptionsBuilder
public SecurityPolicyRuleRedirectOptions.Builder getRedirectOptionsBuilder()
Parameters defining the redirect action. Cannot be specified for any other actions. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
optional .google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions redirect_options = 163285307;
-
getRedirectOptionsOrBuilder
public SecurityPolicyRuleRedirectOptionsOrBuilder getRedirectOptionsOrBuilder()
Parameters defining the redirect action. Cannot be specified for any other actions. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
optional .google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions redirect_options = 163285307;- Specified by:
getRedirectOptionsOrBuilderin interfaceSecurityPolicyRuleOrBuilder
-
setUnknownFields
public final SecurityPolicyRule.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SecurityPolicyRule.Builder>
-
mergeUnknownFields
public final SecurityPolicyRule.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SecurityPolicyRule.Builder>
-
-