Class GoogleSearchTool.PromptConfig (0.1.0)

public static final class GoogleSearchTool.PromptConfig extends GeneratedMessage 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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > GoogleSearchTool.PromptConfig

Static Fields

TEXT_PROMPT_FIELD_NUMBER

public static final int TEXT_PROMPT_FIELD_NUMBER
Field Value
Type Description
int

VOICE_PROMPT_FIELD_NUMBER

public static final int VOICE_PROMPT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static GoogleSearchTool.PromptConfig getDefaultInstance()
Returns
Type Description
GoogleSearchTool.PromptConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static GoogleSearchTool.PromptConfig.Builder newBuilder()
Returns
Type Description
GoogleSearchTool.PromptConfig.Builder

newBuilder(GoogleSearchTool.PromptConfig prototype)

public static GoogleSearchTool.PromptConfig.Builder newBuilder(GoogleSearchTool.PromptConfig prototype)
Parameter
Name Description
prototype GoogleSearchTool.PromptConfig
Returns
Type Description
GoogleSearchTool.PromptConfig.Builder

parseDelimitedFrom(InputStream input)

public static GoogleSearchTool.PromptConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
GoogleSearchTool.PromptConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GoogleSearchTool.PromptConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GoogleSearchTool.PromptConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static GoogleSearchTool.PromptConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
GoogleSearchTool.PromptConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static GoogleSearchTool.PromptConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GoogleSearchTool.PromptConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static GoogleSearchTool.PromptConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
GoogleSearchTool.PromptConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static GoogleSearchTool.PromptConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GoogleSearchTool.PromptConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static GoogleSearchTool.PromptConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
GoogleSearchTool.PromptConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static GoogleSearchTool.PromptConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GoogleSearchTool.PromptConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static GoogleSearchTool.PromptConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
GoogleSearchTool.PromptConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GoogleSearchTool.PromptConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GoogleSearchTool.PromptConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static GoogleSearchTool.PromptConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
GoogleSearchTool.PromptConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static GoogleSearchTool.PromptConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GoogleSearchTool.PromptConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<GoogleSearchTool.PromptConfig> parser()
Returns
Type Description
Parser<PromptConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public GoogleSearchTool.PromptConfig getDefaultInstanceForType()
Returns
Type Description
GoogleSearchTool.PromptConfig

getParserForType()

public Parser<GoogleSearchTool.PromptConfig> getParserForType()
Returns
Type Description
Parser<PromptConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public GoogleSearchTool.PromptConfig.Builder newBuilderForType()
Returns
Type Description
GoogleSearchTool.PromptConfig.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected GoogleSearchTool.PromptConfig.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
GoogleSearchTool.PromptConfig.Builder
Overrides

toBuilder()

public GoogleSearchTool.PromptConfig.Builder toBuilder()
Returns
Type Description
GoogleSearchTool.PromptConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException