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

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

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ integration` | `int` Required. Integration to which the rule applies. This field can be used to specify the integration against which the ingestion rule should be applied. |

### getIntegration

Required. Integration to which the rule applies.

This field can be used to specify the integration against which the
ingestion rule should be applied.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Integration](https://docs.cloud.google.com/php/docs/reference/cloud-datacatalog-lineage/latest/ConfigManagement.V1.Config.Ingestion.IngestionRule.IntegrationSelector.Integration). |

### setIntegration

Required. Integration to which the rule applies.

This field can be used to specify the integration against which the
ingestion rule should be applied.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Integration](https://docs.cloud.google.com/php/docs/reference/cloud-datacatalog-lineage/latest/ConfigManagement.V1.Config.Ingestion.IngestionRule.IntegrationSelector.Integration). |

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