Class WafExpressionSetExpression.Builder (1.65.0)

public static final class WafExpressionSetExpression.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public WafExpressionSetExpression.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
WafExpressionSetExpression.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public WafExpressionSetExpression.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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.

clearOneof(Descriptors.OneofDescriptor oneof)

public WafExpressionSetExpression.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
WafExpressionSetExpression.Builder
Overrides

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.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final WafExpressionSetExpression.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
WafExpressionSetExpression.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public WafExpressionSetExpression.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public WafExpressionSetExpression.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
WafExpressionSetExpression.Builder
Overrides

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.

setUnknownFields(UnknownFieldSet unknownFields)

public final WafExpressionSetExpression.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
WafExpressionSetExpression.Builder
Overrides