# Google Cloud Dataplex V1 Client - Class ImportJobScope (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 ImportJobScope.

A boundary on the scope of impact that the metadata import job can have.

Generated from protobuf message `google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.ImportJobScope`

## Namespace

Google \\ Cloud \\ Dataplex \\ V1 \\ MetadataJob \\ ImportJobSpec

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ entry_groups` | `string[]` Required. The entry groups that are in scope for the import job, specified as relative resource names in the format `projects/{project_number_or_id}/locations/{location_id}/entryGroups/{entry_group_id}`. Only entries and aspects that belong to the specified entry groups are affected by the job. The entry groups and the job must be in the same location. |
| `↳ entry_types` | `string[]` Required. The entry types that are in scope for the import job, specified as relative resource names in the format `projects/{project_number_or_id}/locations/{location_id}/entryTypes/{entry_type_id}`. The job modifies only the entries and aspects that belong to these entry types. If the metadata import file attempts to modify an entry whose type isn't included in this list, the import job is halted before modifying any entries or aspects. The location of an entry type must either match the location of the job, or the entry type must be global. |
| `↳ aspect_types` | `string[]` Optional. The aspect types that are in scope for the import job, specified as relative resource names in the format `projects/{project_number_or_id}/locations/{location_id}/aspectTypes/{aspect_type_id}`. The job modifies only the aspects that belong to these aspect types. This field is required when creating an aspect-only import job. If the metadata import file attempts to modify an aspect whose type isn't included in this list, the import job is halted before modifying any entries or aspects. The location of an aspect type must either match the location of the job, or the aspect type must be global. |
| `↳ glossaries` | `string[]` Optional. The glossaries that are in scope for the import job, specified as relative resource names in the format `projects/{project_number_or_id}/locations/{location_id}/glossaries/{glossary_id}`. While importing Business Glossary entries, the user must provide glossaries. While importing entries, the user does not have to provide glossaries. If the metadata import file attempts to modify Business Glossary entries whose glossary isn't included in this list, the import job will skip those entries. The location of a glossary must either match the location of the job, or the glossary must be global. |
| `↳ entry_link_types` | `string[]` Optional. The entry link types that are in scope for the import job, specified as relative resource names in the format `projects/{project_number_or_id}/locations/{location_id}/entryLinkTypes/{entry_link_type_id}`. The job modifies only the entryLinks that belong to these entry link types. If the metadata import file attempts to create or delete an entry link whose entry link type isn't included in this list, the import job will skip those entry links. |
| `↳ referenced_entry_scopes` | `string[]` Optional. Defines the scope of entries that can be referenced in the entry links. Currently, projects are supported as valid scopes. Format: `projects/{project_number_or_id}` If the metadata import file attempts to create an entry link which references an entry that is not in the scope, the import job will skip that entry link. |

### getEntryGroups

Required. The entry groups that are in scope for the import job,
specified as relative resource names in the format
`projects/{project_number_or_id}/locations/{location_id}/entryGroups/{entry_group_id}`.

Only entries and aspects that belong to the specified entry groups are
affected by the job.
The entry groups and the job must be in the same location.

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

### setEntryGroups

Required. The entry groups that are in scope for the import job,
specified as relative resource names in the format
`projects/{project_number_or_id}/locations/{location_id}/entryGroups/{entry_group_id}`.

Only entries and aspects that belong to the specified entry groups are
affected by the job.
The entry groups and the job must be in the same location.

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

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

### getEntryTypes

Required. The entry types that are in scope for the import job,
specified as relative resource names in the format
`projects/{project_number_or_id}/locations/{location_id}/entryTypes/{entry_type_id}`.

The job modifies only the entries and aspects that belong to these
entry types.
If the metadata import file attempts to modify an entry whose type
isn't included in this list, the import job is halted before modifying
any entries or aspects.
The location of an entry type must either match the location of the
job, or the entry type must be global.

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

### setEntryTypes

Required. The entry types that are in scope for the import job,
specified as relative resource names in the format
`projects/{project_number_or_id}/locations/{location_id}/entryTypes/{entry_type_id}`.

The job modifies only the entries and aspects that belong to these
entry types.
If the metadata import file attempts to modify an entry whose type
isn't included in this list, the import job is halted before modifying
any entries or aspects.
The location of an entry type must either match the location of the
job, or the entry type must be global.

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

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

### getAspectTypes

Optional. The aspect types that are in scope for the import job,
specified as relative resource names in the format
`projects/{project_number_or_id}/locations/{location_id}/aspectTypes/{aspect_type_id}`.

The job modifies only the aspects that belong to these aspect types.
This field is required when creating an aspect-only import job.
If the metadata import file attempts to modify an aspect whose type
isn't included in this list, the import job is halted before modifying
any entries or aspects.
The location of an aspect type must either match the location of the
job, or the aspect type must be global.

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

### setAspectTypes

Optional. The aspect types that are in scope for the import job,
specified as relative resource names in the format
`projects/{project_number_or_id}/locations/{location_id}/aspectTypes/{aspect_type_id}`.

The job modifies only the aspects that belong to these aspect types.
This field is required when creating an aspect-only import job.
If the metadata import file attempts to modify an aspect whose type
isn't included in this list, the import job is halted before modifying
any entries or aspects.
The location of an aspect type must either match the location of the
job, or the aspect type must be global.

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

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

### getGlossaries

Optional. The glossaries that are in scope for the import job,
specified as relative resource names in the format
`projects/{project_number_or_id}/locations/{location_id}/glossaries/{glossary_id}`.

While importing Business Glossary entries, the user must
provide glossaries. While importing entries, the user does not have to
provide glossaries. If the metadata import file attempts to modify
Business Glossary entries whose glossary isn't included in this list,
the import job will skip those entries.
The location of a glossary must either match the location of the
job, or the glossary must be global.

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

### setGlossaries

Optional. The glossaries that are in scope for the import job,
specified as relative resource names in the format
`projects/{project_number_or_id}/locations/{location_id}/glossaries/{glossary_id}`.

While importing Business Glossary entries, the user must
provide glossaries. While importing entries, the user does not have to
provide glossaries. If the metadata import file attempts to modify
Business Glossary entries whose glossary isn't included in this list,
the import job will skip those entries.
The location of a glossary must either match the location of the
job, or the glossary must be global.

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

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

### getEntryLinkTypes

Optional. The entry link types that are in scope for the import job,
specified as relative resource names in the format
`projects/{project_number_or_id}/locations/{location_id}/entryLinkTypes/{entry_link_type_id}`.

The job modifies only the entryLinks that belong to these entry link
types.
If the metadata import file attempts to create or delete an entry link
whose entry link type isn't included in this list, the import job will
skip those entry links.

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

### setEntryLinkTypes

Optional. The entry link types that are in scope for the import job,
specified as relative resource names in the format
`projects/{project_number_or_id}/locations/{location_id}/entryLinkTypes/{entry_link_type_id}`.

The job modifies only the entryLinks that belong to these entry link
types.
If the metadata import file attempts to create or delete an entry link
whose entry link type isn't included in this list, the import job will
skip those entry links.

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

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

### getReferencedEntryScopes

Optional. Defines the scope of entries that can be referenced in the
entry links.

Currently, projects are supported as valid scopes.
Format: `projects/{project_number_or_id}`
If the metadata import file attempts to create an entry link
which references an entry that is not in the scope, the import job will
skip that entry link.

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

### setReferencedEntryScopes

Optional. Defines the scope of entries that can be referenced in the
entry links.

Currently, projects are supported as valid scopes.
Format: `projects/{project_number_or_id}`
If the metadata import file attempts to create an entry link
which references an entry that is not in the scope, the import job will
skip that entry link.

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

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