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

Artifact policy configuration for the repository contents.

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

## Namespace

Google \\ Cloud \\ ArtifactRegistry \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ id` | `string` The user-provided ID of the upstream policy. |
| `↳ repository` | `string` A reference to the repository resource, for example: `projects/p1/locations/us-central1/repositories/repo1`. |
| `↳ priority` | `int` Entries with a greater priority value take precedence in the pull order. |

### getId

The user-provided ID of the upstream policy.

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

### setId

The user-provided ID of the upstream policy.

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

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

### getRepository

A reference to the repository resource, for example:
`projects/p1/locations/us-central1/repositories/repo1`.

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

### setRepository

A reference to the repository resource, for example:
`projects/p1/locations/us-central1/repositories/repo1`.

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

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

### getPriority

Entries with a greater priority value take precedence in the pull order.

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

### setPriority

Entries with a greater priority value take precedence in the pull order.

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

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