# Interface WidgetTool.TextResponseConfigOrBuilder (0.9.0)

0.9.0 (latest) 0.7.0 0.4.0 0.3.0 0.1.0

    public static interface WidgetTool.TextResponseConfigOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getStaticText()

    public abstract String getStaticText()

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

`string static_text = 2 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The staticText. |

### getStaticTextBytes()

    public abstract ByteString getStaticTextBytes()

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

`string static_text = 2 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for staticText. |

### getTextResponseInstruction()

    public abstract String 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.

`string text_response_instruction = 3 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The textResponseInstruction. |

### getTextResponseInstructionBytes()

    public abstract ByteString getTextResponseInstructionBytes()

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.

`string text_response_instruction = 3 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for textResponseInstruction. |

### getType()

    public abstract WidgetTool.TextResponseConfig.Type getType()

Optional. The strategy for providing the text response.

`
.google.cloud.ces.v1beta.WidgetTool.TextResponseConfig.Type type = 1 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.WidgetTool.TextResponseConfig.Type` | The type. |

### getTypeValue()

    public abstract int getTypeValue()

Optional. The strategy for providing the text response.

`
.google.cloud.ces.v1beta.WidgetTool.TextResponseConfig.Type type = 1 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for type. |