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

Request message for CreateArtifact.

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

## Namespace

Google \\ Cloud \\ ApigeeRegistry \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The parent, which owns this collection of artifacts. Format: `{parent}` |
| `↳ artifact` | `https://docs.cloud.google.com/php/docs/reference/cloud-apigee-registry/latest/V1.Artifact` Required. The artifact to create. |
| `↳ artifact_id` | `string` Required. The ID to use for the artifact, which will become the final component of the artifact's resource name. This value should be 4-63 characters, and valid characters are /\[a-z\]\[0-9\]-/. Following AIP-162, IDs must not have the form of a UUID. |

### getParent

Required. The parent, which owns this collection of artifacts.

Format: `{parent}`

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

### setParent

Required. The parent, which owns this collection of artifacts.

Format: `{parent}`

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

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

### getArtifact

Required. The artifact to create.

| **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 create.

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

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

### getArtifactId

Required. The ID to use for the artifact, which will become the final component of
the artifact's resource name.

This value should be 4-63 characters, and valid characters
are /\[a-z\]\[0-9\]-/.
Following AIP-162, IDs must not have the form of a UUID.

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

### setArtifactId

Required. The ID to use for the artifact, which will become the final component of
the artifact's resource name.

This value should be 4-63 characters, and valid characters
are /\[a-z\]\[0-9\]-/.
Following AIP-162, IDs must not have the form of a UUID.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent, which owns this collection of artifacts. Format: `{parent}` Please see RegistryClient::locationName() for help formatting this field. |
| `artifact` | `https://docs.cloud.google.com/php/docs/reference/cloud-apigee-registry/latest/V1.Artifact` Required. The artifact to create. |
| `artifactId` | `string` Required. The ID to use for the artifact, which will become the final component of the artifact's resource name. This value should be 4-63 characters, and valid characters are /\[a-z\]\[0-9\]-/. Following AIP-162, IDs must not have the form of a UUID. |

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