# Google Cloud Dialogflow V2 Client - Class KnowledgeOperationMetadata (2.4.0)

2.4.0 (latest) 2.3.1 2.2.1 2.1.2 2.0.1 1.17.2 1.16.0 1.15.1 1.14.0 1.13.0 1.12.3 1.11.0 1.10.2 1.9.0 1.8.0 1.7.2 1.6.0 1.5.0 1.4.0 1.3.2 1.2.0 1.1.1 1.0.1 Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class KnowledgeOperationMetadata.

Metadata in google::longrunning::Operation for Knowledge operations.

Generated from protobuf message `google.cloud.dialogflow.v2.KnowledgeOperationMetadata`

## Namespace

Google \\ Cloud \\ Dialogflow \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ state` | `int` Output only. The current state of this operation. |
| `↳ knowledge_base` | `string` The name of the knowledge base interacted with during the operation. |
| `↳ export_operation_metadata` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.ExportOperationMetadata` Metadata for the Export Data Operation such as the destination of export. |
| `↳ done_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` The time when the operation finished. |

### getState

Output only. The current state of this operation.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.KnowledgeOperationMetadata.State). |

### setState

Output only. The current state of this operation.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.KnowledgeOperationMetadata.State). |

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

### getKnowledgeBase

The name of the knowledge base interacted with during the operation.

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

### setKnowledgeBase

The name of the knowledge base interacted with during the operation.

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

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

### getExportOperationMetadata

Metadata for the Export Data Operation such as the destination of export.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.ExportOperationMetadata|null` |   |

### hasExportOperationMetadata

### setExportOperationMetadata

Metadata for the Export Data Operation such as the destination of export.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.ExportOperationMetadata` |

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

### getDoneTime

The time when the operation finished.

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

### hasDoneTime

### clearDoneTime

### setDoneTime

The time when the operation finished.

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

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

### getOperationMetadata

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