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

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

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

## 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 host project. Format: `projects/{project}/locations/{location}` |
| `↳ host_project_registration_id` | `string` Required. The ID to use for the Host Project Registration, which will become the final component of the host project registration's resource name. The ID must be the same as the Google cloud project specified in the host_project_registration.gcp_project field. |
| `↳ host_project_registration` | `https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.HostProjectRegistration` Required. The host project registration to register. |

### getParent

Required. The parent resource for the host project.

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

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

### setParent

Required. The parent resource for the host project.

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

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

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

### getHostProjectRegistrationId

Required. The ID to use for the Host Project Registration, which will
become the final component of the host project registration's resource
name. The ID must be the same as the Google cloud project specified in the
host_project_registration.gcp_project field.

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

### setHostProjectRegistrationId

Required. The ID to use for the Host Project Registration, which will
become the final component of the host project registration's resource
name. The ID must be the same as the Google cloud project specified in the
host_project_registration.gcp_project field.

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

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

### getHostProjectRegistration

Required. The host project registration to register.

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

### hasHostProjectRegistration

### clearHostProjectRegistration

### setHostProjectRegistration

Required. The host project registration to register.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent resource for the host project. Format: `projects/{project}/locations/{location}` Please see HostProjectRegistrationServiceClient::locationName() for help formatting this field. |
| `hostProjectRegistration` | `https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.HostProjectRegistration` Required. The host project registration to register. |
| `hostProjectRegistrationId` | `string` Required. The ID to use for the Host Project Registration, which will become the final component of the host project registration's resource name. The ID must be the same as the Google cloud project specified in the host_project_registration.gcp_project field. |

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