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

Defines how Lineage should be ingested for a given resource.

Generated from protobuf message `google.cloud.datacatalog.lineage.configmanagement.v1.Config.Ingestion`

## Namespace

Google \\ Cloud \\ DataCatalog \\ Lineage \\ ConfigManagement \\ V1 \\ Config

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ rules` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-datacatalog-lineage/latest/ConfigManagement.V1.Config.Ingestion.IngestionRule>` Optional. List of rules for Data Lineage ingestion. |

### getRules

Optional. List of rules for Data Lineage ingestion.

| **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/ConfigManagement.V1.Config.Ingestion.IngestionRule>` |   |

### setRules

Optional. List of rules for Data Lineage ingestion.

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

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