0.6.0 (latest) 0.5.0 0.4.4 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the Google Cloud Ces V1 Client class TextResponseConfig.

Configuration for the text response returned with the widget.

Generated from protobuf message `google.cloud.ces.v1.WidgetTool.TextResponseConfig`

## Namespace

Google \\ Cloud \\ Ces \\ V1 \\ WidgetTool

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ type` | `int` Optional. The strategy for providing the text response. |
| `↳ static_text` | `string` Optional. The static text response to return when type is STATIC. |
| `↳ text_response_instruction` | `string` Optional. Instruction for the LLM on how to generate the text response. Used as the description for the text response parameter if type is LLM_GENERATED. |

### getType

Optional. The strategy for providing the text response.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Type](https://docs.cloud.google.com/php/docs/reference/cloud-ces/latest/V1.WidgetTool.TextResponseConfig.Type.md.txt). |

### setType

Optional. The strategy for providing the text response.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Type](https://docs.cloud.google.com/php/docs/reference/cloud-ces/latest/V1.WidgetTool.TextResponseConfig.Type.md.txt). |

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

### getStaticText

Optional. The static text response to return when type is STATIC.

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

### setStaticText

Optional. The static text response to return when type is STATIC.

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

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

### getTextResponseInstruction

Optional. Instruction for the LLM on how to generate the text response.

Used as the description for the text response parameter if type is
LLM_GENERATED.

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

### setTextResponseInstruction

Optional. Instruction for the LLM on how to generate the text response.

Used as the description for the text response parameter if type is
LLM_GENERATED.

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

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