Class FileSearchTool (0.1.0)

public final class FileSearchTool extends GeneratedMessage implements FileSearchToolOrBuilder

The file search tool allows the agent to search across the files uploaded by the app/agent developer. It has presets to give relatively good quality search over the uploaded files and summarization of the retrieved results.

Protobuf type google.cloud.ces.v1.FileSearchTool

Static Fields

CORPUS_TYPE_FIELD_NUMBER

public static final int CORPUS_TYPE_FIELD_NUMBER
Field Value
Type Description
int

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
Type Description
int

FILE_CORPUS_FIELD_NUMBER

public static final int FILE_CORPUS_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static FileSearchTool getDefaultInstance()
Returns
Type Description
FileSearchTool

getDescriptor()

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

newBuilder()

public static FileSearchTool.Builder newBuilder()
Returns
Type Description
FileSearchTool.Builder

newBuilder(FileSearchTool prototype)

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

parseDelimitedFrom(InputStream input)

public static FileSearchTool parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
FileSearchTool
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static FileSearchTool parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
FileSearchTool
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static FileSearchTool parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
FileSearchTool
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static FileSearchTool parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
FileSearchTool
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static FileSearchTool parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
FileSearchTool
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<FileSearchTool> parser()
Returns
Type Description
Parser<FileSearchTool>

Methods

equals(Object obj)

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

getCorpusType()

public FileSearchTool.CorpusType getCorpusType()

Optional. The type of the corpus. Default is FULLY_MANAGED.

.google.cloud.ces.v1.FileSearchTool.CorpusType corpus_type = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FileSearchTool.CorpusType

The corpusType.

getCorpusTypeValue()

public int getCorpusTypeValue()

Optional. The type of the corpus. Default is FULLY_MANAGED.

.google.cloud.ces.v1.FileSearchTool.CorpusType corpus_type = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for corpusType.

getDefaultInstanceForType()

public FileSearchTool getDefaultInstanceForType()
Returns
Type Description
FileSearchTool

getDescription()

public String getDescription()

Optional. The tool description.

string description = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. The tool description.

string description = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for description.

getFileCorpus()

public String getFileCorpus()

Optional. The corpus where files are stored. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

string file_corpus = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The fileCorpus.

getFileCorpusBytes()

public ByteString getFileCorpusBytes()

Optional. The corpus where files are stored. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

string file_corpus = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for fileCorpus.

getName()

public String getName()

Required. The tool name.

string name = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The tool name.

string name = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

public Parser<FileSearchTool> getParserForType()
Returns
Type Description
Parser<FileSearchTool>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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 FileSearchTool.Builder newBuilderForType()
Returns
Type Description
FileSearchTool.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

public FileSearchTool.Builder toBuilder()
Returns
Type Description
FileSearchTool.Builder

writeTo(CodedOutputStream output)

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