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

Generator settings used by the LLM to generate a text response.

Generated from protobuf message `google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings`

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ generator` | `string` Required. The generator to call. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/generators/<GeneratorID>`. |
| `↳ input_parameters` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` Map from placeholder parameter in the [Generator](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Generator) to corresponding session parameters. By default, Dialogflow uses the session parameter with the same name to fill in the generator template. e.g. If there is a placeholder parameter `city` in the Generator, Dialogflow default to fill in the `$city` with `$session.params.city`. However, you may choose to fill `$city` with `$session.params.desination-city`. - Map key: parameter ID - Map value: session parameter name |
| `↳ output_parameter` | `string` Required. Output parameter which should contain the generator response. |

### getGenerator

Required. The generator to call.

Format:
`projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/generators/<GeneratorID>`.

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

### setGenerator

Required. The generator to call.

Format:
`projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/generators/<GeneratorID>`.

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

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

### getInputParameters

Map from placeholder parameter in the
[Generator](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Generator) to corresponding
session parameters. By default, Dialogflow uses the session parameter
with the same name to fill in the generator template. e.g. If there is a
placeholder parameter `city` in the Generator, Dialogflow default to fill
in the `$city` with
`$session.params.city`. However, you may choose to fill `$city` with
`$session.params.desination-city`.

- Map key: parameter ID
- Map value: session parameter name

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

### setInputParameters

Map from placeholder parameter in the
[Generator](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Generator) to corresponding
session parameters. By default, Dialogflow uses the session parameter
with the same name to fill in the generator template. e.g. If there is a
placeholder parameter `city` in the Generator, Dialogflow default to fill
in the `$city` with
`$session.params.city`. However, you may choose to fill `$city` with
`$session.params.desination-city`.

- Map key: parameter ID
- Map value: session parameter name

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

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

### getOutputParameter

Required. Output parameter which should contain the generator response.

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

### setOutputParameter

Required. Output parameter which should contain the generator response.

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

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