public static final class GoogleSearchTool.PromptConfig.Builder extends GeneratedMessage.Builder<GoogleSearchTool.PromptConfig.Builder> implements GoogleSearchTool.PromptConfigOrBuilderPrompt settings used by the model when processing or summarizing the google search results.
Protobuf type google.cloud.ces.v1.GoogleSearchTool.PromptConfig
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > GoogleSearchTool.PromptConfig.BuilderImplements
GoogleSearchTool.PromptConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public GoogleSearchTool.PromptConfig build()| Returns | |
|---|---|
| Type | Description |
GoogleSearchTool.PromptConfig |
|
buildPartial()
public GoogleSearchTool.PromptConfig buildPartial()| Returns | |
|---|---|
| Type | Description |
GoogleSearchTool.PromptConfig |
|
clear()
public GoogleSearchTool.PromptConfig.Builder clear()| Returns | |
|---|---|
| Type | Description |
GoogleSearchTool.PromptConfig.Builder |
|
clearTextPrompt()
public GoogleSearchTool.PromptConfig.Builder clearTextPrompt()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 |
GoogleSearchTool.PromptConfig.Builder |
This builder for chaining. |
clearVoicePrompt()
public GoogleSearchTool.PromptConfig.Builder clearVoicePrompt()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 |
GoogleSearchTool.PromptConfig.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public GoogleSearchTool.PromptConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
GoogleSearchTool.PromptConfig |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getTextPrompt()
public 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 |
String |
The textPrompt. |
getTextPromptBytes()
public 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 |
ByteString |
The bytes for textPrompt. |
getVoicePrompt()
public 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 |
String |
The voicePrompt. |
getVoicePromptBytes()
public 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 |
ByteString |
The bytes for voicePrompt. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(GoogleSearchTool.PromptConfig other)
public GoogleSearchTool.PromptConfig.Builder mergeFrom(GoogleSearchTool.PromptConfig other)| Parameter | |
|---|---|
| Name | Description |
other |
GoogleSearchTool.PromptConfig |
| Returns | |
|---|---|
| Type | Description |
GoogleSearchTool.PromptConfig.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public GoogleSearchTool.PromptConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
GoogleSearchTool.PromptConfig.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public GoogleSearchTool.PromptConfig.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
GoogleSearchTool.PromptConfig.Builder |
|
setTextPrompt(String value)
public GoogleSearchTool.PromptConfig.Builder setTextPrompt(String value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe textPrompt to set. |
| Returns | |
|---|---|
| Type | Description |
GoogleSearchTool.PromptConfig.Builder |
This builder for chaining. |
setTextPromptBytes(ByteString value)
public GoogleSearchTool.PromptConfig.Builder setTextPromptBytes(ByteString value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for textPrompt to set. |
| Returns | |
|---|---|
| Type | Description |
GoogleSearchTool.PromptConfig.Builder |
This builder for chaining. |
setVoicePrompt(String value)
public GoogleSearchTool.PromptConfig.Builder setVoicePrompt(String value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe voicePrompt to set. |
| Returns | |
|---|---|
| Type | Description |
GoogleSearchTool.PromptConfig.Builder |
This builder for chaining. |
setVoicePromptBytes(ByteString value)
public GoogleSearchTool.PromptConfig.Builder setVoicePromptBytes(ByteString value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for voicePrompt to set. |
| Returns | |
|---|---|
| Type | Description |
GoogleSearchTool.PromptConfig.Builder |
This builder for chaining. |