# Google Cloud Data Catalog Lineage V1 Client - Class LineageEvent (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 LineageEvent.

A lineage event represents an operation on assets. Within the operation, the
data flows from the source to the target defined in the links field.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Immutable. The resource name of the lineage event. Format: `projects/{project}/locations/{location}/processes/{process}/runs/{run}/lineageEvents/{lineage_event}`. Can be specified or auto-assigned. {lineage_event} must be not longer than 200 characters and only contain characters in a set: `a-zA-Z0-9_-:.` |
| `↳ links` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-datacatalog-lineage/latest/V1.EventLink>` Optional. List of source-target pairs. Can't contain more than 100 tuples. |
| `↳ start_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Required. The beginning of the transformation which resulted in this lineage event. For streaming scenarios, it should be the beginning of the period from which the lineage is being reported. |
| `↳ end_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Optional. The end of the transformation which resulted in this lineage event. For streaming scenarios, it should be the end of the period from which the lineage is being reported. |

### getName

Immutable. The resource name of the lineage event.

Format:
`projects/{project}/locations/{location}/processes/{process}/runs/{run}/lineageEvents/{lineage_event}`.
Can be specified or auto-assigned.
{lineage_event} must be not longer than 200 characters and only
contain characters in a set: `a-zA-Z0-9_-:.`

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

### setName

Immutable. The resource name of the lineage event.

Format:
`projects/{project}/locations/{location}/processes/{process}/runs/{run}/lineageEvents/{lineage_event}`.
Can be specified or auto-assigned.
{lineage_event} must be not longer than 200 characters and only
contain characters in a set: `a-zA-Z0-9_-:.`

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

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

### getLinks

Optional. List of source-target pairs. Can't contain more than 100 tuples.

| **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.EventLink>` |   |

### setLinks

Optional. List of source-target pairs. Can't contain more than 100 tuples.

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

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

### getStartTime

Required. The beginning of the transformation which resulted in this
lineage event. For streaming scenarios, it should be the beginning of the
period from which the lineage is being reported.

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

### hasStartTime

### clearStartTime

### setStartTime

Required. The beginning of the transformation which resulted in this
lineage event. For streaming scenarios, it should be the beginning of the
period from which the lineage is being reported.

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

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

### getEndTime

Optional. The end of the transformation which resulted in this lineage
event. For streaming scenarios, it should be the end of the period from
which the lineage is being reported.

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

### hasEndTime

### clearEndTime

### setEndTime

Optional. The end of the transformation which resulted in this lineage
event. For streaming scenarios, it should be the end of the period from
which the lineage is being reported.

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

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