# Common Protos for Google Cloud APIs Client - Class UnlinkDataset (1.0.0)

1.0.0 (latest) 0.8.3 0.7.0 0.6.0 0.5.2 0.4.2 0.3.8 Reference documentation and code samples for the Common Protos for Google Cloud APIs Client class UnlinkDataset.

Unlink linked dataset from its source dataset event

Generated from protobuf message `google.cloud.audit.BigQueryAuditMetadata.UnlinkDataset`

## Namespace

Google \\ Cloud \\ Audit \\ BigQueryAuditMetadata

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ linked_dataset` | `string` The linked dataset URI which is unlinked from its source. Format: `projects/<project_id>/datasets/<dataset_id>`. |
| `↳ source_dataset` | `string` The source dataset URI from which the linked dataset is unlinked. Format: `projects/<project_id>/datasets/<dataset_id>`. |
| `↳ reason` | `int` Reason for unlinking linked dataset |

### getLinkedDataset

The linked dataset URI which is unlinked from its source.

Format: `projects/<project_id>/datasets/<dataset_id>`.

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

### setLinkedDataset

The linked dataset URI which is unlinked from its source.

Format: `projects/<project_id>/datasets/<dataset_id>`.

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

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

### getSourceDataset

The source dataset URI from which the linked dataset is unlinked.

Format: `projects/<project_id>/datasets/<dataset_id>`.

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

### setSourceDataset

The source dataset URI from which the linked dataset is unlinked.

Format: `projects/<project_id>/datasets/<dataset_id>`.

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

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

### getReason

Reason for unlinking linked dataset

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Reason](https://docs.cloud.google.com/php/docs/reference/cloud-common-protos/latest/Audit.BigQueryAuditMetadata.UnlinkDataset.Reason). |

### setReason

Reason for unlinking linked dataset

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Reason](https://docs.cloud.google.com/php/docs/reference/cloud-common-protos/latest/Audit.BigQueryAuditMetadata.UnlinkDataset.Reason). |

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