Class SecurityPolicyDdosProtectionConfig.Builder (1.105.0)

public static final class SecurityPolicyDdosProtectionConfig.Builder extends GeneratedMessage.Builder<SecurityPolicyDdosProtectionConfig.Builder> implements SecurityPolicyDdosProtectionConfigOrBuilder

Protobuf type google.cloud.compute.v1.SecurityPolicyDdosProtectionConfig

Static Methods

getDescriptor()

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

Methods

build()

public SecurityPolicyDdosProtectionConfig build()
Returns
Type Description
SecurityPolicyDdosProtectionConfig

buildPartial()

public SecurityPolicyDdosProtectionConfig buildPartial()
Returns
Type Description
SecurityPolicyDdosProtectionConfig

clear()

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

clearDdosAdaptiveProtection()

public SecurityPolicyDdosProtectionConfig.Builder clearDdosAdaptiveProtection()

Check the DdosAdaptiveProtection enum for the list of possible values.

optional string ddos_adaptive_protection = 96895463;

Returns
Type Description
SecurityPolicyDdosProtectionConfig.Builder

This builder for chaining.

clearDdosImpactedBaselineThreshold()

public SecurityPolicyDdosProtectionConfig.Builder clearDdosImpactedBaselineThreshold()

DDoS Protection for Network Load Balancers (and VMs with public IPs) builds DDoS mitigations that minimize collateral damage. It quantifies this as the fraction of a non-abuse baseline that's inadvertently blocked.

Rules whose collateral damage exceeds ddosImpactedBaselineThreshold will not be deployed. Using a lower value will prioritize keeping collateral damage low, possibly at the cost of its effectiveness in rate limiting some or all of the attack. It should typically be unset, so Advanced DDoS (and Adaptive Protection) uses the best mitigation it can find. Setting the threshold is advised if there are logs for false positive detections with high collateral damage, and will cause Advanced DDoS to attempt to find a less aggressive rule that satisfies the constraint. If a suitable rule cannot be found, the system falls back to either no mitigation for smaller attacks or broader network throttles for larger ones.

optional float ddos_impacted_baseline_threshold = 192689584;

Returns
Type Description
SecurityPolicyDdosProtectionConfig.Builder

This builder for chaining.

clearDdosProtection()

public SecurityPolicyDdosProtectionConfig.Builder clearDdosProtection()

Check the DdosProtection enum for the list of possible values.

optional string ddos_protection = 275173268;

Returns
Type Description
SecurityPolicyDdosProtectionConfig.Builder

This builder for chaining.

getDdosAdaptiveProtection()

public String getDdosAdaptiveProtection()

Check the DdosAdaptiveProtection enum for the list of possible values.

optional string ddos_adaptive_protection = 96895463;

Returns
Type Description
String

The ddosAdaptiveProtection.

getDdosAdaptiveProtectionBytes()

public ByteString getDdosAdaptiveProtectionBytes()

Check the DdosAdaptiveProtection enum for the list of possible values.

optional string ddos_adaptive_protection = 96895463;

Returns
Type Description
ByteString

The bytes for ddosAdaptiveProtection.

getDdosImpactedBaselineThreshold()

public float getDdosImpactedBaselineThreshold()

DDoS Protection for Network Load Balancers (and VMs with public IPs) builds DDoS mitigations that minimize collateral damage. It quantifies this as the fraction of a non-abuse baseline that's inadvertently blocked.

Rules whose collateral damage exceeds ddosImpactedBaselineThreshold will not be deployed. Using a lower value will prioritize keeping collateral damage low, possibly at the cost of its effectiveness in rate limiting some or all of the attack. It should typically be unset, so Advanced DDoS (and Adaptive Protection) uses the best mitigation it can find. Setting the threshold is advised if there are logs for false positive detections with high collateral damage, and will cause Advanced DDoS to attempt to find a less aggressive rule that satisfies the constraint. If a suitable rule cannot be found, the system falls back to either no mitigation for smaller attacks or broader network throttles for larger ones.

optional float ddos_impacted_baseline_threshold = 192689584;

Returns
Type Description
float

The ddosImpactedBaselineThreshold.

getDdosProtection()

public String getDdosProtection()

Check the DdosProtection enum for the list of possible values.

optional string ddos_protection = 275173268;

Returns
Type Description
String

The ddosProtection.

getDdosProtectionBytes()

public ByteString getDdosProtectionBytes()

Check the DdosProtection enum for the list of possible values.

optional string ddos_protection = 275173268;

Returns
Type Description
ByteString

The bytes for ddosProtection.

getDefaultInstanceForType()

public SecurityPolicyDdosProtectionConfig getDefaultInstanceForType()
Returns
Type Description
SecurityPolicyDdosProtectionConfig

getDescriptorForType()

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

hasDdosAdaptiveProtection()

public boolean hasDdosAdaptiveProtection()

Check the DdosAdaptiveProtection enum for the list of possible values.

optional string ddos_adaptive_protection = 96895463;

Returns
Type Description
boolean

Whether the ddosAdaptiveProtection field is set.

hasDdosImpactedBaselineThreshold()

public boolean hasDdosImpactedBaselineThreshold()

DDoS Protection for Network Load Balancers (and VMs with public IPs) builds DDoS mitigations that minimize collateral damage. It quantifies this as the fraction of a non-abuse baseline that's inadvertently blocked.

Rules whose collateral damage exceeds ddosImpactedBaselineThreshold will not be deployed. Using a lower value will prioritize keeping collateral damage low, possibly at the cost of its effectiveness in rate limiting some or all of the attack. It should typically be unset, so Advanced DDoS (and Adaptive Protection) uses the best mitigation it can find. Setting the threshold is advised if there are logs for false positive detections with high collateral damage, and will cause Advanced DDoS to attempt to find a less aggressive rule that satisfies the constraint. If a suitable rule cannot be found, the system falls back to either no mitigation for smaller attacks or broader network throttles for larger ones.

optional float ddos_impacted_baseline_threshold = 192689584;

Returns
Type Description
boolean

Whether the ddosImpactedBaselineThreshold field is set.

hasDdosProtection()

public boolean hasDdosProtection()

Check the DdosProtection enum for the list of possible values.

optional string ddos_protection = 275173268;

Returns
Type Description
boolean

Whether the ddosProtection field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SecurityPolicyDdosProtectionConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDdosAdaptiveProtection(String value)

public SecurityPolicyDdosProtectionConfig.Builder setDdosAdaptiveProtection(String value)

Check the DdosAdaptiveProtection enum for the list of possible values.

optional string ddos_adaptive_protection = 96895463;

Parameter
Name Description
value String

The ddosAdaptiveProtection to set.

Returns
Type Description
SecurityPolicyDdosProtectionConfig.Builder

This builder for chaining.

setDdosAdaptiveProtectionBytes(ByteString value)

public SecurityPolicyDdosProtectionConfig.Builder setDdosAdaptiveProtectionBytes(ByteString value)

Check the DdosAdaptiveProtection enum for the list of possible values.

optional string ddos_adaptive_protection = 96895463;

Parameter
Name Description
value ByteString

The bytes for ddosAdaptiveProtection to set.

Returns
Type Description
SecurityPolicyDdosProtectionConfig.Builder

This builder for chaining.

setDdosImpactedBaselineThreshold(float value)

public SecurityPolicyDdosProtectionConfig.Builder setDdosImpactedBaselineThreshold(float value)

DDoS Protection for Network Load Balancers (and VMs with public IPs) builds DDoS mitigations that minimize collateral damage. It quantifies this as the fraction of a non-abuse baseline that's inadvertently blocked.

Rules whose collateral damage exceeds ddosImpactedBaselineThreshold will not be deployed. Using a lower value will prioritize keeping collateral damage low, possibly at the cost of its effectiveness in rate limiting some or all of the attack. It should typically be unset, so Advanced DDoS (and Adaptive Protection) uses the best mitigation it can find. Setting the threshold is advised if there are logs for false positive detections with high collateral damage, and will cause Advanced DDoS to attempt to find a less aggressive rule that satisfies the constraint. If a suitable rule cannot be found, the system falls back to either no mitigation for smaller attacks or broader network throttles for larger ones.

optional float ddos_impacted_baseline_threshold = 192689584;

Parameter
Name Description
value float

The ddosImpactedBaselineThreshold to set.

Returns
Type Description
SecurityPolicyDdosProtectionConfig.Builder

This builder for chaining.

setDdosProtection(String value)

public SecurityPolicyDdosProtectionConfig.Builder setDdosProtection(String value)

Check the DdosProtection enum for the list of possible values.

optional string ddos_protection = 275173268;

Parameter
Name Description
value String

The ddosProtection to set.

Returns
Type Description
SecurityPolicyDdosProtectionConfig.Builder

This builder for chaining.

setDdosProtectionBytes(ByteString value)

public SecurityPolicyDdosProtectionConfig.Builder setDdosProtectionBytes(ByteString value)

Check the DdosProtection enum for the list of possible values.

optional string ddos_protection = 275173268;

Parameter
Name Description
value ByteString

The bytes for ddosProtection to set.

Returns
Type Description
SecurityPolicyDdosProtectionConfig.Builder

This builder for chaining.