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

The API metadata.

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

## Namespace

Google \\ Cloud \\ ApiHub \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ api` | `https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.Api` Required. The API resource to be pushed to Hub's collect layer. The ID of the API resource will be generated by Hub to ensure uniqueness across all APIs across systems. |
| `↳ versions` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.VersionMetadata>` Optional. The list of versions present in an API resource. |
| `↳ original_id` | `string` Optional. The unique identifier of the API in the system where it was originally created. |
| `↳ original_create_time` | `Google\Protobuf\Timestamp` Optional. Timestamp indicating when the API was created at the source. |
| `↳ original_update_time` | `Google\Protobuf\Timestamp` Required. Timestamp indicating when the API was last updated at the source. |

### getApi

Required. The API resource to be pushed to Hub's collect layer. The ID of
the API resource will be generated by Hub to ensure uniqueness across all
APIs across systems.

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

### hasApi

### clearApi

### setApi

Required. The API resource to be pushed to Hub's collect layer. The ID of
the API resource will be generated by Hub to ensure uniqueness across all
APIs across systems.

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

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

### getVersions

Optional. The list of versions present in an API resource.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.VersionMetadata>` |   |

### setVersions

Optional. The list of versions present in an API resource.

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

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

### getOriginalId

Optional. The unique identifier of the API in the system where it was
originally created.

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

### setOriginalId

Optional. The unique identifier of the API in the system where it was
originally created.

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

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

### getOriginalCreateTime

Optional. Timestamp indicating when the API was created at the source.

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

### hasOriginalCreateTime

### clearOriginalCreateTime

### setOriginalCreateTime

Optional. Timestamp indicating when the API was created at the source.

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

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

### getOriginalUpdateTime

Required. Timestamp indicating when the API was last updated at the source.

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

### hasOriginalUpdateTime

### clearOriginalUpdateTime

### setOriginalUpdateTime

Required. Timestamp indicating when the API was last updated at the source.

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

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