0.5.3 (latest) 0.4.4 0.3.0 0.2.1 0.1.4 Reference documentation and code samples for the Google Cloud Api Hub V1 Client class CreateRuntimeProjectAttachmentRequest.

The
[CreateRuntimeProjectAttachment](https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.Client.RuntimeProjectAttachmentServiceClient#_Google_Cloud_ApiHub_V1_Client_RuntimeProjectAttachmentServiceClient__createRuntimeProjectAttachment__)
method's request.

Generated from protobuf message `google.cloud.apihub.v1.CreateRuntimeProjectAttachmentRequest`

## Namespace

Google \\ Cloud \\ ApiHub \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The parent resource for the Runtime Project Attachment. Format: `projects/{project}/locations/{location}` |
| `↳ runtime_project_attachment_id` | `string` Required. The ID to use for the Runtime Project Attachment, which will become the final component of the Runtime Project Attachment's name. The ID must be the same as the project ID of the Google cloud project specified in the runtime_project_attachment.runtime_project field. |
| `↳ runtime_project_attachment` | `https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.RuntimeProjectAttachment` Required. The Runtime Project Attachment to create. |

### getParent

Required. The parent resource for the Runtime Project Attachment.

Format: `projects/{project}/locations/{location}`

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

### setParent

Required. The parent resource for the Runtime Project Attachment.

Format: `projects/{project}/locations/{location}`

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

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

### getRuntimeProjectAttachmentId

Required. The ID to use for the Runtime Project Attachment, which will
become the final component of the Runtime Project Attachment's name. The ID
must be the same as the project ID of the Google cloud project specified in
the runtime_project_attachment.runtime_project field.

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

### setRuntimeProjectAttachmentId

Required. The ID to use for the Runtime Project Attachment, which will
become the final component of the Runtime Project Attachment's name. The ID
must be the same as the project ID of the Google cloud project specified in
the runtime_project_attachment.runtime_project field.

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

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

### getRuntimeProjectAttachment

Required. The Runtime Project Attachment to create.

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

### hasRuntimeProjectAttachment

### clearRuntimeProjectAttachment

### setRuntimeProjectAttachment

Required. The Runtime Project Attachment to create.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent resource for the Runtime Project Attachment. Format: `projects/{project}/locations/{location}` Please see RuntimeProjectAttachmentServiceClient::locationName() for help formatting this field. |
| `runtimeProjectAttachment` | `https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.RuntimeProjectAttachment` Required. The Runtime Project Attachment to create. |
| `runtimeProjectAttachmentId` | `string` Required. The ID to use for the Runtime Project Attachment, which will become the final component of the Runtime Project Attachment's name. The ID must be the same as the project ID of the Google cloud project specified in the runtime_project_attachment.runtime_project field. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.CreateRuntimeProjectAttachmentRequest` |   |