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

Represents tables and fileset metadata contained within a zone.

Generated from protobuf message `google.cloud.dataplex.v1.Entity`

## Namespace

Google \\ Cloud \\ Dataplex \\ V1

## Methods

### __construct

Constructor.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `data` | `mixed` |

### getName

Output only. The resource name of the entity, of the form:
`projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{id}`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setName

Output only. The resource name of the entity, of the form:
`projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{id}`.

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

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

### getDisplayName

Optional. Display name must be shorter than or equal to 256 characters.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setDisplayName

Optional. Display name must be shorter than or equal to 256 characters.

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

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

### getDescription

Optional. User friendly longer description text. Must be shorter than or
equal to 1024 characters.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setDescription

Optional. User friendly longer description text. Must be shorter than or
equal to 1024 characters.

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

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

### getCreateTime

Output only. The time when the entity was created.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. The time when the entity was created.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getUpdateTime

Output only. The time when the entity was last updated.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. The time when the entity was last updated.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getId

Required. A user-provided entity ID. It is mutable, and will be used as the
published table name. Specifying a new ID in an update entity
request will override the existing value.

The ID must contain only letters (a-z, A-Z), numbers (0-9), and
underscores, and consist of 256 or fewer characters.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setId

Required. A user-provided entity ID. It is mutable, and will be used as the
published table name. Specifying a new ID in an update entity
request will override the existing value.

The ID must contain only letters (a-z, A-Z), numbers (0-9), and
underscores, and consist of 256 or fewer characters.

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

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

### getEtag

Optional. The etag associated with the entity, which can be retrieved with
a GetEntity request. Required for update and delete requests.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setEtag

Optional. The etag associated with the entity, which can be retrieved with
a GetEntity request. Required for update and delete requests.

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

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

### getType

Required. Immutable. The type of entity.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Type](https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.Entity.Type). |

### setType

Required. Immutable. The type of entity.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Type](https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.Entity.Type). |

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

### getAsset

Required. Immutable. The ID of the asset associated with the storage
location containing the entity data. The entity must be with in the same
zone with the asset.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setAsset

Required. Immutable. The ID of the asset associated with the storage
location containing the entity data. The entity must be with in the same
zone with the asset.

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

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

### getDataPath

Required. Immutable. The storage path of the entity data.

For Cloud Storage data, this is the fully-qualified path to the entity,
such as `gs://bucket/path/to/data`. For BigQuery data, this is the name of
the table resource, such as
`projects/project_id/datasets/dataset_id/tables/table_id`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setDataPath

Required. Immutable. The storage path of the entity data.

For Cloud Storage data, this is the fully-qualified path to the entity,
such as `gs://bucket/path/to/data`. For BigQuery data, this is the name of
the table resource, such as
`projects/project_id/datasets/dataset_id/tables/table_id`.

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

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

### getDataPathPattern

Optional. The set of items within the data path constituting the data in
the entity, represented as a glob path. Example:
`gs://bucket/path/to/data/**/*.csv`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setDataPathPattern

Optional. The set of items within the data path constituting the data in
the entity, represented as a glob path. Example:
`gs://bucket/path/to/data/**/*.csv`.

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

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

### getCatalogEntry

Output only. The name of the associated Data Catalog entry.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setCatalogEntry

Output only. The name of the associated Data Catalog entry.

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

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

### getSystem

Required. Immutable. Identifies the storage system of the entity data.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [StorageSystem](https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.StorageSystem). |

### setSystem

Required. Immutable. Identifies the storage system of the entity data.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [StorageSystem](https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.StorageSystem). |

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

### getFormat

Required. Identifies the storage format of the entity data.

It does not apply to entities with data stored in BigQuery.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.StorageFormat|null` |   |

### hasFormat

### clearFormat

### setFormat

Required. Identifies the storage format of the entity data.

It does not apply to entities with data stored in BigQuery.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.StorageFormat` |

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

### getCompatibility

Output only. Metadata stores that the entity is compatible with.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.Entity.CompatibilityStatus|null` |   |

### hasCompatibility

### clearCompatibility

### setCompatibility

Output only. Metadata stores that the entity is compatible with.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.Entity.CompatibilityStatus` |

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

### getAccess

Output only. Identifies the access mechanism to the entity. Not user
settable.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.StorageAccess|null` |   |

### hasAccess

### clearAccess

### setAccess

Output only. Identifies the access mechanism to the entity. Not user
settable.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.StorageAccess` |

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

### getUid

Output only. System generated unique ID for the Entity. This ID will be
different if the Entity is deleted and re-created with the same name.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setUid

Output only. System generated unique ID for the Entity. This ID will be
different if the Entity is deleted and re-created with the same name.

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

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

### getSchema

Required. The description of the data structure and layout.

The schema is not included in list responses. It is only included in
`SCHEMA` and `FULL` entity views of a `GetEntity` response.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.Schema|null` |   |

### hasSchema

### clearSchema

### setSchema

Required. The description of the data structure and layout.

The schema is not included in list responses. It is only included in
`SCHEMA` and `FULL` entity views of a `GetEntity` response.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.Schema` |

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