Class WafSettings.Builder (3.43.0)

public static final class WafSettings.Builder extends GeneratedMessageV3.Builder<WafSettings.Builder> implements WafSettingsOrBuilder

Settings specific to keys that can be used for WAF (Web Application Firewall).

Protobuf type google.cloud.recaptchaenterprise.v1.WafSettings

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public WafSettings build()
Returns
Type Description
WafSettings

buildPartial()

public WafSettings buildPartial()
Returns
Type Description
WafSettings

clear()

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

clearField(Descriptors.FieldDescriptor field)

public WafSettings.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
WafSettings.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearWafFeature()

public WafSettings.Builder clearWafFeature()

Required. The WAF feature for which this key is enabled.

.google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature waf_feature = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
WafSettings.Builder

This builder for chaining.

clearWafService()

public WafSettings.Builder clearWafService()

Required. The WAF service that uses this key.

.google.cloud.recaptchaenterprise.v1.WafSettings.WafService waf_service = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
WafSettings.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public WafSettings getDefaultInstanceForType()
Returns
Type Description
WafSettings

getDescriptorForType()

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

getWafFeature()

public WafSettings.WafFeature getWafFeature()

Required. The WAF feature for which this key is enabled.

.google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature waf_feature = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
WafSettings.WafFeature

The wafFeature.

getWafFeatureValue()

public int getWafFeatureValue()

Required. The WAF feature for which this key is enabled.

.google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature waf_feature = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for wafFeature.

getWafService()

public WafSettings.WafService getWafService()

Required. The WAF service that uses this key.

.google.cloud.recaptchaenterprise.v1.WafSettings.WafService waf_service = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
WafSettings.WafService

The wafService.

getWafServiceValue()

public int getWafServiceValue()

Required. The WAF service that uses this key.

.google.cloud.recaptchaenterprise.v1.WafSettings.WafService waf_service = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for wafService.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(WafSettings other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setWafFeature(WafSettings.WafFeature value)

public WafSettings.Builder setWafFeature(WafSettings.WafFeature value)

Required. The WAF feature for which this key is enabled.

.google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature waf_feature = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value WafSettings.WafFeature

The wafFeature to set.

Returns
Type Description
WafSettings.Builder

This builder for chaining.

setWafFeatureValue(int value)

public WafSettings.Builder setWafFeatureValue(int value)

Required. The WAF feature for which this key is enabled.

.google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature waf_feature = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The enum numeric value on the wire for wafFeature to set.

Returns
Type Description
WafSettings.Builder

This builder for chaining.

setWafService(WafSettings.WafService value)

public WafSettings.Builder setWafService(WafSettings.WafService value)

Required. The WAF service that uses this key.

.google.cloud.recaptchaenterprise.v1.WafSettings.WafService waf_service = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value WafSettings.WafService

The wafService to set.

Returns
Type Description
WafSettings.Builder

This builder for chaining.

setWafServiceValue(int value)

public WafSettings.Builder setWafServiceValue(int value)

Required. The WAF service that uses this key.

.google.cloud.recaptchaenterprise.v1.WafSettings.WafService waf_service = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The enum numeric value on the wire for wafService to set.

Returns
Type Description
WafSettings.Builder

This builder for chaining.