# Google Cloud Dialogflow Cx V3 Client - Class SearchSnippet (0.11.1)

0.11.1 (latest) 0.11.0 0.10.2 0.9.2 0.8.1 0.7.2 0.6.0 0.5.2 0.4.1 0.3.4 0.2.1 0.1.1 Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class SearchSnippet.

Search snippet details.

Generated from protobuf message `google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SearchSnippet`

## Namespace

Google \\ Cloud \\ Dialogflow \\ Cx \\ V3 \\ DataStoreConnectionSignals

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ document_title` | `string` Title of the enclosing document. |
| `↳ document_uri` | `string` Uri for the document. Present if specified for the document. |
| `↳ text` | `string` Text included in the prompt. |
| `↳ metadata` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Struct` Metadata associated with the document. |

### getDocumentTitle

Title of the enclosing document.

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

### setDocumentTitle

Title of the enclosing document.

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

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

### getDocumentUri

Uri for the document. Present if specified for the document.

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

### setDocumentUri

Uri for the document. Present if specified for the document.

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

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

### getText

Text included in the prompt.

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

### setText

Text included in the prompt.

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

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

### getMetadata

Metadata associated with the document.

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

### hasMetadata

### clearMetadata

### setMetadata

Metadata associated with the document.

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

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