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

The request to update a repository.

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

## Namespace

Google \\ Cloud \\ ArtifactRegistry \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ repository` | `https://docs.cloud.google.com/php/docs/reference/cloud-artifact-registry/latest/V1.Repository` The repository that replaces the resource on the server. |
| `↳ update_mask` | `Google\Protobuf\FieldMask` The update mask applies to the resource. For the `FieldMask` definition, see <https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask> |

### getRepository

The repository that replaces the resource on the server.

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

### hasRepository

### clearRepository

### setRepository

The repository that replaces the resource on the server.

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

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

### getUpdateMask

The update mask applies to the resource. For the `FieldMask` definition,
see
<https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask>

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\FieldMask|null` |   |

### hasUpdateMask

### clearUpdateMask

### setUpdateMask

The update mask applies to the resource. For the `FieldMask` definition,
see
<https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask>

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\FieldMask` |

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `repository` | `https://docs.cloud.google.com/php/docs/reference/cloud-artifact-registry/latest/V1.Repository` The repository that replaces the resource on the server. |
| `updateMask` | `Google\Protobuf\FieldMask` The update mask applies to the resource. For the `FieldMask` definition, see <https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask> |

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