# Data Lineage V1 API - Class Google::Cloud::DataCatalog::Lineage::V1::Link (v0.15.0)

0.15.0 (latest) 0.14.0 0.13.0 0.12.1 0.11.0 0.10.1 0.9.1 0.8.0 0.7.1 0.6.2 0.5.0 0.4.0 0.3.0 0.2.1 0.1.0 Reference documentation and code samples for the Data Lineage V1 API class Google::Cloud::DataCatalog::Lineage::V1::Link.

Links represent the data flow between **source** (upstream)
and **target** (downstream) assets in transformation pipelines.


<br />

Links are created when LineageEvents record data transformation between
related assets.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #dependency_info

    def dependency_info() -> ::Array<::Google::Cloud::DataCatalog::Lineage::V1::Link::DependencyInfo>

**Returns**

- (::Array\<[::Google::Cloud::DataCatalog::Lineage::V1::Link::DependencyInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_catalog-lineage-v1/latest/Google-Cloud-DataCatalog-Lineage-V1-Link-DependencyInfo)\>) --- Optional. The dependency info of the link (applies only to column level links).

### #dependency_info=

    def dependency_info=(value) -> ::Array<::Google::Cloud::DataCatalog::Lineage::V1::Link::DependencyInfo>

**Parameter**

- **value** (::Array\<[::Google::Cloud::DataCatalog::Lineage::V1::Link::DependencyInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_catalog-lineage-v1/latest/Google-Cloud-DataCatalog-Lineage-V1-Link-DependencyInfo)\>) --- Optional. The dependency info of the link (applies only to column level links).
**Returns**

- (::Array\<[::Google::Cloud::DataCatalog::Lineage::V1::Link::DependencyInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_catalog-lineage-v1/latest/Google-Cloud-DataCatalog-Lineage-V1-Link-DependencyInfo)\>) --- Optional. The dependency info of the link (applies only to column level links).

### #end_time

    def end_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_catalog-lineage-v1/latest/Google-Protobuf-Timestamp)) --- The end of the last event establishing this link.

### #end_time=

    def end_time=(value) -> ::Google::Protobuf::Timestamp

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_catalog-lineage-v1/latest/Google-Protobuf-Timestamp)) --- The end of the last event establishing this link.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_catalog-lineage-v1/latest/Google-Protobuf-Timestamp)) --- The end of the last event establishing this link.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Output only. Immutable. The name of the link. Format: `projects/{project}/locations/{location}/links/{link}`.

### #source

    def source() -> ::Google::Cloud::DataCatalog::Lineage::V1::EntityReference

**Returns**

- ([::Google::Cloud::DataCatalog::Lineage::V1::EntityReference](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_catalog-lineage-v1/latest/Google-Cloud-DataCatalog-Lineage-V1-EntityReference)) --- The pointer to the entity that is the **source** of this link.

### #source=

    def source=(value) -> ::Google::Cloud::DataCatalog::Lineage::V1::EntityReference

**Parameter**

- **value** ([::Google::Cloud::DataCatalog::Lineage::V1::EntityReference](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_catalog-lineage-v1/latest/Google-Cloud-DataCatalog-Lineage-V1-EntityReference)) --- The pointer to the entity that is the **source** of this link.
**Returns**

- ([::Google::Cloud::DataCatalog::Lineage::V1::EntityReference](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_catalog-lineage-v1/latest/Google-Cloud-DataCatalog-Lineage-V1-EntityReference)) --- The pointer to the entity that is the **source** of this link.

### #start_time

    def start_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_catalog-lineage-v1/latest/Google-Protobuf-Timestamp)) --- The start of the first event establishing this link.

### #start_time=

    def start_time=(value) -> ::Google::Protobuf::Timestamp

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_catalog-lineage-v1/latest/Google-Protobuf-Timestamp)) --- The start of the first event establishing this link.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_catalog-lineage-v1/latest/Google-Protobuf-Timestamp)) --- The start of the first event establishing this link.

### #target

    def target() -> ::Google::Cloud::DataCatalog::Lineage::V1::EntityReference

**Returns**

- ([::Google::Cloud::DataCatalog::Lineage::V1::EntityReference](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_catalog-lineage-v1/latest/Google-Cloud-DataCatalog-Lineage-V1-EntityReference)) --- The pointer to the entity that is the **target** of this link.

### #target=

    def target=(value) -> ::Google::Cloud::DataCatalog::Lineage::V1::EntityReference

**Parameter**

- **value** ([::Google::Cloud::DataCatalog::Lineage::V1::EntityReference](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_catalog-lineage-v1/latest/Google-Cloud-DataCatalog-Lineage-V1-EntityReference)) --- The pointer to the entity that is the **target** of this link.
**Returns**

- ([::Google::Cloud::DataCatalog::Lineage::V1::EntityReference](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_catalog-lineage-v1/latest/Google-Cloud-DataCatalog-Lineage-V1-EntityReference)) --- The pointer to the entity that is the **target** of this link.