Class VertexAISearch.Builder
- Enclosing class:
- VertexAISearch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract VertexAISearchbuild()Clears the value of datastore field.Clears the value of dataStoreSpecs field.Clears the value of engine field.Clears the value of filter field.Clears the value of maxResults field.abstract VertexAISearch.BuilderSetter for datastore.dataStoreSpecs(VertexAISearchDataStoreSpec... dataStoreSpecs) Setter for dataStoreSpecs.dataStoreSpecs(VertexAISearchDataStoreSpec.Builder... dataStoreSpecsBuilders) Setter for dataStoreSpecs builder.abstract VertexAISearch.BuilderdataStoreSpecs(List<VertexAISearchDataStoreSpec> dataStoreSpecs) Setter for dataStoreSpecs.abstract VertexAISearch.BuilderSetter for engine.abstract VertexAISearch.BuilderSetter for filter.abstract VertexAISearch.BuildermaxResults(Integer maxResults) Setter for maxResults.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dataStoreSpecs
public abstract VertexAISearch.Builder dataStoreSpecs(List<VertexAISearchDataStoreSpec> dataStoreSpecs) Setter for dataStoreSpecs.dataStoreSpecs: Specifications that define the specific DataStores to be searched, along with configurations for those data stores. This is only considered for Engines with multiple data stores. It should only be set if engine is used.
-
dataStoreSpecs
@CanIgnoreReturnValue public VertexAISearch.Builder dataStoreSpecs(VertexAISearchDataStoreSpec... dataStoreSpecs) Setter for dataStoreSpecs.dataStoreSpecs: Specifications that define the specific DataStores to be searched, along with configurations for those data stores. This is only considered for Engines with multiple data stores. It should only be set if engine is used.
-
dataStoreSpecs
@CanIgnoreReturnValue public VertexAISearch.Builder dataStoreSpecs(VertexAISearchDataStoreSpec.Builder... dataStoreSpecsBuilders) Setter for dataStoreSpecs builder.dataStoreSpecs: Specifications that define the specific DataStores to be searched, along with configurations for those data stores. This is only considered for Engines with multiple data stores. It should only be set if engine is used.
-
clearDataStoreSpecs
Clears the value of dataStoreSpecs field. -
datastore
Setter for datastore.datastore: Optional. Fully-qualified Vertex AI Search data store resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
-
clearDatastore
Clears the value of datastore field. -
engine
Setter for engine.engine: Optional. Fully-qualified Vertex AI Search engine resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
-
clearEngine
Clears the value of engine field. -
filter
Setter for filter.filter: Optional. Filter strings to be passed to the search API.
-
clearFilter
Clears the value of filter field. -
maxResults
Setter for maxResults.maxResults: Optional. Number of search results to return per query. The default value is 10. The maximumm allowed value is 10.
-
clearMaxResults
Clears the value of maxResults field. -
build
-