# Compute V1 Client - Class SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig (2.10.0)

2.10.0 (latest) 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.1 2.0.0 1.36.0 1.35.0 1.34.0 1.33.0 1.32.0 1.31.0 1.30.0 1.29.0 1.28.0 1.27.0 1.26.0 1.25.0 1.24.0 1.23.0 1.22.1 1.21.0 1.20.0 1.19.0 1.18.1 1.17.0 1.16.2 1.14.0 1.13.0 1.12.1 1.11.1 1.10.1 1.9.1 1.8.3 1.7.1 1.6.1 1.5.0 Reference documentation and code samples for the Compute V1 Client class SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig.

Generated from protobuf message `google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig`

## Namespace

Google \\ Cloud \\ Compute \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ auto_deploy_confidence_threshold` | `float` |
| `↳ auto_deploy_expiration_sec` | `int` |
| `↳ auto_deploy_impacted_baseline_threshold` | `float` |
| `↳ auto_deploy_load_threshold` | `float` |
| `↳ detection_absolute_qps` | `float` |
| `↳ detection_load_threshold` | `float` |
| `↳ detection_relative_to_baseline_qps` | `float` |
| `↳ name` | `string` The name must be 1-63 characters long, and comply withRFC1035. The name must be unique within the security policy. |
| `↳ traffic_granularity_configs` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig>` Configuration options for enabling Adaptive Protection to operate on specified granular traffic units. |

### getAutoDeployConfidenceThreshold

Generated from protobuf field `optional float auto_deploy_confidence_threshold = 84309694;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `float` |   |

### hasAutoDeployConfidenceThreshold

### clearAutoDeployConfidenceThreshold

### setAutoDeployConfidenceThreshold

Generated from protobuf field `optional float auto_deploy_confidence_threshold = 84309694;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `float` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAutoDeployExpirationSec

Generated from protobuf field `optional int32 auto_deploy_expiration_sec = 69638793;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### hasAutoDeployExpirationSec

### clearAutoDeployExpirationSec

### setAutoDeployExpirationSec

Generated from protobuf field `optional int32 auto_deploy_expiration_sec = 69638793;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAutoDeployImpactedBaselineThreshold

Generated from protobuf field `optional float auto_deploy_impacted_baseline_threshold = 292441667;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `float` |   |

### hasAutoDeployImpactedBaselineThreshold

### clearAutoDeployImpactedBaselineThreshold

### setAutoDeployImpactedBaselineThreshold

Generated from protobuf field `optional float auto_deploy_impacted_baseline_threshold = 292441667;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `float` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAutoDeployLoadThreshold

Generated from protobuf field `optional float auto_deploy_load_threshold = 522227738;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `float` |   |

### hasAutoDeployLoadThreshold

### clearAutoDeployLoadThreshold

### setAutoDeployLoadThreshold

Generated from protobuf field `optional float auto_deploy_load_threshold = 522227738;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `float` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDetectionAbsoluteQps

Generated from protobuf field `optional float detection_absolute_qps = 383123174;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `float` |   |

### hasDetectionAbsoluteQps

### clearDetectionAbsoluteQps

### setDetectionAbsoluteQps

Generated from protobuf field `optional float detection_absolute_qps = 383123174;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `float` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDetectionLoadThreshold

Generated from protobuf field `optional float detection_load_threshold = 430499148;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `float` |   |

### hasDetectionLoadThreshold

### clearDetectionLoadThreshold

### setDetectionLoadThreshold

Generated from protobuf field `optional float detection_load_threshold = 430499148;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `float` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDetectionRelativeToBaselineQps

Generated from protobuf field `optional float detection_relative_to_baseline_qps = 291343749;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `float` |   |

### hasDetectionRelativeToBaselineQps

### clearDetectionRelativeToBaselineQps

### setDetectionRelativeToBaselineQps

Generated from protobuf field `optional float detection_relative_to_baseline_qps = 291343749;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `float` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getName

The name must be 1-63 characters long, and comply withRFC1035.

The name must be unique within the security policy.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasName

### clearName

### setName

The name must be 1-63 characters long, and comply withRFC1035.

The name must be unique within the security policy.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getTrafficGranularityConfigs

Configuration options for enabling Adaptive Protection to operate
on specified granular traffic units.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig>` |   |

### setTrafficGranularityConfigs

Configuration options for enabling Adaptive Protection to operate
on specified granular traffic units.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |