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

Configuration for a Maven remote repository.

Generated from protobuf message `google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository`

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ public_repository` | `int` One of the publicly available Maven repositories supported by Artifact Registry. |
| `↳ custom_repository` | `https://docs.cloud.google.com/php/docs/reference/cloud-artifact-registry/latest/V1.RemoteRepositoryConfig.MavenRepository.CustomRepository` Customer-specified remote repository. |

### getPublicRepository

One of the publicly available Maven repositories supported by Artifact
Registry.

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

### hasPublicRepository

### setPublicRepository

One of the publicly available Maven repositories supported by Artifact
Registry.

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

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

### getCustomRepository

Customer-specified remote repository.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-artifact-registry/latest/V1.RemoteRepositoryConfig.MavenRepository.CustomRepository|null` |   |

### hasCustomRepository

### setCustomRepository

Customer-specified remote repository.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-artifact-registry/latest/V1.RemoteRepositoryConfig.MavenRepository.CustomRepository` |

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

### getUpstream

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