Package com.google.cloud.aiplatform.v1
Class VertexAISearch.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<VertexAISearch.Builder>
com.google.cloud.aiplatform.v1.VertexAISearch.Builder
- All Implemented Interfaces:
VertexAISearchOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- VertexAISearch
public static final class VertexAISearch.Builder
extends com.google.protobuf.GeneratedMessage.Builder<VertexAISearch.Builder>
implements VertexAISearchOrBuilder
Retrieve from Vertex AI Search datastore or engine for grounding. datastore and engine are mutually exclusive. See https://cloud.google.com/products/agent-builderProtobuf type
google.cloud.aiplatform.v1.VertexAISearch-
Method Summary
Modifier and TypeMethodDescriptionaddAllDataStoreSpecs(Iterable<? extends VertexAISearch.DataStoreSpec> values) Specifications that define the specific DataStores to be searched, along with configurations for those data stores.addDataStoreSpecs(int index, VertexAISearch.DataStoreSpec value) Specifications that define the specific DataStores to be searched, along with configurations for those data stores.addDataStoreSpecs(int index, VertexAISearch.DataStoreSpec.Builder builderForValue) Specifications that define the specific DataStores to be searched, along with configurations for those data stores.Specifications that define the specific DataStores to be searched, along with configurations for those data stores.addDataStoreSpecs(VertexAISearch.DataStoreSpec.Builder builderForValue) Specifications that define the specific DataStores to be searched, along with configurations for those data stores.Specifications that define the specific DataStores to be searched, along with configurations for those data stores.addDataStoreSpecsBuilder(int index) Specifications that define the specific DataStores to be searched, along with configurations for those data stores.build()clear()Optional.Specifications that define the specific DataStores to be searched, along with configurations for those data stores.Optional.Optional.Optional.Optional.com.google.protobuf.ByteStringOptional.getDataStoreSpecs(int index) Specifications that define the specific DataStores to be searched, along with configurations for those data stores.getDataStoreSpecsBuilder(int index) Specifications that define the specific DataStores to be searched, along with configurations for those data stores.Specifications that define the specific DataStores to be searched, along with configurations for those data stores.intSpecifications that define the specific DataStores to be searched, along with configurations for those data stores.Specifications that define the specific DataStores to be searched, along with configurations for those data stores.getDataStoreSpecsOrBuilder(int index) Specifications that define the specific DataStores to be searched, along with configurations for those data stores.List<? extends VertexAISearch.DataStoreSpecOrBuilder>Specifications that define the specific DataStores to be searched, along with configurations for those data stores.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.intOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(VertexAISearch other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeDataStoreSpecs(int index) Specifications that define the specific DataStores to be searched, along with configurations for those data stores.setDatastore(String value) Optional.setDatastoreBytes(com.google.protobuf.ByteString value) Optional.setDataStoreSpecs(int index, VertexAISearch.DataStoreSpec value) Specifications that define the specific DataStores to be searched, along with configurations for those data stores.setDataStoreSpecs(int index, VertexAISearch.DataStoreSpec.Builder builderForValue) Specifications that define the specific DataStores to be searched, along with configurations for those data stores.Optional.setEngineBytes(com.google.protobuf.ByteString value) Optional.Optional.setFilterBytes(com.google.protobuf.ByteString value) Optional.setMaxResults(int value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<VertexAISearch.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<VertexAISearch.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<VertexAISearch.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<VertexAISearch.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<VertexAISearch.Builder>
-
mergeFrom
public VertexAISearch.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<VertexAISearch.Builder>- Throws:
IOException
-
getDatastore
Optional. Fully-qualified Vertex AI Search data store resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`string datastore = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDatastorein interfaceVertexAISearchOrBuilder- Returns:
- The datastore.
-
getDatastoreBytes
public com.google.protobuf.ByteString getDatastoreBytes()Optional. Fully-qualified Vertex AI Search data store resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`string datastore = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDatastoreBytesin interfaceVertexAISearchOrBuilder- Returns:
- The bytes for datastore.
-
setDatastore
Optional. Fully-qualified Vertex AI Search data store resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`string datastore = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The datastore to set.- Returns:
- This builder for chaining.
-
clearDatastore
Optional. Fully-qualified Vertex AI Search data store resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`string datastore = 1 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setDatastoreBytes
Optional. Fully-qualified Vertex AI Search data store resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`string datastore = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for datastore to set.- Returns:
- This builder for chaining.
-
getEngine
Optional. Fully-qualified Vertex AI Search engine resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`string engine = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEnginein interfaceVertexAISearchOrBuilder- Returns:
- The engine.
-
getEngineBytes
public com.google.protobuf.ByteString getEngineBytes()Optional. Fully-qualified Vertex AI Search engine resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`string engine = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEngineBytesin interfaceVertexAISearchOrBuilder- Returns:
- The bytes for engine.
-
setEngine
Optional. Fully-qualified Vertex AI Search engine resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`string engine = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The engine to set.- Returns:
- This builder for chaining.
-
clearEngine
Optional. Fully-qualified Vertex AI Search engine resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`string engine = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setEngineBytes
Optional. Fully-qualified Vertex AI Search engine resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`string engine = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for engine to set.- Returns:
- This builder for chaining.
-
getMaxResults
public int getMaxResults()Optional. Number of search results to return per query. The default value is 10. The maximumm allowed value is 10.
int32 max_results = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMaxResultsin interfaceVertexAISearchOrBuilder- Returns:
- The maxResults.
-
setMaxResults
Optional. Number of search results to return per query. The default value is 10. The maximumm allowed value is 10.
int32 max_results = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The maxResults to set.- Returns:
- This builder for chaining.
-
clearMaxResults
Optional. Number of search results to return per query. The default value is 10. The maximumm allowed value is 10.
int32 max_results = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getFilter
Optional. Filter strings to be passed to the search API.
string filter = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFilterin interfaceVertexAISearchOrBuilder- Returns:
- The filter.
-
getFilterBytes
public com.google.protobuf.ByteString getFilterBytes()Optional. Filter strings to be passed to the search API.
string filter = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFilterBytesin interfaceVertexAISearchOrBuilder- Returns:
- The bytes for filter.
-
setFilter
Optional. Filter strings to be passed to the search API.
string filter = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The filter to set.- Returns:
- This builder for chaining.
-
clearFilter
Optional. Filter strings to be passed to the search API.
string filter = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setFilterBytes
Optional. Filter strings to be passed to the search API.
string filter = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for filter to set.- Returns:
- This builder for chaining.
-
getDataStoreSpecsList
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.
repeated .google.cloud.aiplatform.v1.VertexAISearch.DataStoreSpec data_store_specs = 5;- Specified by:
getDataStoreSpecsListin interfaceVertexAISearchOrBuilder
-
getDataStoreSpecsCount
public int getDataStoreSpecsCount()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.
repeated .google.cloud.aiplatform.v1.VertexAISearch.DataStoreSpec data_store_specs = 5;- Specified by:
getDataStoreSpecsCountin interfaceVertexAISearchOrBuilder
-
getDataStoreSpecs
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.
repeated .google.cloud.aiplatform.v1.VertexAISearch.DataStoreSpec data_store_specs = 5;- Specified by:
getDataStoreSpecsin interfaceVertexAISearchOrBuilder
-
setDataStoreSpecs
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.
repeated .google.cloud.aiplatform.v1.VertexAISearch.DataStoreSpec data_store_specs = 5; -
setDataStoreSpecs
public VertexAISearch.Builder setDataStoreSpecs(int index, VertexAISearch.DataStoreSpec.Builder builderForValue) 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.
repeated .google.cloud.aiplatform.v1.VertexAISearch.DataStoreSpec data_store_specs = 5; -
addDataStoreSpecs
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.
repeated .google.cloud.aiplatform.v1.VertexAISearch.DataStoreSpec data_store_specs = 5; -
addDataStoreSpecs
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.
repeated .google.cloud.aiplatform.v1.VertexAISearch.DataStoreSpec data_store_specs = 5; -
addDataStoreSpecs
public VertexAISearch.Builder addDataStoreSpecs(VertexAISearch.DataStoreSpec.Builder builderForValue) 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.
repeated .google.cloud.aiplatform.v1.VertexAISearch.DataStoreSpec data_store_specs = 5; -
addDataStoreSpecs
public VertexAISearch.Builder addDataStoreSpecs(int index, VertexAISearch.DataStoreSpec.Builder builderForValue) 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.
repeated .google.cloud.aiplatform.v1.VertexAISearch.DataStoreSpec data_store_specs = 5; -
addAllDataStoreSpecs
public VertexAISearch.Builder addAllDataStoreSpecs(Iterable<? extends VertexAISearch.DataStoreSpec> values) 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.
repeated .google.cloud.aiplatform.v1.VertexAISearch.DataStoreSpec data_store_specs = 5; -
clearDataStoreSpecs
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.
repeated .google.cloud.aiplatform.v1.VertexAISearch.DataStoreSpec data_store_specs = 5; -
removeDataStoreSpecs
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.
repeated .google.cloud.aiplatform.v1.VertexAISearch.DataStoreSpec data_store_specs = 5; -
getDataStoreSpecsBuilder
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.
repeated .google.cloud.aiplatform.v1.VertexAISearch.DataStoreSpec data_store_specs = 5; -
getDataStoreSpecsOrBuilder
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.
repeated .google.cloud.aiplatform.v1.VertexAISearch.DataStoreSpec data_store_specs = 5;- Specified by:
getDataStoreSpecsOrBuilderin interfaceVertexAISearchOrBuilder
-
getDataStoreSpecsOrBuilderList
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.
repeated .google.cloud.aiplatform.v1.VertexAISearch.DataStoreSpec data_store_specs = 5;- Specified by:
getDataStoreSpecsOrBuilderListin interfaceVertexAISearchOrBuilder
-
addDataStoreSpecsBuilder
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.
repeated .google.cloud.aiplatform.v1.VertexAISearch.DataStoreSpec data_store_specs = 5; -
addDataStoreSpecsBuilder
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.
repeated .google.cloud.aiplatform.v1.VertexAISearch.DataStoreSpec data_store_specs = 5; -
getDataStoreSpecsBuilderList
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.
repeated .google.cloud.aiplatform.v1.VertexAISearch.DataStoreSpec data_store_specs = 5;
-