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

Ingestion rule for Data Lineage ingestion.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ integration_selector` | `https://docs.cloud.google.com/php/docs/reference/cloud-datacatalog-lineage/latest/ConfigManagement.V1.Config.Ingestion.IngestionRule.IntegrationSelector` Required. Integration selector of the rule. The rule is only applied to the Integration selected by the selector. |
| `↳ lineage_enablement` | `https://docs.cloud.google.com/php/docs/reference/cloud-datacatalog-lineage/latest/ConfigManagement.V1.Config.Ingestion.IngestionRule.LineageEnablement` Required. Lineage enablement configuration. Defines configurations for the ingestion of lineage for the resource and its children. If unspecified, the ingestion will be enabled only if it was configured in the resource's parent. |

### getIntegrationSelector

Required. Integration selector of the rule. The rule is only applied to
the Integration selected by the selector.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-datacatalog-lineage/latest/ConfigManagement.V1.Config.Ingestion.IngestionRule.IntegrationSelector|null` |   |

### hasIntegrationSelector

### clearIntegrationSelector

### setIntegrationSelector

Required. Integration selector of the rule. The rule is only applied to
the Integration selected by the selector.

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

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

### getLineageEnablement

Required. Lineage enablement configuration. Defines configurations for
the ingestion of lineage for the resource and its children. If
unspecified, the ingestion will be enabled only if it was configured in
the resource's parent.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-datacatalog-lineage/latest/ConfigManagement.V1.Config.Ingestion.IngestionRule.LineageEnablement|null` |   |

### hasLineageEnablement

### clearLineageEnablement

### setLineageEnablement

Required. Lineage enablement configuration. Defines configurations for
the ingestion of lineage for the resource and its children. If
unspecified, the ingestion will be enabled only if it was configured in
the resource's parent.

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

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