Class WafSettings.Builder (3.17.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public WafSettings build()
Returns
TypeDescription
WafSettings

buildPartial()

public WafSettings buildPartial()
Returns
TypeDescription
WafSettings

clear()

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

clearField(Descriptors.FieldDescriptor field)

public WafSettings.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
WafSettings.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public WafSettings getDefaultInstanceForType()
Returns
TypeDescription
WafSettings

getDescriptorForType()

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

The enum numeric value on the wire for wafService.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(WafSettings other)

public WafSettings.Builder mergeFrom(WafSettings other)
Parameter
NameDescription
otherWafSettings
Returns
TypeDescription
WafSettings.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public WafSettings.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
WafSettings.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final WafSettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueWafSettings.WafFeature

The wafFeature to set.

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

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

Returns
TypeDescription
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
NameDescription
valueWafSettings.WafService

The wafService to set.

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

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

Returns
TypeDescription
WafSettings.Builder

This builder for chaining.