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

This represents a particular channel of distribution for a given package.

E.g., Debian's jessie-backports dpkg mirror.

Generated from protobuf message `grafeas.v1.Distribution`

## Namespace

Grafeas \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ cpe_uri` | `string` The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. |
| `↳ architecture` | `int` The CPU architecture for which packages in this distribution channel were built. |
| `↳ latest_version` | `https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.Version` The latest available version of this package in this distribution channel. |
| `↳ maintainer` | `string` A freeform string denoting the maintainer of this package. |
| `↳ url` | `string` The distribution channel-specific homepage for this package. |
| `↳ description` | `string` The distribution channel-specific description of this package. |

### getCpeUri

The cpe_uri in [CPE format](https://cpe.mitre.org/specification/)
denoting the package manager version distributing a package.

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

### setCpeUri

The cpe_uri in [CPE format](https://cpe.mitre.org/specification/)
denoting the package manager version distributing a package.

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

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

### getArchitecture

The CPU architecture for which packages in this distribution channel were
built.

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

### setArchitecture

The CPU architecture for which packages in this distribution channel were
built.

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

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

### getLatestVersion

The latest available version of this package in this distribution channel.

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

### hasLatestVersion

### clearLatestVersion

### setLatestVersion

The latest available version of this package in this distribution channel.

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

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

### getMaintainer

A freeform string denoting the maintainer of this package.

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

### setMaintainer

A freeform string denoting the maintainer of this package.

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

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

### getUrl

The distribution channel-specific homepage for this package.

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

### setUrl

The distribution channel-specific homepage for this package.

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

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

### getDescription

The distribution channel-specific description of this package.

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

### setDescription

The distribution channel-specific description of this package.

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

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