Package com.google.genai.types
Class FileSearch.Builder
java.lang.Object
com.google.genai.types.FileSearch.Builder
- Enclosing class:
- FileSearch
Builder for FileSearch.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract FileSearchbuild()Clears the value of fileSearchStoreNames field.Clears the value of metadataFilter field.Clears the value of topK field.fileSearchStoreNames(String... fileSearchStoreNames) Setter for fileSearchStoreNames.abstract FileSearch.BuilderfileSearchStoreNames(List<String> fileSearchStoreNames) Setter for fileSearchStoreNames.abstract FileSearch.BuildermetadataFilter(String metadataFilter) Setter for metadataFilter.abstract FileSearch.BuilderSetter for topK.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
fileSearchStoreNames
Setter for fileSearchStoreNames.fileSearchStoreNames: The names of the file_search_stores to retrieve from. Example: `fileSearchStores/my-file-search-store-123`
-
fileSearchStoreNames
@CanIgnoreReturnValue public FileSearch.Builder fileSearchStoreNames(String... fileSearchStoreNames) Setter for fileSearchStoreNames.fileSearchStoreNames: The names of the file_search_stores to retrieve from. Example: `fileSearchStores/my-file-search-store-123`
-
clearFileSearchStoreNames
Clears the value of fileSearchStoreNames field. -
topK
Setter for topK.topK: The number of file search retrieval chunks to retrieve.
-
clearTopK
Clears the value of topK field. -
metadataFilter
Setter for metadataFilter.metadataFilter: Metadata filter to apply to the file search retrieval documents. See https://google.aip.dev/160 for the syntax of the filter expression.
-
clearMetadataFilter
Clears the value of metadataFilter field. -
build
-