1.8.4 (latest) 1.7.2 1.6.0 1.5.0 1.4.0 1.3.1 1.2.1 1.1.3 1.0.0 0.6.5 0.5.1 0.4.4 0.3.13 Reference documentation and code samples for the Google Cloud Artifact Registry V1 Client class AptArtifact.

A detailed representation of an Apt artifact. Information in the record
is derived from the archive's control file.

See <https://www.debian.org/doc/debian-policy/ch-controlfields.html>

Generated from protobuf message `google.devtools.artifactregistry.v1.AptArtifact`

## Namespace

Google \\ Cloud \\ ArtifactRegistry \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Output only. The Artifact Registry resource name of the artifact. |
| `↳ package_name` | `string` Output only. The Apt package name of the artifact. |
| `↳ package_type` | `int` Output only. An artifact is a binary or source package. |
| `↳ architecture` | `string` Output only. Operating system architecture of the artifact. |
| `↳ component` | `string` Output only. Repository component of the artifact. |
| `↳ control_file` | `string` Output only. Contents of the artifact's control metadata file. |

### getName

Output only. The Artifact Registry resource name of the artifact.

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

### setName

Output only. The Artifact Registry resource name of the artifact.

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

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

### getPackageName

Output only. The Apt package name of the artifact.

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

### setPackageName

Output only. The Apt package name of the artifact.

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

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

### getPackageType

Output only. An artifact is a binary or source package.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [PackageType](https://docs.cloud.google.com/php/docs/reference/cloud-artifact-registry/latest/V1.AptArtifact.PackageType). |

### setPackageType

Output only. An artifact is a binary or source package.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [PackageType](https://docs.cloud.google.com/php/docs/reference/cloud-artifact-registry/latest/V1.AptArtifact.PackageType). |

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

### getArchitecture

Output only. Operating system architecture of the artifact.

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

### setArchitecture

Output only. Operating system architecture of the artifact.

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

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

### getComponent

Output only. Repository component of the artifact.

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

### setComponent

Output only. Repository component of the artifact.

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

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

### getControlFile

Output only. Contents of the artifact's control metadata file.

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

### setControlFile

Output only. Contents of the artifact's control metadata file.

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

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