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: Required. 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: Required. 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: Optional. The number of semantic retrieval chunks to retrieve.
-
clearTopK
Clears the value of topK field. -
metadataFilter
Setter for metadataFilter.metadataFilter: Optional. Metadata filter to apply to the semantic retrieval documents and chunks.
-
clearMetadataFilter
Clears the value of metadataFilter field. -
build
-