Class WafExpressionSetExpression.Builder (1.93.0)

public static final class WafExpressionSetExpression.Builder extends GeneratedMessage.Builder<WafExpressionSetExpression.Builder> implements WafExpressionSetExpressionOrBuilder

Protobuf type google.cloud.compute.v1.WafExpressionSetExpression

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public WafExpressionSetExpression build()
Returns
Type Description
WafExpressionSetExpression

buildPartial()

public WafExpressionSetExpression buildPartial()
Returns
Type Description
WafExpressionSetExpression

clear()

public WafExpressionSetExpression.Builder clear()
Returns
Type Description
WafExpressionSetExpression.Builder
Overrides

clearId()

public WafExpressionSetExpression.Builder clearId()

Expression ID should uniquely identify the origin of the expression. E.g. owasp-crs-v020901-id973337 identifies Owasp core rule set version 2.9.1 rule id 973337. The ID could be used to determine the individual attack definition that has been detected. It could also be used to exclude it from the policy in case of false positive. required

optional string id = 3355;

Returns
Type Description
WafExpressionSetExpression.Builder

This builder for chaining.

clearSensitivity()

public WafExpressionSetExpression.Builder clearSensitivity()

The sensitivity value associated with the WAF rule ID. This corresponds to the ModSecurity paranoia level, ranging from 1 to 4. 0 is reserved for opt-in only rules.

optional int32 sensitivity = 27532959;

Returns
Type Description
WafExpressionSetExpression.Builder

This builder for chaining.

getDefaultInstanceForType()

public WafExpressionSetExpression getDefaultInstanceForType()
Returns
Type Description
WafExpressionSetExpression

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getId()

public String getId()

Expression ID should uniquely identify the origin of the expression. E.g. owasp-crs-v020901-id973337 identifies Owasp core rule set version 2.9.1 rule id 973337. The ID could be used to determine the individual attack definition that has been detected. It could also be used to exclude it from the policy in case of false positive. required

optional string id = 3355;

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

Expression ID should uniquely identify the origin of the expression. E.g. owasp-crs-v020901-id973337 identifies Owasp core rule set version 2.9.1 rule id 973337. The ID could be used to determine the individual attack definition that has been detected. It could also be used to exclude it from the policy in case of false positive. required

optional string id = 3355;

Returns
Type Description
ByteString

The bytes for id.

getSensitivity()

public int getSensitivity()

The sensitivity value associated with the WAF rule ID. This corresponds to the ModSecurity paranoia level, ranging from 1 to 4. 0 is reserved for opt-in only rules.

optional int32 sensitivity = 27532959;

Returns
Type Description
int

The sensitivity.

hasId()

public boolean hasId()

Expression ID should uniquely identify the origin of the expression. E.g. owasp-crs-v020901-id973337 identifies Owasp core rule set version 2.9.1 rule id 973337. The ID could be used to determine the individual attack definition that has been detected. It could also be used to exclude it from the policy in case of false positive. required

optional string id = 3355;

Returns
Type Description
boolean

Whether the id field is set.

hasSensitivity()

public boolean hasSensitivity()

The sensitivity value associated with the WAF rule ID. This corresponds to the ModSecurity paranoia level, ranging from 1 to 4. 0 is reserved for opt-in only rules.

optional int32 sensitivity = 27532959;

Returns
Type Description
boolean

Whether the sensitivity field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(WafExpressionSetExpression other)

public WafExpressionSetExpression.Builder mergeFrom(WafExpressionSetExpression other)
Parameter
Name Description
other WafExpressionSetExpression
Returns
Type Description
WafExpressionSetExpression.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public WafExpressionSetExpression.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WafExpressionSetExpression.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public WafExpressionSetExpression.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
WafExpressionSetExpression.Builder
Overrides

setId(String value)

public WafExpressionSetExpression.Builder setId(String value)

Expression ID should uniquely identify the origin of the expression. E.g. owasp-crs-v020901-id973337 identifies Owasp core rule set version 2.9.1 rule id 973337. The ID could be used to determine the individual attack definition that has been detected. It could also be used to exclude it from the policy in case of false positive. required

optional string id = 3355;

Parameter
Name Description
value String

The id to set.

Returns
Type Description
WafExpressionSetExpression.Builder

This builder for chaining.

setIdBytes(ByteString value)

public WafExpressionSetExpression.Builder setIdBytes(ByteString value)

Expression ID should uniquely identify the origin of the expression. E.g. owasp-crs-v020901-id973337 identifies Owasp core rule set version 2.9.1 rule id 973337. The ID could be used to determine the individual attack definition that has been detected. It could also be used to exclude it from the policy in case of false positive. required

optional string id = 3355;

Parameter
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
WafExpressionSetExpression.Builder

This builder for chaining.

setSensitivity(int value)

public WafExpressionSetExpression.Builder setSensitivity(int value)

The sensitivity value associated with the WAF rule ID. This corresponds to the ModSecurity paranoia level, ranging from 1 to 4. 0 is reserved for opt-in only rules.

optional int32 sensitivity = 27532959;

Parameter
Name Description
value int

The sensitivity to set.

Returns
Type Description
WafExpressionSetExpression.Builder

This builder for chaining.