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

The metadata associated with a version of the API resource.

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

## Namespace

Google \\ Cloud \\ ApiHub \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ version` | `https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.Version` Required. Represents a version of the API resource in API hub. The ID of the version will be generated by Hub. |
| `↳ specs` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.SpecMetadata>` Optional. The specs associated with this version. Note that an API version can be associated with multiple specs. |
| `↳ deployments` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.DeploymentMetadata>` Optional. The deployments linked to this API version. Note: A particular API version could be deployed to multiple deployments (for dev deployment, UAT deployment, etc.) |
| `↳ original_id` | `string` Optional. The unique identifier of the version in the system where it was originally created. |
| `↳ original_create_time` | `Google\Protobuf\Timestamp` Optional. Timestamp indicating when the version was created at the source. |
| `↳ original_update_time` | `Google\Protobuf\Timestamp` Required. Timestamp indicating when the version was last updated at the source. |

### getVersion

Required. Represents a version of the API resource in API hub. The ID of
the version will be generated by Hub.

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

### hasVersion

### clearVersion

### setVersion

Required. Represents a version of the API resource in API hub. The ID of
the version will be generated by Hub.

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

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

### getSpecs

Optional. The specs associated with this version.

Note that an API version can be associated with multiple specs.

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

### setSpecs

Optional. The specs associated with this version.

Note that an API version can be associated with multiple specs.

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

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

### getDeployments

Optional. The deployments linked to this API version.

Note: A particular API version could be deployed to multiple deployments
(for dev deployment, UAT deployment, etc.)

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

### setDeployments

Optional. The deployments linked to this API version.

Note: A particular API version could be deployed to multiple deployments
(for dev deployment, UAT deployment, etc.)

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

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

### getOriginalId

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

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

### setOriginalId

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

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

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

### getOriginalCreateTime

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

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

### hasOriginalCreateTime

### clearOriginalCreateTime

### setOriginalCreateTime

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

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

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

### getOriginalUpdateTime

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

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

### hasOriginalUpdateTime

### clearOriginalUpdateTime

### setOriginalUpdateTime

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

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

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