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

The metadata associated with a spec of the API version.

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

## Namespace

Google \\ Cloud \\ ApiHub \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ spec` | `https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.Spec` Required. The spec resource to be pushed to Hub's collect layer. The ID of the spec will be generated by Hub. |
| `↳ original_id` | `string` Optional. The unique identifier of the spec in the system where it was originally created. |
| `↳ original_create_time` | `Google\Protobuf\Timestamp` Optional. Timestamp indicating when the spec was created at the source. |
| `↳ original_update_time` | `Google\Protobuf\Timestamp` Required. Timestamp indicating when the spec was last updated at the source. |

### getSpec

Required. The spec resource to be pushed to Hub's collect layer. The ID of
the spec will be generated by Hub.

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

### hasSpec

### clearSpec

### setSpec

Required. The spec resource to be pushed to Hub's collect layer. The ID of
the spec will be generated by Hub.

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

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

### getOriginalId

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

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

### setOriginalId

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

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

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

### getOriginalCreateTime

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

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

### hasOriginalCreateTime

### clearOriginalCreateTime

### setOriginalCreateTime

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

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

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

### getOriginalUpdateTime

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

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

### hasOriginalUpdateTime

### clearOriginalUpdateTime

### setOriginalUpdateTime

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

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

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