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

The Artifact Registry settings that apply to a Project.

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

## Namespace

Google \\ Cloud \\ ArtifactRegistry \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` The name of the project's settings. Always of the form: projects/{project-id}/projectSettings In update request: never set In response: always set |
| `↳ legacy_redirection_state` | `int` The redirection state of the legacy repositories in this project. |
| `↳ pull_percent` | `int` The percentage of pull traffic to redirect from GCR to AR when using partial redirection. |

### getName

The name of the project's settings.

Always of the form:
projects/{project-id}/projectSettings
In update request: never set
In response: always set

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

### setName

The name of the project's settings.

Always of the form:
projects/{project-id}/projectSettings
In update request: never set
In response: always set

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

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

### getLegacyRedirectionState

The redirection state of the legacy repositories in this project.

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

### setLegacyRedirectionState

The redirection state of the legacy repositories in this project.

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

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

### getPullPercent

The percentage of pull traffic to redirect from GCR to AR when using
partial redirection.

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

### setPullPercent

The percentage of pull traffic to redirect from GCR to AR when using
partial redirection.

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

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