# Google Cloud Dataplex V1 Client - Class Filters (1.14.0)

1.14.0 (latest) 1.13.0 1.12.0 1.11.0 1.10.0 1.9.1 1.8.0 1.7.1 1.6.1 1.4.0 1.3.0 1.2.1 1.1.1 1.0.1 0.16.1 0.15.1 0.14.0 0.13.0 0.12.0 0.11.1 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.1 0.4.0 0.3.0 0.2.3 0.1.6 Reference documentation and code samples for the Google Cloud Dataplex V1 Client class Filters.

Filters defines the type of changes that you want to listen to.

You can have multiple entry type filters and multiple aspect type filters.
All of the entry type filters are OR'ed together.
All of the aspect type filters are OR'ed together.
All of the entry type filters and aspect type filters are AND'ed together.

Generated from protobuf message `google.cloud.dataplex.v1.MetadataFeed.Filters`

## Namespace

Google \\ Cloud \\ Dataplex \\ V1 \\ MetadataFeed

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ entry_types` | `string[]` Optional. The entry types that you want to listen to, specified as relative resource names in the format `projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}`. Only entries that belong to the specified entry types are published. |
| `↳ aspect_types` | `string[]` Optional. The aspect types that you want to listen to. Depending on how the aspect is attached to the entry, in the format: `projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}`. |
| `↳ change_types` | `int[]` Optional. The type of change that you want to listen to. If not specified, all changes are published. |

### getEntryTypes

Optional. The entry types that you want to listen to, specified as
relative resource names in the format
`projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}`.

Only entries that belong to the specified entry types are published.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setEntryTypes

Optional. The entry types that you want to listen to, specified as
relative resource names in the format
`projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}`.

Only entries that belong to the specified entry types are published.

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

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

### getAspectTypes

Optional. The aspect types that you want to listen to. Depending on how
the aspect is attached to the entry, in the format:
`projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setAspectTypes

Optional. The aspect types that you want to listen to. Depending on how
the aspect is attached to the entry, in the format:
`projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}`.

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

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

### getChangeTypes

Optional. The type of change that you want to listen to.

If not specified, all changes are published.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<int>` |   |

### setChangeTypes

Optional. The type of change that you want to listen to.

If not specified, all changes are published.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int[]` |

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