# Google Cloud Data Catalog V1 Client - Class VertexModelSourceInfo (2.4.2)

2.4.2 (latest) 2.4.1 2.3.2 2.2.4 2.1.0 2.0.2 1.10.3 1.9.1 1.8.2 1.7.1 1.6.0 1.5.1 1.4.2 1.3.9 Reference documentation and code samples for the Google Cloud Data Catalog V1 Client class VertexModelSourceInfo.

Detail description of the source information of a Vertex model.

Generated from protobuf message `google.cloud.datacatalog.v1.VertexModelSourceInfo`

## Namespace

Google \\ Cloud \\ DataCatalog \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ source_type` | `int` Type of the model source. |
| `↳ copy` | `bool` If this Model is copy of another Model. If true then [source_type](https://docs.cloud.google.com/php/docs/reference/cloud-data-catalog/latest/V1.VertexModelSourceInfo#_Google_Cloud_DataCatalog_V1_VertexModelSourceInfo__getSourceType__) pertains to the original. |

### getSourceType

Type of the model source.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [ModelSourceType](https://docs.cloud.google.com/php/docs/reference/cloud-data-catalog/latest/V1.VertexModelSourceInfo.ModelSourceType). |

### setSourceType

Type of the model source.

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

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

### getCopy

If this Model is copy of another Model. If true then
[source_type](https://docs.cloud.google.com/php/docs/reference/cloud-data-catalog/latest/V1.VertexModelSourceInfo#_Google_Cloud_DataCatalog_V1_VertexModelSourceInfo__getSourceType__)
pertains to the original.

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

### setCopy

If this Model is copy of another Model. If true then
[source_type](https://docs.cloud.google.com/php/docs/reference/cloud-data-catalog/latest/V1.VertexModelSourceInfo#_Google_Cloud_DataCatalog_V1_VertexModelSourceInfo__getSourceType__)
pertains to the original.

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

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