# Google Cloud Storage Control V2 Client - Class FindingSummary (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 FindingSummary.

A summary of findings generated for an organization, a folder, or a project.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ type` | `int` Output only. The type of the finding. |
| `↳ category` | `int` Output only. The category of finding. |
| `↳ target_resource` | `string` Output only. The fully qualified Cloud resource name for which this summary was generated. eg: `//cloudresourcemanager.googleapis.com/projects/p1` |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The creation time of the earliest finding that this summary is based on. |
| `↳ update_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time of the most recent update among all the findings that this summary is based on. |
| `↳ severity` | `int` Severity of the finding. |
| `↳ summary_details` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-storage-control/latest/V2.FindingSummary.SummaryDetails>` Output only. List of `SummaryDetails`. |

### getType

Output only. The type of the 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. The type of the 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. The category of 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. The category of 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` |   |

### getTargetResource

Output only. The fully qualified Cloud resource name for which this
summary was generated.

eg: `//cloudresourcemanager.googleapis.com/projects/p1`

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

### setTargetResource

Output only. The fully qualified Cloud resource name for which this
summary was generated.

eg: `//cloudresourcemanager.googleapis.com/projects/p1`

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

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

### getCreateTime

Output only. The creation time of the earliest finding that this summary is
based on.

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

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. The creation time of the earliest finding that this summary is
based on.

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

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

### getUpdateTime

Output only. The time of the most recent update among all the findings that
this summary is based on.

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

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. The time of the most recent update among all the findings that
this summary is based on.

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

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

### getSeverity

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

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` |   |

### getSummaryDetails

Output only. List of `SummaryDetails`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-storage-control/latest/V2.FindingSummary.SummaryDetails>` |   |

### setSummaryDetails

Output only. List of `SummaryDetails`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-storage-control/latest/V2.FindingSummary.SummaryDetails>` |

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