# Google Cloud Security Command Center V1 Client - Class Cve (2.5.1)

2.5.1 (latest) 2.5.0 2.4.2 2.3.0 2.2.1 2.1.1 2.0.4 1.32.0 1.31.0 1.30.0 1.29.0 1.28.2 1.21.0 1.20.2 1.19.1 1.18.0 1.17.0 1.16.0 1.15.1 1.14.2 1.13.1 Reference documentation and code samples for the Google Cloud Security Command Center V1 Client class Cve.

CVE stands for Common Vulnerabilities and Exposures.

Information from the [CVE
record](https://www.cve.org/ResourcesSupport/Glossary) that describes this
vulnerability.

Generated from protobuf message `google.cloud.securitycenter.v1.Cve`

## Namespace

Google \\ Cloud \\ SecurityCenter \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ id` | `string` The unique identifier for the vulnerability. e.g. CVE-2021-34527 |
| `↳ references` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.Reference>` Additional information about the CVE. e.g. <https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527> |
| `↳ cvssv3` | `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.Cvssv3` Describe Common Vulnerability Scoring System specified at <https://www.first.org/cvss/v3.1/specification-document> |
| `↳ upstream_fix_available` | `bool` Whether upstream fix is available for the CVE. |
| `↳ impact` | `int` The potential impact of the vulnerability if it was to be exploited. |
| `↳ exploitation_activity` | `int` The exploitation activity of the vulnerability in the wild. |
| `↳ observed_in_the_wild` | `bool` Whether or not the vulnerability has been observed in the wild. |
| `↳ zero_day` | `bool` Whether or not the vulnerability was zero day when the finding was published. |
| `↳ exploit_release_date` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Date the first publicly available exploit or PoC was released. |

### getId

The unique identifier for the vulnerability. e.g. CVE-2021-34527

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

### setId

The unique identifier for the vulnerability. e.g. CVE-2021-34527

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

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

### getReferences

Additional information about the CVE.

e.g. <https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527>

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

### setReferences

Additional information about the CVE.

e.g. <https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527>

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

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

### getCvssv3

Describe Common Vulnerability Scoring System specified at
<https://www.first.org/cvss/v3.1/specification-document>

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.Cvssv3|null` |   |

### hasCvssv3

### clearCvssv3

### setCvssv3

Describe Common Vulnerability Scoring System specified at
<https://www.first.org/cvss/v3.1/specification-document>

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.Cvssv3` |

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

### getUpstreamFixAvailable

Whether upstream fix is available for the CVE.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setUpstreamFixAvailable

Whether upstream fix is available for the CVE.

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

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

### getImpact

The potential impact of the vulnerability if it was to be exploited.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [RiskRating](https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.Cve.RiskRating). |

### setImpact

The potential impact of the vulnerability if it was to be exploited.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [RiskRating](https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.Cve.RiskRating). |

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

### getExploitationActivity

The exploitation activity of the vulnerability in the wild.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [ExploitationActivity](https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.Cve.ExploitationActivity). |

### setExploitationActivity

The exploitation activity of the vulnerability in the wild.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [ExploitationActivity](https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.Cve.ExploitationActivity). |

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

### getObservedInTheWild

Whether or not the vulnerability has been observed in the wild.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setObservedInTheWild

Whether or not the vulnerability has been observed in the wild.

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

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

### getZeroDay

Whether or not the vulnerability was zero day when the finding was
published.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setZeroDay

Whether or not the vulnerability was zero day when the finding was
published.

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

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

### getExploitReleaseDate

Date the first publicly available exploit or PoC was released.

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

### hasExploitReleaseDate

### clearExploitReleaseDate

### setExploitReleaseDate

Date the first publicly available exploit or PoC was released.

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

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