# Grafeas V1 Client - Class Location (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 Location.

An occurrence of a particular package installation found within a system's
filesystem. E.g., glibc was found in `/var/lib/dpkg/status`.

Generated from protobuf message `grafeas.v1.Location`

## Namespace

Grafeas \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ cpe_uri` | `string` Deprecated. The CPE URI in [CPE format](https://cpe.mitre.org/specification/) |
| `↳ version` | `https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.Version` Deprecated. The version installed at this location. |
| `↳ path` | `string` The path from which we gathered that this package/version is installed. |

### getCpeUri

Deprecated.

The CPE URI in [CPE format](https://cpe.mitre.org/specification/)

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

### setCpeUri

Deprecated.

The CPE URI in [CPE format](https://cpe.mitre.org/specification/)

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

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

### getVersion

Deprecated.

The version installed at this location.

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

### hasVersion

### clearVersion

### setVersion

Deprecated.

The version installed at this location.

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

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

### getPath

The path from which we gathered that this package/version is installed.

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

### setPath

The path from which we gathered that this package/version is installed.

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

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