# Google Cloud Dialogflow Cx V3 Client - Class DataStoreConnectionSignals (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 DataStoreConnectionSignals.

Data store connection feature output signals.

Might be only partially field if processing stop before the final answer.
Reasons for this can be, but are not limited to: empty UCS search results,
positive RAI check outcome, grounding failure, ...

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ rewriter_model_call_signals` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.DataStoreConnectionSignals.RewriterModelCallSignals` Optional. Diagnostic info related to the rewriter model call. |
| `↳ rewritten_query` | `string` Optional. Rewritten string query used for search. |
| `↳ search_snippets` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.DataStoreConnectionSignals.SearchSnippet>` Optional. Search snippets included in the answer generation prompt. |
| `↳ answer_generation_model_call_signals` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.DataStoreConnectionSignals.AnswerGenerationModelCallSignals` Optional. Diagnostic info related to the answer generation model call. |
| `↳ answer` | `string` Optional. The final compiled answer. |
| `↳ answer_parts` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.DataStoreConnectionSignals.AnswerPart>` Optional. Answer parts with relevant citations. Concatenation of texts should add up the `answer` (not counting whitespaces). |
| `↳ cited_snippets` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.DataStoreConnectionSignals.CitedSnippet>` Optional. Snippets cited by the answer generation model from the most to least relevant. |
| `↳ grounding_signals` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.DataStoreConnectionSignals.GroundingSignals` Optional. Grounding signals. |
| `↳ safety_signals` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.DataStoreConnectionSignals.SafetySignals` Optional. Safety check result. |

### getRewriterModelCallSignals

Optional. Diagnostic info related to the rewriter model call.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.DataStoreConnectionSignals.RewriterModelCallSignals|null` |   |

### hasRewriterModelCallSignals

### clearRewriterModelCallSignals

### setRewriterModelCallSignals

Optional. Diagnostic info related to the rewriter model call.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.DataStoreConnectionSignals.RewriterModelCallSignals` |

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

### getRewrittenQuery

Optional. Rewritten string query used for search.

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

### setRewrittenQuery

Optional. Rewritten string query used for search.

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

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

### getSearchSnippets

Optional. Search snippets included in the answer generation prompt.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.DataStoreConnectionSignals.SearchSnippet>` |   |

### setSearchSnippets

Optional. Search snippets included in the answer generation prompt.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.DataStoreConnectionSignals.SearchSnippet>` |

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

### getAnswerGenerationModelCallSignals

Optional. Diagnostic info related to the answer generation model call.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.DataStoreConnectionSignals.AnswerGenerationModelCallSignals|null` |   |

### hasAnswerGenerationModelCallSignals

### clearAnswerGenerationModelCallSignals

### setAnswerGenerationModelCallSignals

Optional. Diagnostic info related to the answer generation model call.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.DataStoreConnectionSignals.AnswerGenerationModelCallSignals` |

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

### getAnswer

Optional. The final compiled answer.

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

### setAnswer

Optional. The final compiled answer.

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

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

### getAnswerParts

Optional. Answer parts with relevant citations.

Concatenation of texts should add up the `answer` (not counting
whitespaces).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.DataStoreConnectionSignals.AnswerPart>` |   |

### setAnswerParts

Optional. Answer parts with relevant citations.

Concatenation of texts should add up the `answer` (not counting
whitespaces).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.DataStoreConnectionSignals.AnswerPart>` |

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

### getCitedSnippets

Optional. Snippets cited by the answer generation model from the most to
least relevant.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.DataStoreConnectionSignals.CitedSnippet>` |   |

### setCitedSnippets

Optional. Snippets cited by the answer generation model from the most to
least relevant.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.DataStoreConnectionSignals.CitedSnippet>` |

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

### getGroundingSignals

Optional. Grounding signals.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.DataStoreConnectionSignals.GroundingSignals|null` |   |

### hasGroundingSignals

### clearGroundingSignals

### setGroundingSignals

Optional. Grounding signals.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.DataStoreConnectionSignals.GroundingSignals` |

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

### getSafetySignals

Optional. Safety check result.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.DataStoreConnectionSignals.SafetySignals|null` |   |

### hasSafetySignals

### clearSafetySignals

### setSafetySignals

Optional. Safety check result.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.DataStoreConnectionSignals.SafetySignals` |

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