Class WafExpressionSetExpression.Builder (1.33.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public WafExpressionSetExpression.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
WafExpressionSetExpression.Builder
Overrides

build()

public WafExpressionSetExpression build()
Returns
TypeDescription
WafExpressionSetExpression

buildPartial()

public WafExpressionSetExpression buildPartial()
Returns
TypeDescription
WafExpressionSetExpression

clear()

public WafExpressionSetExpression.Builder clear()
Returns
TypeDescription
WafExpressionSetExpression.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public WafExpressionSetExpression.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
WafExpressionSetExpression.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public WafExpressionSetExpression.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
WafExpressionSetExpression.Builder

This builder for chaining.

clone()

public WafExpressionSetExpression.Builder clone()
Returns
TypeDescription
WafExpressionSetExpression.Builder
Overrides

getDefaultInstanceForType()

public WafExpressionSetExpression getDefaultInstanceForType()
Returns
TypeDescription
WafExpressionSetExpression

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the sensitivity field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(WafExpressionSetExpression other)

public WafExpressionSetExpression.Builder mergeFrom(WafExpressionSetExpression other)
Parameter
NameDescription
otherWafExpressionSetExpression
Returns
TypeDescription
WafExpressionSetExpression.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public WafExpressionSetExpression.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
WafExpressionSetExpression.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public WafExpressionSetExpression.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
WafExpressionSetExpression.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final WafExpressionSetExpression.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
WafExpressionSetExpression.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public WafExpressionSetExpression.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The id to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for id to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueint

The sensitivity to set.

Returns
TypeDescription
WafExpressionSetExpression.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final WafExpressionSetExpression.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
WafExpressionSetExpression.Builder
Overrides