Class AdaptiveProtection.Builder (2.91.0)

public static final class AdaptiveProtection.Builder extends GeneratedMessage.Builder<AdaptiveProtection.Builder> implements AdaptiveProtectionOrBuilder

Information about Google Cloud Armor Adaptive Protection.

Protobuf type google.cloud.securitycenter.v1.AdaptiveProtection

Static Methods

getDescriptor()

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

Methods

build()

public AdaptiveProtection build()
Returns
Type Description
AdaptiveProtection

buildPartial()

public AdaptiveProtection buildPartial()
Returns
Type Description
AdaptiveProtection

clear()

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

clearConfidence()

public AdaptiveProtection.Builder clearConfidence()

A score of 0 means that there is low confidence that the detected event is an actual attack. A score of 1 means that there is high confidence that the detected event is an attack. See the Adaptive Protection documentation for further explanation.

double confidence = 1;

Returns
Type Description
AdaptiveProtection.Builder

This builder for chaining.

getConfidence()

public double getConfidence()

A score of 0 means that there is low confidence that the detected event is an actual attack. A score of 1 means that there is high confidence that the detected event is an attack. See the Adaptive Protection documentation for further explanation.

double confidence = 1;

Returns
Type Description
double

The confidence.

getDefaultInstanceForType()

public AdaptiveProtection getDefaultInstanceForType()
Returns
Type Description
AdaptiveProtection

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AdaptiveProtection other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setConfidence(double value)

public AdaptiveProtection.Builder setConfidence(double value)

A score of 0 means that there is low confidence that the detected event is an actual attack. A score of 1 means that there is high confidence that the detected event is an attack. See the Adaptive Protection documentation for further explanation.

double confidence = 1;

Parameter
Name Description
value double

The confidence to set.

Returns
Type Description
AdaptiveProtection.Builder

This builder for chaining.