Google Cloud Dataplex V1 Client - Class Entity (1.11.0)

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 messagegoogle.cloud.dataplex.v1.Entity

Namespace

Google \ Cloud \ Dataplex \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ namestring

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}.

↳ display_namestring

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

↳ descriptionstring

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

↳ create_timeGoogle\Protobuf\Timestamp

Output only. The time when the entity was created.

↳ update_timeGoogle\Protobuf\Timestamp

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

↳ idstring

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.

↳ etagstring

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

↳ typeint

Required. Immutable. The type of entity.

↳ assetstring

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.

↳ data_pathstring

Required. Immutable. The storage path of the entity data. For Cloud Storage data, this is the fully-qualified path to the entity, such asgs://bucket/path/to/data. For BigQuery data, this is the name of the table resource, such asprojects/project_id/datasets/dataset_id/tables/table_id.

↳ data_path_patternstring

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.

↳ catalog_entrystring

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

↳ systemint

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

↳ formatStorageFormat

Required. Identifies the storage format of the entity data. It does not apply to entities with data stored in BigQuery.

↳ compatibilityEntity\CompatibilityStatus

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

↳ accessStorageAccess

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

↳ uidstring

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.

↳ schemaSchema

Required. The description of the data structure and layout. The schema is not included in list responses. It is only included inSCHEMA andFULL entity views of aGetEntity response.

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
TypeDescription
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
NameDescription
varstring
Returns
TypeDescription
$this

getDisplayName

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

Returns
TypeDescription
string

setDisplayName

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

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getDescription

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

Returns
TypeDescription
string

setDescription

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

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getCreateTime

Output only. The time when the entity was created.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. The time when the entity was created.

Parameter
NameDescription
varGoogle\Protobuf\Timestamp
Returns
TypeDescription
$this

getUpdateTime

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

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

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

Parameter
NameDescription
varGoogle\Protobuf\Timestamp
Returns
TypeDescription
$this

getId

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

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

Returns
TypeDescription
string

setId

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

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

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getEtag

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

Returns
TypeDescription
string

setEtag

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

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getType

Required. Immutable. The type of entity.

Returns
TypeDescription
intEnum of typeType.

setType

Required. Immutable. The type of entity.

Parameter
NameDescription
varint

Enum of typeType.

Returns
TypeDescription
$this

getAsset

Required. Immutable. The ID of the asset associated with the storagelocation containing the entity data. The entity must be with in the samezone with the asset.

Returns
TypeDescription
string

setAsset

Required. Immutable. The ID of the asset associated with the storagelocation containing the entity data. The entity must be with in the samezone with the asset.

Parameter
NameDescription
varstring
Returns
TypeDescription
$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 asgs://bucket/path/to/data. For BigQuery data, this is the name ofthe table resource, such asprojects/project_id/datasets/dataset_id/tables/table_id.

Returns
TypeDescription
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 asgs://bucket/path/to/data. For BigQuery data, this is the name ofthe table resource, such asprojects/project_id/datasets/dataset_id/tables/table_id.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getDataPathPattern

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

Returns
TypeDescription
string

setDataPathPattern

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

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getCatalogEntry

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

Returns
TypeDescription
string

setCatalogEntry

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

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getSystem

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

Returns
TypeDescription
intEnum of typeStorageSystem.

setSystem

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

Parameter
NameDescription
varint

Enum of typeStorageSystem.

Returns
TypeDescription
$this

getFormat

Required. Identifies the storage format of the entity data.

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

Returns
TypeDescription
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
NameDescription
varStorageFormat
Returns
TypeDescription
$this

getCompatibility

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

Returns
TypeDescription
Entity\CompatibilityStatus|null

hasCompatibility

clearCompatibility

setCompatibility

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

Parameter
NameDescription
varEntity\CompatibilityStatus
Returns
TypeDescription
$this

getAccess

Output only. Identifies the access mechanism to the entity. Not usersettable.

Returns
TypeDescription
StorageAccess|null

hasAccess

clearAccess

setAccess

Output only. Identifies the access mechanism to the entity. Not usersettable.

Parameter
NameDescription
varStorageAccess
Returns
TypeDescription
$this

getUid

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

Returns
TypeDescription
string

setUid

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

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getSchema

Required. The description of the data structure and layout.

The schema is not included in list responses. It is only included inSCHEMA andFULL entity views of aGetEntity response.

Returns
TypeDescription
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 inSCHEMA andFULL entity views of aGetEntity response.

Parameter
NameDescription
varSchema
Returns
TypeDescription
$this

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-11-08 UTC.