Class WafSettings.Builder (3.80.0)

public static final class WafSettings.Builder extends GeneratedMessage.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

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

clearWafFeature()

public WafSettings.Builder clearWafFeature()

Required. The Web Application Firewall (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 Web Application Firewall (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.

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 Web Application Firewall (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 Web Application Firewall (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 Web Application Firewall (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 Web Application Firewall (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 GeneratedMessage.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

setWafFeature(WafSettings.WafFeature value)

public WafSettings.Builder setWafFeature(WafSettings.WafFeature value)

Required. The Web Application Firewall (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 Web Application Firewall (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 Web Application Firewall (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 Web Application Firewall (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.