Package com.google.cloud.compute.v1
Class SecurityPolicyRule
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.compute.v1.SecurityPolicyRule
- All Implemented Interfaces:
SecurityPolicyRuleOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class SecurityPolicyRule
extends com.google.protobuf.GeneratedMessage
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- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRepresents a rule that describes one or more match conditions along with the action to be taken when traffic matches this condition (allow or deny).Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe Action to perform when the rule is matched.com.google.protobuf.ByteStringThe Action to perform when the rule is matched.static SecurityPolicyRuleAn optional description of this resource.com.google.protobuf.ByteStringAn optional description of this resource.static final com.google.protobuf.Descriptors.DescriptorOptional, additional actions that are performed on headers.Optional, additional actions that are performed on headers.getKind()Output only.com.google.protobuf.ByteStringOutput only.getMatch()A match condition that incoming traffic is evaluated against.A match condition that incoming traffic is evaluated against.A match condition that incoming packets are evaluated against for CLOUD_ARMOR_NETWORK security policies.A match condition that incoming packets are evaluated against for CLOUD_ARMOR_NETWORK security policies.com.google.protobuf.Parser<SecurityPolicyRule>Preconfigured WAF configuration to be applied for the rule.Preconfigured WAF configuration to be applied for the rule.booleanIf set to true, the specified action is not enforced.intAn integer indicating the priority of a rule in the list.Must be specified if the action is "rate_based_ban" or "throttle" or "fairshare".Must be specified if the action is "rate_based_ban" or "throttle" or "fairshare".Parameters defining the redirect action.Parameters defining the redirect action.intbooleanThe Action to perform when the rule is matched.booleanAn optional description of this resource.inthashCode()booleanOptional, additional actions that are performed on headers.booleanhasKind()Output only.booleanhasMatch()A match condition that incoming traffic is evaluated against.booleanA match condition that incoming packets are evaluated against for CLOUD_ARMOR_NETWORK security policies.booleanPreconfigured WAF configuration to be applied for the rule.booleanIf set to true, the specified action is not enforced.booleanAn integer indicating the priority of a rule in the list.booleanMust be specified if the action is "rate_based_ban" or "throttle" or "fairshare".booleanParameters defining the redirect action.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic SecurityPolicyRule.Builderstatic SecurityPolicyRule.BuildernewBuilder(SecurityPolicyRule prototype) protected SecurityPolicyRule.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static SecurityPolicyRuleparseDelimitedFrom(InputStream input) static SecurityPolicyRuleparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SecurityPolicyRuleparseFrom(byte[] data) static SecurityPolicyRuleparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SecurityPolicyRuleparseFrom(com.google.protobuf.ByteString data) static SecurityPolicyRuleparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SecurityPolicyRuleparseFrom(com.google.protobuf.CodedInputStream input) static SecurityPolicyRuleparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SecurityPolicyRuleparseFrom(InputStream input) static SecurityPolicyRuleparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SecurityPolicyRuleparseFrom(ByteBuffer data) static SecurityPolicyRuleparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<SecurityPolicyRule>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
ACTION_FIELD_NUMBER
public static final int ACTION_FIELD_NUMBER- See Also:
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER- See Also:
-
HEADER_ACTION_FIELD_NUMBER
public static final int HEADER_ACTION_FIELD_NUMBER- See Also:
-
KIND_FIELD_NUMBER
public static final int KIND_FIELD_NUMBER- See Also:
-
MATCH_FIELD_NUMBER
public static final int MATCH_FIELD_NUMBER- See Also:
-
NETWORK_MATCH_FIELD_NUMBER
public static final int NETWORK_MATCH_FIELD_NUMBER- See Also:
-
PRECONFIGURED_WAF_CONFIG_FIELD_NUMBER
public static final int PRECONFIGURED_WAF_CONFIG_FIELD_NUMBER- See Also:
-
PREVIEW_FIELD_NUMBER
public static final int PREVIEW_FIELD_NUMBER- See Also:
-
PRIORITY_FIELD_NUMBER
public static final int PRIORITY_FIELD_NUMBER- See Also:
-
RATE_LIMIT_OPTIONS_FIELD_NUMBER
public static final int RATE_LIMIT_OPTIONS_FIELD_NUMBER- See Also:
-
REDIRECT_OPTIONS_FIELD_NUMBER
public static final int REDIRECT_OPTIONS_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
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. - fairshare (preview only): when traffic reaches the threshold limit, requests from the clients matching this rule begin to be rate-limited using the Fair Share algorithm. This action is only allowed in security policies of type `CLOUD_ARMOR_INTERNAL_SERVICE`.
optional string action = 187661878;- Specified by:
hasActionin interfaceSecurityPolicyRuleOrBuilder- Returns:
- Whether the action field is set.
-
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. - fairshare (preview only): when traffic reaches the threshold limit, requests from the clients matching this rule begin to be rate-limited using the Fair Share algorithm. This action is only allowed in security policies of type `CLOUD_ARMOR_INTERNAL_SERVICE`.
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. - fairshare (preview only): when traffic reaches the threshold limit, requests from the clients matching this rule begin to be rate-limited using the Fair Share algorithm. This action is only allowed in security policies of type `CLOUD_ARMOR_INTERNAL_SERVICE`.
optional string action = 187661878;- Specified by:
getActionBytesin interfaceSecurityPolicyRuleOrBuilder- Returns:
- The bytes for action.
-
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
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.
-
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
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.
-
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. [Output only] Type of the resource. Alwayscompute#securityPolicyRule for security policy rules
optional string kind = 3292052;- Specified by:
hasKindin interfaceSecurityPolicyRuleOrBuilder- Returns:
- Whether the kind field is set.
-
getKind
Output only. [Output only] Type of the resource. Alwayscompute#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. [Output only] Type of the resource. Alwayscompute#securityPolicyRule for security policy rules
optional string kind = 3292052;- Specified by:
getKindBytesin interfaceSecurityPolicyRuleOrBuilder- Returns:
- The bytes for kind.
-
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
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.
-
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
-
hasNetworkMatch
public boolean hasNetworkMatch()A match condition that incoming packets are evaluated against for CLOUD_ARMOR_NETWORK security policies. If it matches, the corresponding 'action' is enforced. The match criteria for a rule consists of built-in match fields (like 'srcIpRanges') and potentially multiple user-defined match fields ('userDefinedFields'). Field values may be extracted directly from the packet or derived from it (e.g. 'srcRegionCodes'). Some fields may not be present in every packet (e.g. 'srcPorts'). A user-defined field is only present if the base header is found in the packet and the entire field is in bounds. Each match field may specify which values can match it, listing one or more ranges, prefixes, or exact values that are considered a match for the field. A field value must be present in order to match a specified match field. If no match values are specified for a match field, then any field value is considered to match it, and it's not required to be present. For strings specifying '*' is also equivalent to match all. For a packet to match a rule, all specified match fields must match the corresponding field values derived from the packet. Example: networkMatch: srcIpRanges: - "192.0.2.0/24" - "198.51.100.0/24" userDefinedFields: - name: "ipv4_fragment_offset" values: - "1-0x1fff" The above match condition matches packets with a source IP in 192.0.2.0/24 or 198.51.100.0/24 and a user-defined field named "ipv4_fragment_offset" with a value between 1 and 0x1fff inclusive.optional .google.cloud.compute.v1.SecurityPolicyRuleNetworkMatcher network_match = 463387764;- Specified by:
hasNetworkMatchin interfaceSecurityPolicyRuleOrBuilder- Returns:
- Whether the networkMatch field is set.
-
getNetworkMatch
A match condition that incoming packets are evaluated against for CLOUD_ARMOR_NETWORK security policies. If it matches, the corresponding 'action' is enforced. The match criteria for a rule consists of built-in match fields (like 'srcIpRanges') and potentially multiple user-defined match fields ('userDefinedFields'). Field values may be extracted directly from the packet or derived from it (e.g. 'srcRegionCodes'). Some fields may not be present in every packet (e.g. 'srcPorts'). A user-defined field is only present if the base header is found in the packet and the entire field is in bounds. Each match field may specify which values can match it, listing one or more ranges, prefixes, or exact values that are considered a match for the field. A field value must be present in order to match a specified match field. If no match values are specified for a match field, then any field value is considered to match it, and it's not required to be present. For strings specifying '*' is also equivalent to match all. For a packet to match a rule, all specified match fields must match the corresponding field values derived from the packet. Example: networkMatch: srcIpRanges: - "192.0.2.0/24" - "198.51.100.0/24" userDefinedFields: - name: "ipv4_fragment_offset" values: - "1-0x1fff" The above match condition matches packets with a source IP in 192.0.2.0/24 or 198.51.100.0/24 and a user-defined field named "ipv4_fragment_offset" with a value between 1 and 0x1fff inclusive.optional .google.cloud.compute.v1.SecurityPolicyRuleNetworkMatcher network_match = 463387764;- Specified by:
getNetworkMatchin interfaceSecurityPolicyRuleOrBuilder- Returns:
- The networkMatch.
-
getNetworkMatchOrBuilder
A match condition that incoming packets are evaluated against for CLOUD_ARMOR_NETWORK security policies. If it matches, the corresponding 'action' is enforced. The match criteria for a rule consists of built-in match fields (like 'srcIpRanges') and potentially multiple user-defined match fields ('userDefinedFields'). Field values may be extracted directly from the packet or derived from it (e.g. 'srcRegionCodes'). Some fields may not be present in every packet (e.g. 'srcPorts'). A user-defined field is only present if the base header is found in the packet and the entire field is in bounds. Each match field may specify which values can match it, listing one or more ranges, prefixes, or exact values that are considered a match for the field. A field value must be present in order to match a specified match field. If no match values are specified for a match field, then any field value is considered to match it, and it's not required to be present. For strings specifying '*' is also equivalent to match all. For a packet to match a rule, all specified match fields must match the corresponding field values derived from the packet. Example: networkMatch: srcIpRanges: - "192.0.2.0/24" - "198.51.100.0/24" userDefinedFields: - name: "ipv4_fragment_offset" values: - "1-0x1fff" The above match condition matches packets with a source IP in 192.0.2.0/24 or 198.51.100.0/24 and a user-defined field named "ipv4_fragment_offset" with a value between 1 and 0x1fff inclusive.optional .google.cloud.compute.v1.SecurityPolicyRuleNetworkMatcher network_match = 463387764;- Specified by:
getNetworkMatchOrBuilderin 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
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.
-
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.
-
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.
-
hasRateLimitOptions
public boolean hasRateLimitOptions()Must be specified if the action is "rate_based_ban" or "throttle" or "fairshare". 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
Must be specified if the action is "rate_based_ban" or "throttle" or "fairshare". Cannot be specified for any other actions.
optional .google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions rate_limit_options = 67544315;- Specified by:
getRateLimitOptionsin interfaceSecurityPolicyRuleOrBuilder- Returns:
- The rateLimitOptions.
-
getRateLimitOptionsOrBuilder
Must be specified if the action is "rate_based_ban" or "throttle" or "fairshare". 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
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.
-
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
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static SecurityPolicyRule parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SecurityPolicyRule parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SecurityPolicyRule parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SecurityPolicyRule parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SecurityPolicyRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SecurityPolicyRule parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static SecurityPolicyRule parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static SecurityPolicyRule parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static SecurityPolicyRule parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static SecurityPolicyRule parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected SecurityPolicyRule.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-