# Google Cloud Data Catalog Lineage V1 Client - Class LineageLink (1.4.0)

1.4.0 (latest) 1.3.0 1.2.3 1.1.1 1.0.3 0.5.5 0.4.0 0.3.1 0.2.1 0.1.3 Reference documentation and code samples for the Google Cloud Data Catalog Lineage V1 Client class LineageLink.

Lineage link between two entities.

Generated from protobuf message `google.cloud.datacatalog.lineage.v1.LineageLink`

## Namespace

Google \\ Cloud \\ DataCatalog \\ Lineage \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ source` | `https://docs.cloud.google.com/php/docs/reference/cloud-datacatalog-lineage/latest/V1.EntityReference` The entity that is the **source** of this link. |
| `↳ target` | `https://docs.cloud.google.com/php/docs/reference/cloud-datacatalog-lineage/latest/V1.EntityReference` The entity that is the **target** of this link. |
| `↳ processes` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-datacatalog-lineage/latest/V1.LineageLink.LineageProcess>` Processes metadata associated with the link. |
| `↳ dependency_info` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-datacatalog-lineage/latest/V1.LineageLink.DependencyInfo>` Describes how the target entity is dependent on the source entity. |
| `↳ depth` | `int` Depth of the current link in the graph starting from 1. |
| `↳ location` | `string` The location where the LineageEvent that created the link is stored. |

### getSource

The entity that is the **source** of this link.

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

### hasSource

### clearSource

### setSource

The entity that is the **source** of this link.

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

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

### getTarget

The entity that is the **target** of this link.

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

### hasTarget

### clearTarget

### setTarget

The entity that is the **target** of this link.

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

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

### getProcesses

Processes metadata associated with the link.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-datacatalog-lineage/latest/V1.LineageLink.LineageProcess>` |   |

### setProcesses

Processes metadata associated with the link.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-datacatalog-lineage/latest/V1.LineageLink.LineageProcess>` |

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

### getDependencyInfo

Describes how the target entity is dependent on the source entity.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-datacatalog-lineage/latest/V1.LineageLink.DependencyInfo>` |   |

### setDependencyInfo

Describes how the target entity is dependent on the source entity.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-datacatalog-lineage/latest/V1.LineageLink.DependencyInfo>` |

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

### getDepth

Depth of the current link in the graph starting from 1.

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

### setDepth

Depth of the current link in the graph starting from 1.

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

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

### getLocation

The location where the LineageEvent that created the link is stored.

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

### setLocation

The location where the LineageEvent that created the link is stored.

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

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