public static final class FileSearchTool.Builder extends GeneratedMessage.Builder<FileSearchTool.Builder> implements FileSearchToolOrBuilderThe 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
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > FileSearchTool.BuilderImplements
FileSearchToolOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public FileSearchTool build()| Returns | |
|---|---|
| Type | Description |
FileSearchTool |
|
buildPartial()
public FileSearchTool buildPartial()| Returns | |
|---|---|
| Type | Description |
FileSearchTool |
|
clear()
public FileSearchTool.Builder clear()| Returns | |
|---|---|
| Type | Description |
FileSearchTool.Builder |
|
clearCorpusType()
public FileSearchTool.Builder clearCorpusType()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.Builder |
This builder for chaining. |
clearDescription()
public FileSearchTool.Builder clearDescription()Optional. The tool description.
string description = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
FileSearchTool.Builder |
This builder for chaining. |
clearFileCorpus()
public FileSearchTool.Builder clearFileCorpus()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 |
FileSearchTool.Builder |
This builder for chaining. |
clearName()
public FileSearchTool.Builder clearName()Required. The tool name.
string name = 4 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
FileSearchTool.Builder |
This builder for chaining. |
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. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(FileSearchTool other)
public FileSearchTool.Builder mergeFrom(FileSearchTool other)| Parameter | |
|---|---|
| Name | Description |
other |
FileSearchTool |
| Returns | |
|---|---|
| Type | Description |
FileSearchTool.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public FileSearchTool.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
FileSearchTool.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public FileSearchTool.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
FileSearchTool.Builder |
|
setCorpusType(FileSearchTool.CorpusType value)
public FileSearchTool.Builder setCorpusType(FileSearchTool.CorpusType value)Optional. The type of the corpus. Default is FULLY_MANAGED.
.google.cloud.ces.v1.FileSearchTool.CorpusType corpus_type = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
FileSearchTool.CorpusTypeThe corpusType to set. |
| Returns | |
|---|---|
| Type | Description |
FileSearchTool.Builder |
This builder for chaining. |
setCorpusTypeValue(int value)
public FileSearchTool.Builder setCorpusTypeValue(int value)Optional. The type of the corpus. Default is FULLY_MANAGED.
.google.cloud.ces.v1.FileSearchTool.CorpusType corpus_type = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for corpusType to set. |
| Returns | |
|---|---|
| Type | Description |
FileSearchTool.Builder |
This builder for chaining. |
setDescription(String value)
public FileSearchTool.Builder setDescription(String value)Optional. The tool description.
string description = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe description to set. |
| Returns | |
|---|---|
| Type | Description |
FileSearchTool.Builder |
This builder for chaining. |
setDescriptionBytes(ByteString value)
public FileSearchTool.Builder setDescriptionBytes(ByteString value)Optional. The tool description.
string description = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for description to set. |
| Returns | |
|---|---|
| Type | Description |
FileSearchTool.Builder |
This builder for chaining. |
setFileCorpus(String value)
public FileSearchTool.Builder setFileCorpus(String value)Optional. The corpus where files are stored. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}
string file_corpus = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe fileCorpus to set. |
| Returns | |
|---|---|
| Type | Description |
FileSearchTool.Builder |
This builder for chaining. |
setFileCorpusBytes(ByteString value)
public FileSearchTool.Builder setFileCorpusBytes(ByteString value)Optional. The corpus where files are stored. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}
string file_corpus = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for fileCorpus to set. |
| Returns | |
|---|---|
| Type | Description |
FileSearchTool.Builder |
This builder for chaining. |
setName(String value)
public FileSearchTool.Builder setName(String value)Required. The tool name.
string name = 4 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
FileSearchTool.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public FileSearchTool.Builder setNameBytes(ByteString value)Required. The tool name.
string name = 4 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
FileSearchTool.Builder |
This builder for chaining. |