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

The payload associated with Discovery data processing.

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

## Namespace

Google \\ Cloud \\ Dataplex \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ message` | `string` The log message. |
| `↳ lake_id` | `string` The id of the associated lake. |
| `↳ zone_id` | `string` The id of the associated zone. |
| `↳ asset_id` | `string` The id of the associated asset. |
| `↳ data_location` | `string` The data location associated with the event. |
| `↳ datascan_id` | `string` The id of the associated datascan for standalone discovery. |
| `↳ type` | `int` The type of the event being logged. |
| `↳ config` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.DiscoveryEvent.ConfigDetails` Details about discovery configuration in effect. |
| `↳ entity` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.DiscoveryEvent.EntityDetails` Details about the entity associated with the event. |
| `↳ partition` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.DiscoveryEvent.PartitionDetails` Details about the partition associated with the event. |
| `↳ action` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.DiscoveryEvent.ActionDetails` Details about the action associated with the event. |
| `↳ table` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.DiscoveryEvent.TableDetails` Details about the BigQuery table publishing associated with the event. |

### getMessage

The log message.

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

### setMessage

The log message.

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

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

### getLakeId

The id of the associated lake.

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

### setLakeId

The id of the associated lake.

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

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

### getZoneId

The id of the associated zone.

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

### setZoneId

The id of the associated zone.

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

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

### getAssetId

The id of the associated asset.

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

### setAssetId

The id of the associated asset.

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

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

### getDataLocation

The data location associated with the event.

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

### setDataLocation

The data location associated with the event.

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

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

### getDatascanId

The id of the associated datascan for standalone discovery.

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

### setDatascanId

The id of the associated datascan for standalone discovery.

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

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

### getType

The type of the event being logged.

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

### setType

The type of the event being logged.

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

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

### getConfig

Details about discovery configuration in effect.

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

### hasConfig

### setConfig

Details about discovery configuration in effect.

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

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

### getEntity

Details about the entity associated with the event.

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

### hasEntity

### setEntity

Details about the entity associated with the event.

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

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

### getPartition

Details about the partition associated with the event.

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

### hasPartition

### setPartition

Details about the partition associated with the event.

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

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

### getAction

Details about the action associated with the event.

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

### hasAction

### setAction

Details about the action associated with the event.

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

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

### getTable

Details about the BigQuery table publishing associated with the event.

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

### hasTable

### setTable

Details about the BigQuery table publishing associated with the event.

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

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

### getDetails

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