1.1.6 (latest) 1.1.4 1.0.4 0.5.5 0.4.2 0.3.2 0.2.7 Reference documentation and code samples for the Google Cloud Apigee Registry V1 Client class ReplaceArtifactRequest.

Request message for ReplaceArtifact.

Generated from protobuf message `google.cloud.apigeeregistry.v1.ReplaceArtifactRequest`

## Namespace

Google \\ Cloud \\ ApigeeRegistry \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ artifact` | `https://docs.cloud.google.com/php/docs/reference/cloud-apigee-registry/latest/V1.Artifact` Required. The artifact to replace. The `name` field is used to identify the artifact to replace. Format: `{parent}/artifacts/*` |

### getArtifact

Required. The artifact to replace.

The `name` field is used to identify the artifact to replace.
Format: `{parent}/artifacts/*`

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

### hasArtifact

### clearArtifact

### setArtifact

Required. The artifact to replace.

The `name` field is used to identify the artifact to replace.
Format: `{parent}/artifacts/*`

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

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `artifact` | `https://docs.cloud.google.com/php/docs/reference/cloud-apigee-registry/latest/V1.Artifact` Required. The artifact to replace. The `name` field is used to identify the artifact to replace. Format: `{parent}/artifacts/*` |

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