Class StreamAssistRequest.ToolsSpec.VertexAiSearchSpec.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<StreamAssistRequest.ToolsSpec.VertexAiSearchSpec.Builder>
com.google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec.Builder
- All Implemented Interfaces:
StreamAssistRequest.ToolsSpec.VertexAiSearchSpecOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- StreamAssistRequest.ToolsSpec.VertexAiSearchSpec
public static final class StreamAssistRequest.ToolsSpec.VertexAiSearchSpec.Builder
extends com.google.protobuf.GeneratedMessage.Builder<StreamAssistRequest.ToolsSpec.VertexAiSearchSpec.Builder>
implements StreamAssistRequest.ToolsSpec.VertexAiSearchSpecOrBuilder
Specification of the Vertex AI Search tool.Protobuf type
google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec-
Method Summary
Modifier and TypeMethodDescriptionaddAllDataStoreSpecs(Iterable<? extends SearchRequest.DataStoreSpec> values) Optional.addDataStoreSpecs(int index, SearchRequest.DataStoreSpec value) Optional.addDataStoreSpecs(int index, SearchRequest.DataStoreSpec.Builder builderForValue) Optional.Optional.addDataStoreSpecs(SearchRequest.DataStoreSpec.Builder builderForValue) Optional.Optional.addDataStoreSpecsBuilder(int index) Optional.build()clear()Optional.Optional.getDataStoreSpecs(int index) Optional.getDataStoreSpecsBuilder(int index) Optional.Optional.intOptional.Optional.getDataStoreSpecsOrBuilder(int index) Optional.List<? extends SearchRequest.DataStoreSpecOrBuilder>Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeDataStoreSpecs(int index) Optional.setDataStoreSpecs(int index, SearchRequest.DataStoreSpec value) Optional.setDataStoreSpecs(int index, SearchRequest.DataStoreSpec.Builder builderForValue) Optional.Optional.setFilterBytes(com.google.protobuf.ByteString 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<StreamAssistRequest.ToolsSpec.VertexAiSearchSpec.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<StreamAssistRequest.ToolsSpec.VertexAiSearchSpec.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<StreamAssistRequest.ToolsSpec.VertexAiSearchSpec.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
public StreamAssistRequest.ToolsSpec.VertexAiSearchSpec.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<StreamAssistRequest.ToolsSpec.VertexAiSearchSpec.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<StreamAssistRequest.ToolsSpec.VertexAiSearchSpec.Builder>
-
mergeFrom
public StreamAssistRequest.ToolsSpec.VertexAiSearchSpec.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<StreamAssistRequest.ToolsSpec.VertexAiSearchSpec.Builder>- Throws:
IOException
-
getDataStoreSpecsList
Optional. Specs defining [DataStore][google.cloud.discoveryengine.v1.DataStore]s to filter on in a search call and configurations for those data stores. This is only considered for [Engine][google.cloud.discoveryengine.v1.Engine]s with multiple data stores.
repeated .google.cloud.discoveryengine.v1.SearchRequest.DataStoreSpec data_store_specs = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDataStoreSpecsListin interfaceStreamAssistRequest.ToolsSpec.VertexAiSearchSpecOrBuilder
-
getDataStoreSpecsCount
public int getDataStoreSpecsCount()Optional. Specs defining [DataStore][google.cloud.discoveryengine.v1.DataStore]s to filter on in a search call and configurations for those data stores. This is only considered for [Engine][google.cloud.discoveryengine.v1.Engine]s with multiple data stores.
repeated .google.cloud.discoveryengine.v1.SearchRequest.DataStoreSpec data_store_specs = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDataStoreSpecsCountin interfaceStreamAssistRequest.ToolsSpec.VertexAiSearchSpecOrBuilder
-
getDataStoreSpecs
Optional. Specs defining [DataStore][google.cloud.discoveryengine.v1.DataStore]s to filter on in a search call and configurations for those data stores. This is only considered for [Engine][google.cloud.discoveryengine.v1.Engine]s with multiple data stores.
repeated .google.cloud.discoveryengine.v1.SearchRequest.DataStoreSpec data_store_specs = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDataStoreSpecsin interfaceStreamAssistRequest.ToolsSpec.VertexAiSearchSpecOrBuilder
-
setDataStoreSpecs
public StreamAssistRequest.ToolsSpec.VertexAiSearchSpec.Builder setDataStoreSpecs(int index, SearchRequest.DataStoreSpec value) Optional. Specs defining [DataStore][google.cloud.discoveryengine.v1.DataStore]s to filter on in a search call and configurations for those data stores. This is only considered for [Engine][google.cloud.discoveryengine.v1.Engine]s with multiple data stores.
repeated .google.cloud.discoveryengine.v1.SearchRequest.DataStoreSpec data_store_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; -
setDataStoreSpecs
public StreamAssistRequest.ToolsSpec.VertexAiSearchSpec.Builder setDataStoreSpecs(int index, SearchRequest.DataStoreSpec.Builder builderForValue) Optional. Specs defining [DataStore][google.cloud.discoveryengine.v1.DataStore]s to filter on in a search call and configurations for those data stores. This is only considered for [Engine][google.cloud.discoveryengine.v1.Engine]s with multiple data stores.
repeated .google.cloud.discoveryengine.v1.SearchRequest.DataStoreSpec data_store_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; -
addDataStoreSpecs
public StreamAssistRequest.ToolsSpec.VertexAiSearchSpec.Builder addDataStoreSpecs(SearchRequest.DataStoreSpec value) Optional. Specs defining [DataStore][google.cloud.discoveryengine.v1.DataStore]s to filter on in a search call and configurations for those data stores. This is only considered for [Engine][google.cloud.discoveryengine.v1.Engine]s with multiple data stores.
repeated .google.cloud.discoveryengine.v1.SearchRequest.DataStoreSpec data_store_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; -
addDataStoreSpecs
public StreamAssistRequest.ToolsSpec.VertexAiSearchSpec.Builder addDataStoreSpecs(int index, SearchRequest.DataStoreSpec value) Optional. Specs defining [DataStore][google.cloud.discoveryengine.v1.DataStore]s to filter on in a search call and configurations for those data stores. This is only considered for [Engine][google.cloud.discoveryengine.v1.Engine]s with multiple data stores.
repeated .google.cloud.discoveryengine.v1.SearchRequest.DataStoreSpec data_store_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; -
addDataStoreSpecs
public StreamAssistRequest.ToolsSpec.VertexAiSearchSpec.Builder addDataStoreSpecs(SearchRequest.DataStoreSpec.Builder builderForValue) Optional. Specs defining [DataStore][google.cloud.discoveryengine.v1.DataStore]s to filter on in a search call and configurations for those data stores. This is only considered for [Engine][google.cloud.discoveryengine.v1.Engine]s with multiple data stores.
repeated .google.cloud.discoveryengine.v1.SearchRequest.DataStoreSpec data_store_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; -
addDataStoreSpecs
public StreamAssistRequest.ToolsSpec.VertexAiSearchSpec.Builder addDataStoreSpecs(int index, SearchRequest.DataStoreSpec.Builder builderForValue) Optional. Specs defining [DataStore][google.cloud.discoveryengine.v1.DataStore]s to filter on in a search call and configurations for those data stores. This is only considered for [Engine][google.cloud.discoveryengine.v1.Engine]s with multiple data stores.
repeated .google.cloud.discoveryengine.v1.SearchRequest.DataStoreSpec data_store_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; -
addAllDataStoreSpecs
public StreamAssistRequest.ToolsSpec.VertexAiSearchSpec.Builder addAllDataStoreSpecs(Iterable<? extends SearchRequest.DataStoreSpec> values) Optional. Specs defining [DataStore][google.cloud.discoveryengine.v1.DataStore]s to filter on in a search call and configurations for those data stores. This is only considered for [Engine][google.cloud.discoveryengine.v1.Engine]s with multiple data stores.
repeated .google.cloud.discoveryengine.v1.SearchRequest.DataStoreSpec data_store_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; -
clearDataStoreSpecs
Optional. Specs defining [DataStore][google.cloud.discoveryengine.v1.DataStore]s to filter on in a search call and configurations for those data stores. This is only considered for [Engine][google.cloud.discoveryengine.v1.Engine]s with multiple data stores.
repeated .google.cloud.discoveryengine.v1.SearchRequest.DataStoreSpec data_store_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; -
removeDataStoreSpecs
Optional. Specs defining [DataStore][google.cloud.discoveryengine.v1.DataStore]s to filter on in a search call and configurations for those data stores. This is only considered for [Engine][google.cloud.discoveryengine.v1.Engine]s with multiple data stores.
repeated .google.cloud.discoveryengine.v1.SearchRequest.DataStoreSpec data_store_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getDataStoreSpecsBuilder
Optional. Specs defining [DataStore][google.cloud.discoveryengine.v1.DataStore]s to filter on in a search call and configurations for those data stores. This is only considered for [Engine][google.cloud.discoveryengine.v1.Engine]s with multiple data stores.
repeated .google.cloud.discoveryengine.v1.SearchRequest.DataStoreSpec data_store_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getDataStoreSpecsOrBuilder
Optional. Specs defining [DataStore][google.cloud.discoveryengine.v1.DataStore]s to filter on in a search call and configurations for those data stores. This is only considered for [Engine][google.cloud.discoveryengine.v1.Engine]s with multiple data stores.
repeated .google.cloud.discoveryengine.v1.SearchRequest.DataStoreSpec data_store_specs = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDataStoreSpecsOrBuilderin interfaceStreamAssistRequest.ToolsSpec.VertexAiSearchSpecOrBuilder
-
getDataStoreSpecsOrBuilderList
Optional. Specs defining [DataStore][google.cloud.discoveryengine.v1.DataStore]s to filter on in a search call and configurations for those data stores. This is only considered for [Engine][google.cloud.discoveryengine.v1.Engine]s with multiple data stores.
repeated .google.cloud.discoveryengine.v1.SearchRequest.DataStoreSpec data_store_specs = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDataStoreSpecsOrBuilderListin interfaceStreamAssistRequest.ToolsSpec.VertexAiSearchSpecOrBuilder
-
addDataStoreSpecsBuilder
Optional. Specs defining [DataStore][google.cloud.discoveryengine.v1.DataStore]s to filter on in a search call and configurations for those data stores. This is only considered for [Engine][google.cloud.discoveryengine.v1.Engine]s with multiple data stores.
repeated .google.cloud.discoveryengine.v1.SearchRequest.DataStoreSpec data_store_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; -
addDataStoreSpecsBuilder
Optional. Specs defining [DataStore][google.cloud.discoveryengine.v1.DataStore]s to filter on in a search call and configurations for those data stores. This is only considered for [Engine][google.cloud.discoveryengine.v1.Engine]s with multiple data stores.
repeated .google.cloud.discoveryengine.v1.SearchRequest.DataStoreSpec data_store_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getDataStoreSpecsBuilderList
Optional. Specs defining [DataStore][google.cloud.discoveryengine.v1.DataStore]s to filter on in a search call and configurations for those data stores. This is only considered for [Engine][google.cloud.discoveryengine.v1.Engine]s with multiple data stores.
repeated .google.cloud.discoveryengine.v1.SearchRequest.DataStoreSpec data_store_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getFilter
Optional. The filter syntax consists of an expression language for constructing a predicate from one or more fields of the documents being filtered. Filter expression is case-sensitive. If this field is unrecognizable, an `INVALID_ARGUMENT` is returned. Filtering in Vertex AI Search is done by mapping the LHS filter key to a key property defined in the Vertex AI Search backend -- this mapping is defined by the customer in their schema. For example a media customer might have a field 'name' in their schema. In this case the filter would look like this: filter --> name:'ANY("king kong")' For more information about filtering including syntax and filter operators, see [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)string filter = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFilterin interfaceStreamAssistRequest.ToolsSpec.VertexAiSearchSpecOrBuilder- Returns:
- The filter.
-
getFilterBytes
public com.google.protobuf.ByteString getFilterBytes()Optional. The filter syntax consists of an expression language for constructing a predicate from one or more fields of the documents being filtered. Filter expression is case-sensitive. If this field is unrecognizable, an `INVALID_ARGUMENT` is returned. Filtering in Vertex AI Search is done by mapping the LHS filter key to a key property defined in the Vertex AI Search backend -- this mapping is defined by the customer in their schema. For example a media customer might have a field 'name' in their schema. In this case the filter would look like this: filter --> name:'ANY("king kong")' For more information about filtering including syntax and filter operators, see [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)string filter = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFilterBytesin interfaceStreamAssistRequest.ToolsSpec.VertexAiSearchSpecOrBuilder- Returns:
- The bytes for filter.
-
setFilter
Optional. The filter syntax consists of an expression language for constructing a predicate from one or more fields of the documents being filtered. Filter expression is case-sensitive. If this field is unrecognizable, an `INVALID_ARGUMENT` is returned. Filtering in Vertex AI Search is done by mapping the LHS filter key to a key property defined in the Vertex AI Search backend -- this mapping is defined by the customer in their schema. For example a media customer might have a field 'name' in their schema. In this case the filter would look like this: filter --> name:'ANY("king kong")' For more information about filtering including syntax and filter operators, see [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)string filter = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The filter to set.- Returns:
- This builder for chaining.
-
clearFilter
Optional. The filter syntax consists of an expression language for constructing a predicate from one or more fields of the documents being filtered. Filter expression is case-sensitive. If this field is unrecognizable, an `INVALID_ARGUMENT` is returned. Filtering in Vertex AI Search is done by mapping the LHS filter key to a key property defined in the Vertex AI Search backend -- this mapping is defined by the customer in their schema. For example a media customer might have a field 'name' in their schema. In this case the filter would look like this: filter --> name:'ANY("king kong")' For more information about filtering including syntax and filter operators, see [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)string filter = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setFilterBytes
public StreamAssistRequest.ToolsSpec.VertexAiSearchSpec.Builder setFilterBytes(com.google.protobuf.ByteString value) Optional. The filter syntax consists of an expression language for constructing a predicate from one or more fields of the documents being filtered. Filter expression is case-sensitive. If this field is unrecognizable, an `INVALID_ARGUMENT` is returned. Filtering in Vertex AI Search is done by mapping the LHS filter key to a key property defined in the Vertex AI Search backend -- this mapping is defined by the customer in their schema. For example a media customer might have a field 'name' in their schema. In this case the filter would look like this: filter --> name:'ANY("king kong")' For more information about filtering including syntax and filter operators, see [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)string filter = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for filter to set.- Returns:
- This builder for chaining.
-