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

The scope of the export job.

Generated from protobuf message `google.cloud.dataplex.v1.MetadataJob.ExportJobSpec.ExportJobScope`

## Namespace

Google \\ Cloud \\ Dataplex \\ V1 \\ MetadataJob \\ ExportJobSpec

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ organization_level` | `bool` Whether the metadata export job is an organization-level export job. - If `true`, the job exports the entries from the same organization and VPC Service Controls perimeter as the job. The project that the job belongs to determines the VPC Service Controls perimeter. If you set the job scope to be at the organization level, then don't provide a list of projects or entry groups. - If `false`, you must specify a list of projects or a list of entry groups whose entries you want to export. The default is `false`. |
| `↳ projects` | `string[]` The projects whose metadata you want to export, in the format `projects/{project_id_or_number}`. Only the entries from the specified projects are exported. The projects must be in the same organization and VPC Service Controls perimeter as the job. If you set the job scope to be a list of projects, then set the organization-level export flag to false and don't provide a list of entry groups. |
| `↳ entry_groups` | `string[]` The entry groups whose metadata you want to export, in the format `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`. Only the entries in the specified entry groups are exported. The entry groups must be in the same location and the same VPC Service Controls perimeter as the job. If you set the job scope to be a list of entry groups, then set the organization-level export flag to false and don't provide a list of projects. |
| `↳ entry_types` | `string[]` The entry types that are in scope for the export job, 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 affected by the job. |
| `↳ aspect_types` | `string[]` The aspect types that are in scope for the export job, specified as relative resource names in the format `projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}`. Only aspects that belong to the specified aspect types are affected by the job. |

### getOrganizationLevel

Whether the metadata export job is an organization-level export job.

- If `true`, the job exports the entries from the same organization and VPC Service Controls perimeter as the job. The project that the job belongs to determines the VPC Service Controls perimeter. If you set the job scope to be at the organization level, then don't provide a list of projects or entry groups.
- If `false`, you must specify a list of projects or a list of entry groups whose entries you want to export. The default is `false`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setOrganizationLevel

Whether the metadata export job is an organization-level export job.

- If `true`, the job exports the entries from the same organization and VPC Service Controls perimeter as the job. The project that the job belongs to determines the VPC Service Controls perimeter. If you set the job scope to be at the organization level, then don't provide a list of projects or entry groups.
- If `false`, you must specify a list of projects or a list of entry groups whose entries you want to export. The default is `false`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

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

### getProjects

The projects whose metadata you want to export, in the format
`projects/{project_id_or_number}`. Only the entries from
the specified projects are exported.

The projects must be in the same organization and VPC Service Controls
perimeter as the job.
If you set the job scope to be a list of projects, then set the
organization-level export flag to false and don't provide a list of
entry groups.

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

### setProjects

The projects whose metadata you want to export, in the format
`projects/{project_id_or_number}`. Only the entries from
the specified projects are exported.

The projects must be in the same organization and VPC Service Controls
perimeter as the job.
If you set the job scope to be a list of projects, then set the
organization-level export flag to false and don't provide a list of
entry groups.

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

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

### getEntryGroups

The entry groups whose metadata you want to export, in the format
`projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`.

Only the entries in the specified entry groups are exported.
The entry groups must be in the same location and the same VPC Service
Controls perimeter as the job.
If you set the job scope to be a list of entry groups, then set the
organization-level export flag to false and don't provide a list of
projects.

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

### setEntryGroups

The entry groups whose metadata you want to export, in the format
`projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`.

Only the entries in the specified entry groups are exported.
The entry groups must be in the same location and the same VPC Service
Controls perimeter as the job.
If you set the job scope to be a list of entry groups, then set the
organization-level export flag to false and don't provide a list of
projects.

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

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

### getEntryTypes

The entry types that are in scope for the export job, 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 affected by
the job.

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

### setEntryTypes

The entry types that are in scope for the export job, 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 affected by
the job.

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

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

### getAspectTypes

The aspect types that are in scope for the export job, specified as
relative resource names in the format
`projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}`.

Only aspects that belong to the specified aspect types are affected by
the job.

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

### setAspectTypes

The aspect types that are in scope for the export job, specified as
relative resource names in the format
`projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}`.

Only aspects that belong to the specified aspect types are affected by
the job.

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

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