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

Host project registration refers to the registration of a Google cloud
project with Api Hub as a host project. This is the project where Api Hub is
provisioned. It acts as the consumer project for the Api Hub instance
provisioned. Multiple runtime projects can be attached to the host project
and these attachments define the scope of Api Hub.

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

## Namespace

Google \\ Cloud \\ ApiHub \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Identifier. The name of the host project registration. Format: "projects/{project}/locations/{location}/hostProjectRegistrations/{host_project_registration}". |
| `↳ gcp_project` | `string` Required. Immutable. Google cloud project name in the format: "projects/abc" or "projects/123". As input, project name with either project id or number are accepted. As output, this field will contain project number. |
| `↳ create_time` | `Google\Protobuf\Timestamp` Output only. The time at which the host project registration was created. |

### getName

Identifier. The name of the host project registration.

Format:
"projects/{project}/locations/{location}/hostProjectRegistrations/{host_project_registration}".

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

### setName

Identifier. The name of the host project registration.

Format:
"projects/{project}/locations/{location}/hostProjectRegistrations/{host_project_registration}".

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

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

### getGcpProject

Required. Immutable. Google cloud project name in the format:
"projects/abc" or "projects/123". As input, project name with either
project id or number are accepted. As output, this field will contain
project number.

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

### setGcpProject

Required. Immutable. Google cloud project name in the format:
"projects/abc" or "projects/123". As input, project name with either
project id or number are accepted. As output, this field will contain
project number.

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

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

### getCreateTime

Output only. The time at which the host project registration was created.

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

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. The time at which the host project registration was created.

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

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