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

SourceMetadata represents the metadata for a resource at the source.

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

## Namespace

Google \\ Cloud \\ ApiHub \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ plugin_instance_action_source` | `https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.SourceMetadata.PluginInstanceActionSource` Output only. The source of the resource is a plugin instance action. |
| `↳ source_type` | `int` Output only. The type of the source. |
| `↳ original_resource_id` | `string` Output only. The unique identifier of the resource at the source. |
| `↳ original_resource_create_time` | `Google\Protobuf\Timestamp` Output only. The time at which the resource was created at the source. |
| `↳ original_resource_update_time` | `Google\Protobuf\Timestamp` Output only. The time at which the resource was last updated at the source. |

### getPluginInstanceActionSource

Output only. The source of the resource is a plugin instance action.

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

### hasPluginInstanceActionSource

### setPluginInstanceActionSource

Output only. The source of the resource is a plugin instance action.

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

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

### getSourceType

Output only. The type of the source.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [SourceType](https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.SourceMetadata.SourceType). |

### setSourceType

Output only. The type of the source.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [SourceType](https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.SourceMetadata.SourceType). |

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

### getOriginalResourceId

Output only. The unique identifier of the resource at the source.

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

### setOriginalResourceId

Output only. The unique identifier of the resource at the source.

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

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

### getOriginalResourceCreateTime

Output only. The time at which the resource was created at the source.

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

### hasOriginalResourceCreateTime

### clearOriginalResourceCreateTime

### setOriginalResourceCreateTime

Output only. The time at which the resource was created at the source.

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

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

### getOriginalResourceUpdateTime

Output only. The time at which the resource was last updated at the source.

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

### hasOriginalResourceUpdateTime

### clearOriginalResourceUpdateTime

### setOriginalResourceUpdateTime

Output only. The time at which the resource was last updated at the source.

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

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

### getSource

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