Class AdaptiveProtection.Builder (2.60.0)

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

Information about Google Cloud Armor Adaptive Protection.

Protobuf type google.cloud.securitycenter.v2.AdaptiveProtection

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AdaptiveProtection.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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