# Google Cloud Dialogflow V2 Client - Class GeneratorSuggestion (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 GeneratorSuggestion.

Suggestion generated using a Generator.

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

## Namespace

Google \\ Cloud \\ Dialogflow \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ free_form_suggestion` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.FreeFormSuggestion` Optional. Free form suggestion. |
| `↳ summary_suggestion` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.SummarySuggestion` Optional. Suggested summary. |
| `↳ agent_coaching_suggestion` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.AgentCoachingSuggestion` Optional. Suggestion to coach the agent. |
| `↳ tool_call_info` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.GeneratorSuggestion.ToolCallInfo>` Optional. List of request and response for tool calls executed. |

### getFreeFormSuggestion

Optional. Free form suggestion.

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

### hasFreeFormSuggestion

### setFreeFormSuggestion

Optional. Free form suggestion.

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

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

### getSummarySuggestion

Optional. Suggested summary.

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

### hasSummarySuggestion

### setSummarySuggestion

Optional. Suggested summary.

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

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

### getAgentCoachingSuggestion

Optional. Suggestion to coach the agent.

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

### hasAgentCoachingSuggestion

### setAgentCoachingSuggestion

Optional. Suggestion to coach the agent.

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

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

### getToolCallInfo

Optional. List of request and response for tool calls executed.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.GeneratorSuggestion.ToolCallInfo>` |   |

### setToolCallInfo

Optional. List of request and response for tool calls executed.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.GeneratorSuggestion.ToolCallInfo>` |

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

### getSuggestion

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