# Interface GoogleSearchTool.PromptConfigOrBuilder (0.9.0)

0.9.0 (latest) 0.7.0 0.4.0 0.3.0 0.1.0

    public static interface GoogleSearchTool.PromptConfigOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getTextPrompt()

    public abstract String getTextPrompt()

Optional. Defines the prompt used for the system instructions when
interacting with the agent in chat conversations. If not set, default
prompt will be used.

`string text_prompt = 1 [(.google.api.field_behavior) = OPTIONAL];`

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

### getTextPromptBytes()

    public abstract ByteString getTextPromptBytes()

Optional. Defines the prompt used for the system instructions when
interacting with the agent in chat conversations. If not set, default
prompt will be used.

`string text_prompt = 1 [(.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 textPrompt. |

### getVoicePrompt()

    public abstract String getVoicePrompt()

Optional. Defines the prompt used for the system instructions when
interacting with the agent in voice conversations. If not set, default
prompt will be used.

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

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

### getVoicePromptBytes()

    public abstract ByteString getVoicePromptBytes()

Optional. Defines the prompt used for the system instructions when
interacting with the agent in voice conversations. If not set, default
prompt will be used.

`string voice_prompt = 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 voicePrompt. |