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 type
google.cloud.compute.v1.SecurityPolicyRule| Modifier and Type | Method and Description |
|---|---|
SecurityPolicyRule.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SecurityPolicyRule |
build() |
SecurityPolicyRule |
buildPartial() |
SecurityPolicyRule.Builder |
clear() |
SecurityPolicyRule.Builder |
clearAction()
The Action to perform when the rule is matched.
|
SecurityPolicyRule.Builder |
clearDescription()
An optional description of this resource.
|
SecurityPolicyRule.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
SecurityPolicyRule.Builder |
clearHeaderAction()
Optional, additional actions that are performed on headers.
|
SecurityPolicyRule.Builder |
clearKind()
[Output only] Type of the resource.
|
SecurityPolicyRule.Builder |
clearMatch()
A match condition that incoming traffic is evaluated against.
|
SecurityPolicyRule.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
SecurityPolicyRule.Builder |
clearPreview()
If set to true, the specified action is not enforced.
|
SecurityPolicyRule.Builder |
clearPriority()
An integer indicating the priority of a rule in the list.
|
SecurityPolicyRule.Builder |
clearRateLimitOptions()
Must be specified if the action is "rate_based_ban" or "throttle".
|
SecurityPolicyRule.Builder |
clearRedirectOptions()
Parameters defining the redirect action.
|
SecurityPolicyRule.Builder |
clone() |
String |
getAction()
The Action to perform when the rule is matched.
|
com.google.protobuf.ByteString |
getActionBytes()
The Action to perform when the rule is matched.
|
SecurityPolicyRule |
getDefaultInstanceForType() |
String |
getDescription()
An optional description of this resource.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
An optional description of this resource.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
SecurityPolicyRuleHttpHeaderAction |
getHeaderAction()
Optional, additional actions that are performed on headers.
|
SecurityPolicyRuleHttpHeaderAction.Builder |
getHeaderActionBuilder()
Optional, additional actions that are performed on headers.
|
SecurityPolicyRuleHttpHeaderActionOrBuilder |
getHeaderActionOrBuilder()
Optional, additional actions that are performed on headers.
|
String |
getKind()
[Output only] Type of the resource.
|
com.google.protobuf.ByteString |
getKindBytes()
[Output only] Type of the resource.
|
SecurityPolicyRuleMatcher |
getMatch()
A match condition that incoming traffic is evaluated against.
|
SecurityPolicyRuleMatcher.Builder |
getMatchBuilder()
A match condition that incoming traffic is evaluated against.
|
SecurityPolicyRuleMatcherOrBuilder |
getMatchOrBuilder()
A match condition that incoming traffic is evaluated against.
|
boolean |
getPreview()
If set to true, the specified action is not enforced.
|
int |
getPriority()
An integer indicating the priority of a rule in the list.
|
SecurityPolicyRuleRateLimitOptions |
getRateLimitOptions()
Must be specified if the action is "rate_based_ban" or "throttle".
|
SecurityPolicyRuleRateLimitOptions.Builder |
getRateLimitOptionsBuilder()
Must be specified if the action is "rate_based_ban" or "throttle".
|
SecurityPolicyRuleRateLimitOptionsOrBuilder |
getRateLimitOptionsOrBuilder()
Must be specified if the action is "rate_based_ban" or "throttle".
|
SecurityPolicyRuleRedirectOptions |
getRedirectOptions()
Parameters defining the redirect action.
|
SecurityPolicyRuleRedirectOptions.Builder |
getRedirectOptionsBuilder()
Parameters defining the redirect action.
|
SecurityPolicyRuleRedirectOptionsOrBuilder |
getRedirectOptionsOrBuilder()
Parameters defining the redirect action.
|
boolean |
hasAction()
The Action to perform when the rule is matched.
|
boolean |
hasDescription()
An optional description of this resource.
|
boolean |
hasHeaderAction()
Optional, additional actions that are performed on headers.
|
boolean |
hasKind()
[Output only] Type of the resource.
|
boolean |
hasMatch()
A match condition that incoming traffic is evaluated against.
|
boolean |
hasPreview()
If set to true, the specified action is not enforced.
|
boolean |
hasPriority()
An integer indicating the priority of a rule in the list.
|
boolean |
hasRateLimitOptions()
Must be specified if the action is "rate_based_ban" or "throttle".
|
boolean |
hasRedirectOptions()
Parameters defining the redirect action.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
SecurityPolicyRule.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SecurityPolicyRule.Builder |
mergeFrom(com.google.protobuf.Message other) |
SecurityPolicyRule.Builder |
mergeFrom(SecurityPolicyRule other) |
SecurityPolicyRule.Builder |
mergeHeaderAction(SecurityPolicyRuleHttpHeaderAction value)
Optional, additional actions that are performed on headers.
|
SecurityPolicyRule.Builder |
mergeMatch(SecurityPolicyRuleMatcher value)
A match condition that incoming traffic is evaluated against.
|
SecurityPolicyRule.Builder |
mergeRateLimitOptions(SecurityPolicyRuleRateLimitOptions value)
Must be specified if the action is "rate_based_ban" or "throttle".
|
SecurityPolicyRule.Builder |
mergeRedirectOptions(SecurityPolicyRuleRedirectOptions value)
Parameters defining the redirect action.
|
SecurityPolicyRule.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
SecurityPolicyRule.Builder |
setAction(String value)
The Action to perform when the rule is matched.
|
SecurityPolicyRule.Builder |
setActionBytes(com.google.protobuf.ByteString value)
The Action to perform when the rule is matched.
|
SecurityPolicyRule.Builder |
setDescription(String value)
An optional description of this resource.
|
SecurityPolicyRule.Builder |
setDescriptionBytes(com.google.protobuf.ByteString value)
An optional description of this resource.
|
SecurityPolicyRule.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SecurityPolicyRule.Builder |
setHeaderAction(SecurityPolicyRuleHttpHeaderAction.Builder builderForValue)
Optional, additional actions that are performed on headers.
|
SecurityPolicyRule.Builder |
setHeaderAction(SecurityPolicyRuleHttpHeaderAction value)
Optional, additional actions that are performed on headers.
|
SecurityPolicyRule.Builder |
setKind(String value)
[Output only] Type of the resource.
|
SecurityPolicyRule.Builder |
setKindBytes(com.google.protobuf.ByteString value)
[Output only] Type of the resource.
|
SecurityPolicyRule.Builder |
setMatch(SecurityPolicyRuleMatcher.Builder builderForValue)
A match condition that incoming traffic is evaluated against.
|
SecurityPolicyRule.Builder |
setMatch(SecurityPolicyRuleMatcher value)
A match condition that incoming traffic is evaluated against.
|
SecurityPolicyRule.Builder |
setPreview(boolean value)
If set to true, the specified action is not enforced.
|
SecurityPolicyRule.Builder |
setPriority(int value)
An integer indicating the priority of a rule in the list.
|
SecurityPolicyRule.Builder |
setRateLimitOptions(SecurityPolicyRuleRateLimitOptions.Builder builderForValue)
Must be specified if the action is "rate_based_ban" or "throttle".
|
SecurityPolicyRule.Builder |
setRateLimitOptions(SecurityPolicyRuleRateLimitOptions value)
Must be specified if the action is "rate_based_ban" or "throttle".
|
SecurityPolicyRule.Builder |
setRedirectOptions(SecurityPolicyRuleRedirectOptions.Builder builderForValue)
Parameters defining the redirect action.
|
SecurityPolicyRule.Builder |
setRedirectOptions(SecurityPolicyRuleRedirectOptions value)
Parameters defining the redirect action.
|
SecurityPolicyRule.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
SecurityPolicyRule.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<SecurityPolicyRule.Builder>public SecurityPolicyRule.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<SecurityPolicyRule.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<SecurityPolicyRule.Builder>public SecurityPolicyRule getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic SecurityPolicyRule build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic SecurityPolicyRule buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic SecurityPolicyRule.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<SecurityPolicyRule.Builder>public SecurityPolicyRule.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<SecurityPolicyRule.Builder>public SecurityPolicyRule.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<SecurityPolicyRule.Builder>public SecurityPolicyRule.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SecurityPolicyRule.Builder>public SecurityPolicyRule.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<SecurityPolicyRule.Builder>public SecurityPolicyRule.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<SecurityPolicyRule.Builder>public SecurityPolicyRule.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SecurityPolicyRule.Builder>public SecurityPolicyRule.Builder mergeFrom(SecurityPolicyRule other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SecurityPolicyRule.Builder>public SecurityPolicyRule.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<SecurityPolicyRule.Builder>IOExceptionpublic boolean hasAction()
The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(): deny access to target, returns the HTTP response code specified (valid values 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. - 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;hasAction in interface SecurityPolicyRuleOrBuilderpublic String getAction()
The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(): deny access to target, returns the HTTP response code specified (valid values 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. - 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;getAction in interface SecurityPolicyRuleOrBuilderpublic 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(): deny access to target, returns the HTTP response code specified (valid values 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. - 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;getActionBytes in interface SecurityPolicyRuleOrBuilderpublic 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(): deny access to target, returns the HTTP response code specified (valid values 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. - 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;value - The action to set.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(): deny access to target, returns the HTTP response code specified (valid values 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. - 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;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(): deny access to target, returns the HTTP response code specified (valid values 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. - 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;value - The bytes for action to set.public boolean hasDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;hasDescription in interface SecurityPolicyRuleOrBuilderpublic String getDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;getDescription in interface SecurityPolicyRuleOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;getDescriptionBytes in interface SecurityPolicyRuleOrBuilderpublic SecurityPolicyRule.Builder setDescription(String value)
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;value - The description to set.public SecurityPolicyRule.Builder clearDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;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;value - The bytes for description to set.public boolean hasHeaderAction()
Optional, additional actions that are performed on headers.
optional .google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderAction header_action = 328077352;
hasHeaderAction in interface SecurityPolicyRuleOrBuilderpublic SecurityPolicyRuleHttpHeaderAction getHeaderAction()
Optional, additional actions that are performed on headers.
optional .google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderAction header_action = 328077352;
getHeaderAction in interface SecurityPolicyRuleOrBuilderpublic SecurityPolicyRule.Builder setHeaderAction(SecurityPolicyRuleHttpHeaderAction value)
Optional, additional actions that are performed on headers.
optional .google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderAction header_action = 328077352;
public SecurityPolicyRule.Builder setHeaderAction(SecurityPolicyRuleHttpHeaderAction.Builder builderForValue)
Optional, additional actions that are performed on headers.
optional .google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderAction header_action = 328077352;
public SecurityPolicyRule.Builder mergeHeaderAction(SecurityPolicyRuleHttpHeaderAction value)
Optional, additional actions that are performed on headers.
optional .google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderAction header_action = 328077352;
public SecurityPolicyRule.Builder clearHeaderAction()
Optional, additional actions that are performed on headers.
optional .google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderAction header_action = 328077352;
public SecurityPolicyRuleHttpHeaderAction.Builder getHeaderActionBuilder()
Optional, additional actions that are performed on headers.
optional .google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderAction header_action = 328077352;
public SecurityPolicyRuleHttpHeaderActionOrBuilder getHeaderActionOrBuilder()
Optional, additional actions that are performed on headers.
optional .google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderAction header_action = 328077352;
getHeaderActionOrBuilder in interface SecurityPolicyRuleOrBuilderpublic boolean hasKind()
[Output only] Type of the resource. Always compute#securityPolicyRule for security policy rules
optional string kind = 3292052;hasKind in interface SecurityPolicyRuleOrBuilderpublic String getKind()
[Output only] Type of the resource. Always compute#securityPolicyRule for security policy rules
optional string kind = 3292052;getKind in interface SecurityPolicyRuleOrBuilderpublic com.google.protobuf.ByteString getKindBytes()
[Output only] Type of the resource. Always compute#securityPolicyRule for security policy rules
optional string kind = 3292052;getKindBytes in interface SecurityPolicyRuleOrBuilderpublic SecurityPolicyRule.Builder setKind(String value)
[Output only] Type of the resource. Always compute#securityPolicyRule for security policy rules
optional string kind = 3292052;value - The kind to set.public SecurityPolicyRule.Builder clearKind()
[Output only] Type of the resource. Always compute#securityPolicyRule for security policy rules
optional string kind = 3292052;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;value - The bytes for kind to set.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;hasMatch in interface SecurityPolicyRuleOrBuilderpublic 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;getMatch in interface SecurityPolicyRuleOrBuilderpublic 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;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;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;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;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;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;getMatchOrBuilder in interface SecurityPolicyRuleOrBuilderpublic boolean hasPreview()
If set to true, the specified action is not enforced.
optional bool preview = 218686408;hasPreview in interface SecurityPolicyRuleOrBuilderpublic boolean getPreview()
If set to true, the specified action is not enforced.
optional bool preview = 218686408;getPreview in interface SecurityPolicyRuleOrBuilderpublic SecurityPolicyRule.Builder setPreview(boolean value)
If set to true, the specified action is not enforced.
optional bool preview = 218686408;value - The preview to set.public SecurityPolicyRule.Builder clearPreview()
If set to true, the specified action is not enforced.
optional bool preview = 218686408;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;hasPriority in interface SecurityPolicyRuleOrBuilderpublic 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;getPriority in interface SecurityPolicyRuleOrBuilderpublic 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;value - The priority to set.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;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;
hasRateLimitOptions in interface SecurityPolicyRuleOrBuilderpublic 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;
getRateLimitOptions in interface SecurityPolicyRuleOrBuilderpublic 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;
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;
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;
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;
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;
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;
getRateLimitOptionsOrBuilder in interface SecurityPolicyRuleOrBuilderpublic boolean hasRedirectOptions()
Parameters defining the redirect action. Cannot be specified for any other actions.
optional .google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions redirect_options = 163285307;
hasRedirectOptions in interface SecurityPolicyRuleOrBuilderpublic SecurityPolicyRuleRedirectOptions getRedirectOptions()
Parameters defining the redirect action. Cannot be specified for any other actions.
optional .google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions redirect_options = 163285307;
getRedirectOptions in interface SecurityPolicyRuleOrBuilderpublic SecurityPolicyRule.Builder setRedirectOptions(SecurityPolicyRuleRedirectOptions value)
Parameters defining the redirect action. Cannot be specified for any other actions.
optional .google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions redirect_options = 163285307;
public SecurityPolicyRule.Builder setRedirectOptions(SecurityPolicyRuleRedirectOptions.Builder builderForValue)
Parameters defining the redirect action. Cannot be specified for any other actions.
optional .google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions redirect_options = 163285307;
public SecurityPolicyRule.Builder mergeRedirectOptions(SecurityPolicyRuleRedirectOptions value)
Parameters defining the redirect action. Cannot be specified for any other actions.
optional .google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions redirect_options = 163285307;
public SecurityPolicyRule.Builder clearRedirectOptions()
Parameters defining the redirect action. Cannot be specified for any other actions.
optional .google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions redirect_options = 163285307;
public SecurityPolicyRuleRedirectOptions.Builder getRedirectOptionsBuilder()
Parameters defining the redirect action. Cannot be specified for any other actions.
optional .google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions redirect_options = 163285307;
public SecurityPolicyRuleRedirectOptionsOrBuilder getRedirectOptionsOrBuilder()
Parameters defining the redirect action. Cannot be specified for any other actions.
optional .google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions redirect_options = 163285307;
getRedirectOptionsOrBuilder in interface SecurityPolicyRuleOrBuilderpublic final SecurityPolicyRule.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SecurityPolicyRule.Builder>public final SecurityPolicyRule.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SecurityPolicyRule.Builder>Copyright © 2023 Google LLC. All rights reserved.