# Google Cloud Migration Center V1 Client - Class Source (1.2.3)

1.2.3 (latest) 1.2.2 1.1.2 1.0.3 0.4.5 0.3.1 0.2.0 0.1.0 Reference documentation and code samples for the Google Cloud Migration Center V1 Client class Source.

Source represents an object from which asset information is
streamed to Migration Center.

Generated from protobuf message `google.cloud.migrationcenter.v1.Source`

## Namespace

Google \\ Cloud \\ MigrationCenter \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Output only. The full name of the source. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The timestamp when the source was created. |
| `↳ update_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The timestamp when the source was last updated. |
| `↳ display_name` | `string` User-friendly display name. |
| `↳ description` | `string` Free-text description. |
| `↳ type` | `int` Data source type. |
| `↳ priority` | `int` The information confidence of the source. The higher the value, the higher the confidence. |
| `↳ managed` | `bool` If `true`, the source is managed by other service(s). |
| `↳ pending_frame_count` | `int` Output only. Number of frames that are still being processed. |
| `↳ error_frame_count` | `int` Output only. The number of frames that were reported by the source and contained errors. |
| `↳ state` | `int` Output only. The state of the source. |

### getName

Output only. The full name of the source.

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

### setName

Output only. The full name of the source.

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

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

### getCreateTime

Output only. The timestamp when the source was created.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. The timestamp when the source was created.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getUpdateTime

Output only. The timestamp when the source was last updated.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. The timestamp when the source was last updated.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getDisplayName

User-friendly display name.

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

### setDisplayName

User-friendly display name.

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

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

### getDescription

Free-text description.

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

### setDescription

Free-text description.

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

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

### getType

Data source type.

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

### setType

Data source type.

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

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

### getPriority

The information confidence of the source.

The higher the value, the higher the confidence.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setPriority

The information confidence of the source.

The higher the value, the higher the confidence.

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

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

### getManaged

If `true`, the source is managed by other service(s).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setManaged

If `true`, the source is managed by other service(s).

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

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

### getPendingFrameCount

Output only. Number of frames that are still being processed.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setPendingFrameCount

Output only. Number of frames that are still being processed.

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

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

### getErrorFrameCount

Output only. The number of frames that were reported by the source and
contained errors.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setErrorFrameCount

Output only. The number of frames that were reported by the source and
contained errors.

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

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

### getState

Output only. The state of the source.

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

### setState

Output only. The state of the source.

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

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