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 PublicRepository.

Publicly available Apt repositories constructed from a common repository
base and a custom repository path.

Generated from protobuf message `google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository`

## Namespace

Google \\ Cloud \\ ArtifactRegistry \\ V1 \\ RemoteRepositoryConfig \\ AptRepository

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ repository_base` | `int` A common public repository base for Apt. |
| `↳ repository_path` | `string` A custom field to define a path to a specific repository from the base. |

### getRepositoryBase

A common public repository base for Apt.

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

### setRepositoryBase

A common public repository base for Apt.

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

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

### getRepositoryPath

A custom field to define a path to a specific repository from the base.

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

### setRepositoryPath

A custom field to define a path to a specific repository from the base.

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

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