Class GoogleSearchTool.PromptConfig.Builder (0.1.0)

public static final class GoogleSearchTool.PromptConfig.Builder extends GeneratedMessage.Builder<GoogleSearchTool.PromptConfig.Builder> implements GoogleSearchTool.PromptConfigOrBuilder

Prompt settings used by the model when processing or summarizing the google search results.

Protobuf type google.cloud.ces.v1.GoogleSearchTool.PromptConfig

Static 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
Overrides

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
Overrides

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
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
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
Overrides

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 String

The 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 ByteString

The 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 String

The 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 ByteString

The bytes for voicePrompt to set.

Returns
Type Description
GoogleSearchTool.PromptConfig.Builder

This builder for chaining.