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

PackageNote represents a particular package version.

Generated from protobuf message `grafeas.v1.PackageNote`

## Namespace

Grafeas \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` The name of the package. |
| `↳ distribution` | `array<https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.Distribution>` Deprecated. The various channels by which a package is distributed. |
| `↳ package_type` | `string` The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.). |
| `↳ cpe_uri` | `string` The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. The cpe_uri will be blank for language packages. |
| `↳ architecture` | `int` The CPU architecture for which packages in this distribution channel were built. Architecture will be blank for language packages. |
| `↳ version` | `https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.Version` The version of the package. |
| `↳ maintainer` | `string` A freeform text denoting the maintainer of this package. |
| `↳ url` | `string` The homepage for this package. |
| `↳ description` | `string` The description of this package. |
| `↳ license` | `https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.License` Licenses that have been declared by the authors of the package. |
| `↳ digest` | `array<https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.Digest>` Hash value, typically a file digest, that allows unique identification a specific package. |

### getName

The name of the package.

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

### setName

The name of the package.

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

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

### getDistribution

Deprecated.

The various channels by which a package is distributed.

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

### setDistribution

Deprecated.

The various channels by which a package is distributed.

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

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

### getPackageType

The type of package; whether native or non native (e.g., ruby gems,
node.js packages, etc.).

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

### setPackageType

The type of package; whether native or non native (e.g., ruby gems,
node.js packages, etc.).

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

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

### getCpeUri

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

The cpe_uri will be blank for language packages.

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

### setCpeUri

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

The cpe_uri will be blank for language packages.

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

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

### getArchitecture

The CPU architecture for which packages in this distribution channel were
built. Architecture will be blank for language packages.

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

### setArchitecture

The CPU architecture for which packages in this distribution channel were
built. Architecture will be blank for language packages.

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

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

### getVersion

The version of the package.

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

### hasVersion

### clearVersion

### setVersion

The version of the package.

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

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

### getMaintainer

A freeform text denoting the maintainer of this package.

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

### setMaintainer

A freeform text denoting the maintainer of this package.

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

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

### getUrl

The homepage for this package.

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

### setUrl

The homepage for this package.

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

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

### getDescription

The description of this package.

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

### setDescription

The description of this package.

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

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

### getLicense

Licenses that have been declared by the authors of the package.

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

### hasLicense

### clearLicense

### setLicense

Licenses that have been declared by the authors of the package.

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

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

### getDigest

Hash value, typically a file digest, that allows unique
identification a specific package.

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

### setDigest

Hash value, typically a file digest, that allows unique
identification a specific package.

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

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