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

AspectType is a template for creating Aspects, and represents the
JSON-schema for a given Entry, for example, BigQuery Table Schema.

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

## Namespace

Google \\ Cloud \\ Dataplex \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Output only. The relative resource name of the AspectType, of the form: projects/{project_number}/locations/{location_id}/aspectTypes/{aspect_type_id}. |
| `↳ uid` | `string` Output only. System generated globally unique ID for the AspectType. If you delete and recreate the AspectType with the same name, then this ID will be different. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time when the AspectType was created. |
| `↳ update_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time when the AspectType was last updated. |
| `↳ description` | `string` Optional. Description of the AspectType. |
| `↳ display_name` | `string` Optional. User friendly display name. |
| `↳ labels` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` Optional. User-defined labels for the AspectType. |
| `↳ etag` | `string` The service computes this checksum. The client may send it on update and delete requests to ensure it has an up-to-date value before proceeding. |
| `↳ data_classification` | `int` Optional. Immutable. Stores data classification of the aspect. |
| `↳ authorization` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.AspectType.Authorization` Immutable. Defines the Authorization for this type. |
| `↳ metadata_template` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.AspectType.MetadataTemplate` Required. MetadataTemplate of the aspect. |
| `↳ transfer_status` | `int` Output only. Denotes the transfer status of the Aspect Type. It is unspecified for Aspect Types created from Dataplex API. |

### getName

Output only. The relative resource name of the AspectType, of the form:
projects/{project_number}/locations/{location_id}/aspectTypes/{aspect_type_id}.

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

### setName

Output only. The relative resource name of the AspectType, of the form:
projects/{project_number}/locations/{location_id}/aspectTypes/{aspect_type_id}.

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

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

### getUid

Output only. System generated globally unique ID for the AspectType.

If you delete and recreate the AspectType with the same name, then this ID
will be different.

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

### setUid

Output only. System generated globally unique ID for the AspectType.

If you delete and recreate the AspectType with the same name, then this ID
will be different.

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

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

### getCreateTime

Output only. The time when the AspectType 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 AspectType 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 AspectType 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 AspectType was last updated.

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

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

### getDescription

Optional. Description of the AspectType.

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

### setDescription

Optional. Description of the AspectType.

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

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

### getDisplayName

Optional. User friendly display name.

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

### setDisplayName

Optional. User friendly display name.

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

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

### getLabels

Optional. User-defined labels for the AspectType.

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

### setLabels

Optional. User-defined labels for the AspectType.

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

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

### getEtag

The service computes this checksum. The client may send it on update and
delete requests to ensure it has an up-to-date value before proceeding.

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

### setEtag

The service computes this checksum. The client may send it on update and
delete requests to ensure it has an up-to-date value before proceeding.

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

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

### getDataClassification

Optional. Immutable. Stores data classification of the aspect.

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

### setDataClassification

Optional. Immutable. Stores data classification of the aspect.

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

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

### getAuthorization

Immutable. Defines the Authorization for this type.

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

### hasAuthorization

### clearAuthorization

### setAuthorization

Immutable. Defines the Authorization for this type.

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

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

### getMetadataTemplate

Required. MetadataTemplate of the aspect.

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

### hasMetadataTemplate

### clearMetadataTemplate

### setMetadataTemplate

Required. MetadataTemplate of the aspect.

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

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

### getTransferStatus

Output only. Denotes the transfer status of the Aspect Type. It is
unspecified for Aspect Types created from Dataplex API.

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

### setTransferStatus

Output only. Denotes the transfer status of the Aspect Type. It is
unspecified for Aspect Types created from Dataplex API.

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

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