# Grafeas V1 Client - Class PackageIssue (1.7.0)

1.7.0 (latest) 1.6.0 1.5.0 1.4.0 1.3.2 1.2.2 1.1.3 1.0.0 0.10.3 0.9.0 0.8.3 0.7.1 0.6.0 0.5.0 0.4.4 Reference documentation and code samples for the Grafeas V1 Client class PackageIssue.

A detail for a distro and package this vulnerability occurrence was found
in and its associated fix (if one is available).

Generated from protobuf message `grafeas.v1.VulnerabilityOccurrence.PackageIssue`

## Namespace

Grafeas \\ V1 \\ VulnerabilityOccurrence

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ affected_cpe_uri` | `string` Required. The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability was found in. |
| `↳ affected_package` | `string` Required. The package this vulnerability was found in. |
| `↳ affected_version` | `https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.Version` Required. The version of the package that is installed on the resource affected by this vulnerability. |
| `↳ fixed_cpe_uri` | `string` The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability was fixed in. It is possible for this to be different from the affected_cpe_uri. |
| `↳ fixed_package` | `string` The package this vulnerability was fixed in. It is possible for this to be different from the affected_package. |
| `↳ fixed_version` | `https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.Version` Required. The version of the package this vulnerability was fixed in. Setting this to VersionKind.MAXIMUM means no fix is yet available. |
| `↳ fix_available` | `bool` Output only. Whether a fix is available for this package. |
| `↳ package_type` | `string` The type of package (e.g. OS, MAVEN, GO). |
| `↳ effective_severity` | `int` The distro or language system assigned severity for this vulnerability when that is available and note provider assigned severity when it is not available. |
| `↳ file_location` | `array<https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.FileLocation>` The location at which this package was found. |

### getAffectedCpeUri

Required. The [CPE URI](https://cpe.mitre.org/specification/) this
vulnerability was found in.

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

### setAffectedCpeUri

Required. The [CPE URI](https://cpe.mitre.org/specification/) this
vulnerability was found in.

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

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

### getAffectedPackage

Required. The package this vulnerability was found in.

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

### setAffectedPackage

Required. The package this vulnerability was found in.

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

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

### getAffectedVersion

Required. The version of the package that is installed on the resource
affected by this vulnerability.

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

### hasAffectedVersion

### clearAffectedVersion

### setAffectedVersion

Required. The version of the package that is installed on the resource
affected by this vulnerability.

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

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

### getFixedCpeUri

The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability
was fixed in. It is possible for this to be different from the
affected_cpe_uri.

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

### setFixedCpeUri

The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability
was fixed in. It is possible for this to be different from the
affected_cpe_uri.

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

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

### getFixedPackage

The package this vulnerability was fixed in. It is possible for this to
be different from the affected_package.

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

### setFixedPackage

The package this vulnerability was fixed in. It is possible for this to
be different from the affected_package.

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

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

### getFixedVersion

Required. The version of the package this vulnerability was fixed in.

Setting this to VersionKind.MAXIMUM means no fix is yet available.

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

### hasFixedVersion

### clearFixedVersion

### setFixedVersion

Required. The version of the package this vulnerability was fixed in.

Setting this to VersionKind.MAXIMUM means no fix is yet available.

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

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

### getFixAvailable

Output only. Whether a fix is available for this package.

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

### setFixAvailable

Output only. Whether a fix is available for this package.

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

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

### getPackageType

The type of package (e.g. OS, MAVEN, GO).

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

### setPackageType

The type of package (e.g. OS, MAVEN, GO).

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

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

### getEffectiveSeverity

The distro or language system assigned severity for this vulnerability
when that is available and note provider assigned severity when it is not
available.

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

### setEffectiveSeverity

The distro or language system assigned severity for this vulnerability
when that is available and note provider assigned severity when it is not
available.

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

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

### getFileLocation

The location at which this package was found.

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

### setFileLocation

The location at which this package was found.

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

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