# Google Cloud Storage Control V2 Client - Class IntelligenceFinding (1.9.0)

1.9.0 (latest) 1.8.0 1.7.0 1.6.3 1.5.0 1.4.1 1.3.0 1.1.0 1.0.3 0.2.1 0.1.1 Reference documentation and code samples for the Google Cloud Storage Control V2 Client class IntelligenceFinding.

The `IntelligenceFinding` resource that represents a security, performance,
or cost-related finding about a project or bucket.

Generated from protobuf message `google.storage.control.v2.IntelligenceFinding`

## Namespace

Google \\ Cloud \\ Storage \\ Control \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Identifier. The resource name of `IntelligenceFinding`. Format: `projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}` |
| `↳ description` | `string` Output only. A short description about the finding. |
| `↳ type` | `int` Output only. Type of this finding. |
| `↳ category` | `int` Output only. Category of this finding. |
| `↳ severity` | `int` Output only. Severity of the finding. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time at which the finding was created. |
| `↳ update_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time at which the finding was last updated. |
| `↳ target_resource` | `string` Output only. The fully qualified resource name of the resource that this `IntelligenceFinding` applies to. eg: - `storage.googleapis.com/projects/_/buckets/b1` - `cloudresourecemanager.googleapis.com/projects/p1` |
| `↳ associated_resources` | `string[]` Output only. Contains GCP resource names that are relevant to this `IntelligenceFinding`. The `target_resource` is also added as part of `associated_resources`. eg: - `storage.googleapis.com/projects/_/buckets/b1` - `cloudresourecemanager.googleapis.com/projects/p1` |
| `↳ observation_period` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.Interval.html` Output only. The time interval during which the underlying data was used to generate this `IntelligenceFinding`. |
| `↳ coldline_and_archival_storage_operations_spike` | `https://docs.cloud.google.com/php/docs/reference/cloud-storage-control/latest/V2.IntelligenceFinding.ColdlineAndArchivalStorageOperationsSpike` Output only. `IntelligenceFinding` about a spike in Class A/B operations on Coldline or Archive Cloud Storage objects. |
| `↳ throttled_requests_spike` | `https://docs.cloud.google.com/php/docs/reference/cloud-storage-control/latest/V2.IntelligenceFinding.ThrottledRequestSpike` Output only. `IntelligenceFinding` about a spike in throttled requests (429 errors) within a project. |
| `↳ cross_region_egress_spike` | `https://docs.cloud.google.com/php/docs/reference/cloud-storage-control/latest/V2.IntelligenceFinding.CrossRegionEgressSpike` Output only. `IntelligenceFinding` about a spike in cross-region egress. |
| `↳ storage_growth_above_trend` | `https://docs.cloud.google.com/php/docs/reference/cloud-storage-control/latest/V2.IntelligenceFinding.StorageGrowthAboveTrend` Output only. `IntelligenceFinding` about growth in storage above the expected trend. |

### getName

Identifier. The resource name of `IntelligenceFinding`.

Format:
`projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}`

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

### setName

Identifier. The resource name of `IntelligenceFinding`.

Format:
`projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}`

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

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

### getDescription

Output only. A short description about the finding.

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

### setDescription

Output only. A short description about the finding.

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

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

### getType

Output only. Type of this finding.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [FindingType](https://docs.cloud.google.com/php/docs/reference/cloud-storage-control/latest/V2.FindingType). |

### setType

Output only. Type of this finding.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [FindingType](https://docs.cloud.google.com/php/docs/reference/cloud-storage-control/latest/V2.FindingType). |

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

### getCategory

Output only. Category of this finding.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [FindingCategory](https://docs.cloud.google.com/php/docs/reference/cloud-storage-control/latest/V2.FindingCategory). |

### setCategory

Output only. Category of this finding.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [FindingCategory](https://docs.cloud.google.com/php/docs/reference/cloud-storage-control/latest/V2.FindingCategory). |

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

### getSeverity

Output only. Severity of the finding.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [FindingSeverity](https://docs.cloud.google.com/php/docs/reference/cloud-storage-control/latest/V2.FindingSeverity). |

### setSeverity

Output only. Severity of the finding.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [FindingSeverity](https://docs.cloud.google.com/php/docs/reference/cloud-storage-control/latest/V2.FindingSeverity). |

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

### getCreateTime

Output only. The time at which the finding was created.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. The time at which the finding was created.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getUpdateTime

Output only. The time at which the finding was last updated.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. The time at which the finding was last updated.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getTargetResource

Output only. The fully qualified resource name of the resource that this
`IntelligenceFinding` applies to. eg:

- `storage.googleapis.com/projects/_/buckets/b1`
- `cloudresourecemanager.googleapis.com/projects/p1`

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

### setTargetResource

Output only. The fully qualified resource name of the resource that this
`IntelligenceFinding` applies to. eg:

- `storage.googleapis.com/projects/_/buckets/b1`
- `cloudresourecemanager.googleapis.com/projects/p1`

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

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

### getAssociatedResources

Output only. Contains GCP resource names that are
relevant to this `IntelligenceFinding`. The `target_resource` is also added
as part of `associated_resources`. eg:

- `storage.googleapis.com/projects/_/buckets/b1`
- `cloudresourecemanager.googleapis.com/projects/p1`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setAssociatedResources

Output only. Contains GCP resource names that are
relevant to this `IntelligenceFinding`. The `target_resource` is also added
as part of `associated_resources`. eg:

- `storage.googleapis.com/projects/_/buckets/b1`
- `cloudresourecemanager.googleapis.com/projects/p1`

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

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

### getObservationPeriod

Output only. The time interval during which the underlying data was used to
generate this `IntelligenceFinding`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.Interval.html|null` |   |

### hasObservationPeriod

### clearObservationPeriod

### setObservationPeriod

Output only. The time interval during which the underlying data was used to
generate this `IntelligenceFinding`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.Interval.html` |

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

### getColdlineAndArchivalStorageOperationsSpike

Output only. `IntelligenceFinding` about a spike in Class A/B operations
on Coldline or Archive Cloud Storage objects.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-storage-control/latest/V2.IntelligenceFinding.ColdlineAndArchivalStorageOperationsSpike|null` |   |

### hasColdlineAndArchivalStorageOperationsSpike

### setColdlineAndArchivalStorageOperationsSpike

Output only. `IntelligenceFinding` about a spike in Class A/B operations
on Coldline or Archive Cloud Storage objects.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-storage-control/latest/V2.IntelligenceFinding.ColdlineAndArchivalStorageOperationsSpike` |

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

### getThrottledRequestsSpike

Output only. `IntelligenceFinding` about a spike in throttled requests
(429 errors) within a project.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-storage-control/latest/V2.IntelligenceFinding.ThrottledRequestSpike|null` |   |

### hasThrottledRequestsSpike

### setThrottledRequestsSpike

Output only. `IntelligenceFinding` about a spike in throttled requests
(429 errors) within a project.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-storage-control/latest/V2.IntelligenceFinding.ThrottledRequestSpike` |

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

### getCrossRegionEgressSpike

Output only. `IntelligenceFinding` about a spike in cross-region egress.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-storage-control/latest/V2.IntelligenceFinding.CrossRegionEgressSpike|null` |   |

### hasCrossRegionEgressSpike

### setCrossRegionEgressSpike

Output only. `IntelligenceFinding` about a spike in cross-region egress.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-storage-control/latest/V2.IntelligenceFinding.CrossRegionEgressSpike` |

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

### getStorageGrowthAboveTrend

Output only. `IntelligenceFinding` about growth in storage above the
expected trend.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-storage-control/latest/V2.IntelligenceFinding.StorageGrowthAboveTrend|null` |   |

### hasStorageGrowthAboveTrend

### setStorageGrowthAboveTrend

Output only. `IntelligenceFinding` about growth in storage above the
expected trend.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-storage-control/latest/V2.IntelligenceFinding.StorageGrowthAboveTrend` |

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

### getIntelligenceFindingDetails

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