Class AnswerQueryRequest.SearchSpec.SearchParams.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AnswerQueryRequest.SearchSpec.SearchParams.Builder>
com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams.Builder
All Implemented Interfaces:
AnswerQueryRequest.SearchSpec.SearchParamsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AnswerQueryRequest.SearchSpec.SearchParams

public static final class AnswerQueryRequest.SearchSpec.SearchParams.Builder extends com.google.protobuf.GeneratedMessage.Builder<AnswerQueryRequest.SearchSpec.SearchParams.Builder> implements AnswerQueryRequest.SearchSpec.SearchParamsOrBuilder
 Search parameters.
 
Protobuf type google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<AnswerQueryRequest.SearchSpec.SearchParams.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<AnswerQueryRequest.SearchSpec.SearchParams.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<AnswerQueryRequest.SearchSpec.SearchParams.Builder>
    • getDefaultInstanceForType

      public AnswerQueryRequest.SearchSpec.SearchParams getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public AnswerQueryRequest.SearchSpec.SearchParams.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AnswerQueryRequest.SearchSpec.SearchParams.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<AnswerQueryRequest.SearchSpec.SearchParams.Builder>
    • mergeFrom

      public AnswerQueryRequest.SearchSpec.SearchParams.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AnswerQueryRequest.SearchSpec.SearchParams.Builder>
      Throws:
      IOException
    • getMaxReturnResults

      public int getMaxReturnResults()
       Number of search results to return.
       The default value is 10.
       
      int32 max_return_results = 1;
      Specified by:
      getMaxReturnResults in interface AnswerQueryRequest.SearchSpec.SearchParamsOrBuilder
      Returns:
      The maxReturnResults.
    • setMaxReturnResults

      public AnswerQueryRequest.SearchSpec.SearchParams.Builder setMaxReturnResults(int value)
       Number of search results to return.
       The default value is 10.
       
      int32 max_return_results = 1;
      Parameters:
      value - The maxReturnResults to set.
      Returns:
      This builder for chaining.
    • clearMaxReturnResults

       Number of search results to return.
       The default value is 10.
       
      int32 max_return_results = 1;
      Returns:
      This builder for chaining.
    • getFilter

      public String getFilter()
       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. This will be used to filter
       search results which may affect the Answer response.
      
       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 customers 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 = 2;
      Specified by:
      getFilter in interface AnswerQueryRequest.SearchSpec.SearchParamsOrBuilder
      Returns:
      The filter.
    • getFilterBytes

      public com.google.protobuf.ByteString getFilterBytes()
       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. This will be used to filter
       search results which may affect the Answer response.
      
       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 customers 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 = 2;
      Specified by:
      getFilterBytes in interface AnswerQueryRequest.SearchSpec.SearchParamsOrBuilder
      Returns:
      The bytes for filter.
    • setFilter

       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. This will be used to filter
       search results which may affect the Answer response.
      
       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 customers 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 = 2;
      Parameters:
      value - The filter to set.
      Returns:
      This builder for chaining.
    • clearFilter

       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. This will be used to filter
       search results which may affect the Answer response.
      
       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 customers 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 = 2;
      Returns:
      This builder for chaining.
    • setFilterBytes

      public AnswerQueryRequest.SearchSpec.SearchParams.Builder setFilterBytes(com.google.protobuf.ByteString value)
       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. This will be used to filter
       search results which may affect the Answer response.
      
       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 customers 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 = 2;
      Parameters:
      value - The bytes for filter to set.
      Returns:
      This builder for chaining.
    • hasBoostSpec

      public boolean hasBoostSpec()
       Boost specification to boost certain documents in search results which
       may affect the answer query response. For more information on boosting,
       see [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
       
      .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 3;
      Specified by:
      hasBoostSpec in interface AnswerQueryRequest.SearchSpec.SearchParamsOrBuilder
      Returns:
      Whether the boostSpec field is set.
    • getBoostSpec

      public SearchRequest.BoostSpec getBoostSpec()
       Boost specification to boost certain documents in search results which
       may affect the answer query response. For more information on boosting,
       see [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
       
      .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 3;
      Specified by:
      getBoostSpec in interface AnswerQueryRequest.SearchSpec.SearchParamsOrBuilder
      Returns:
      The boostSpec.
    • setBoostSpec

       Boost specification to boost certain documents in search results which
       may affect the answer query response. For more information on boosting,
       see [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
       
      .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 3;
    • setBoostSpec

       Boost specification to boost certain documents in search results which
       may affect the answer query response. For more information on boosting,
       see [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
       
      .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 3;
    • mergeBoostSpec

       Boost specification to boost certain documents in search results which
       may affect the answer query response. For more information on boosting,
       see [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
       
      .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 3;
    • clearBoostSpec

       Boost specification to boost certain documents in search results which
       may affect the answer query response. For more information on boosting,
       see [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
       
      .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 3;
    • getBoostSpecBuilder

      public SearchRequest.BoostSpec.Builder getBoostSpecBuilder()
       Boost specification to boost certain documents in search results which
       may affect the answer query response. For more information on boosting,
       see [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
       
      .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 3;
    • getBoostSpecOrBuilder

      public SearchRequest.BoostSpecOrBuilder getBoostSpecOrBuilder()
       Boost specification to boost certain documents in search results which
       may affect the answer query response. For more information on boosting,
       see [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
       
      .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 3;
      Specified by:
      getBoostSpecOrBuilder in interface AnswerQueryRequest.SearchSpec.SearchParamsOrBuilder
    • getOrderBy

      public String getOrderBy()
       The order in which documents are returned. Documents can be ordered
       by a field in an
       [Document][google.cloud.discoveryengine.v1beta.Document] object. Leave
       it unset if ordered by relevance. `order_by` expression is
       case-sensitive. For more information on ordering, see
       [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order)
      
       If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
       
      string order_by = 4;
      Specified by:
      getOrderBy in interface AnswerQueryRequest.SearchSpec.SearchParamsOrBuilder
      Returns:
      The orderBy.
    • getOrderByBytes

      public com.google.protobuf.ByteString getOrderByBytes()
       The order in which documents are returned. Documents can be ordered
       by a field in an
       [Document][google.cloud.discoveryengine.v1beta.Document] object. Leave
       it unset if ordered by relevance. `order_by` expression is
       case-sensitive. For more information on ordering, see
       [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order)
      
       If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
       
      string order_by = 4;
      Specified by:
      getOrderByBytes in interface AnswerQueryRequest.SearchSpec.SearchParamsOrBuilder
      Returns:
      The bytes for orderBy.
    • setOrderBy

       The order in which documents are returned. Documents can be ordered
       by a field in an
       [Document][google.cloud.discoveryengine.v1beta.Document] object. Leave
       it unset if ordered by relevance. `order_by` expression is
       case-sensitive. For more information on ordering, see
       [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order)
      
       If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
       
      string order_by = 4;
      Parameters:
      value - The orderBy to set.
      Returns:
      This builder for chaining.
    • clearOrderBy

       The order in which documents are returned. Documents can be ordered
       by a field in an
       [Document][google.cloud.discoveryengine.v1beta.Document] object. Leave
       it unset if ordered by relevance. `order_by` expression is
       case-sensitive. For more information on ordering, see
       [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order)
      
       If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
       
      string order_by = 4;
      Returns:
      This builder for chaining.
    • setOrderByBytes

      public AnswerQueryRequest.SearchSpec.SearchParams.Builder setOrderByBytes(com.google.protobuf.ByteString value)
       The order in which documents are returned. Documents can be ordered
       by a field in an
       [Document][google.cloud.discoveryengine.v1beta.Document] object. Leave
       it unset if ordered by relevance. `order_by` expression is
       case-sensitive. For more information on ordering, see
       [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order)
      
       If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
       
      string order_by = 4;
      Parameters:
      value - The bytes for orderBy to set.
      Returns:
      This builder for chaining.
    • getSearchResultModeValue

      public int getSearchResultModeValue()
       Specifies the search result mode. If unspecified, the
       search result mode defaults to `DOCUMENTS`.
       See [parse and chunk
       documents](https://cloud.google.com/generative-ai-app-builder/docs/parse-chunk-documents)
       
      .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 5;
      Specified by:
      getSearchResultModeValue in interface AnswerQueryRequest.SearchSpec.SearchParamsOrBuilder
      Returns:
      The enum numeric value on the wire for searchResultMode.
    • setSearchResultModeValue

      public AnswerQueryRequest.SearchSpec.SearchParams.Builder setSearchResultModeValue(int value)
       Specifies the search result mode. If unspecified, the
       search result mode defaults to `DOCUMENTS`.
       See [parse and chunk
       documents](https://cloud.google.com/generative-ai-app-builder/docs/parse-chunk-documents)
       
      .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 5;
      Parameters:
      value - The enum numeric value on the wire for searchResultMode to set.
      Returns:
      This builder for chaining.
    • getSearchResultMode

       Specifies the search result mode. If unspecified, the
       search result mode defaults to `DOCUMENTS`.
       See [parse and chunk
       documents](https://cloud.google.com/generative-ai-app-builder/docs/parse-chunk-documents)
       
      .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 5;
      Specified by:
      getSearchResultMode in interface AnswerQueryRequest.SearchSpec.SearchParamsOrBuilder
      Returns:
      The searchResultMode.
    • setSearchResultMode

       Specifies the search result mode. If unspecified, the
       search result mode defaults to `DOCUMENTS`.
       See [parse and chunk
       documents](https://cloud.google.com/generative-ai-app-builder/docs/parse-chunk-documents)
       
      .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 5;
      Parameters:
      value - The searchResultMode to set.
      Returns:
      This builder for chaining.
    • clearSearchResultMode

       Specifies the search result mode. If unspecified, the
       search result mode defaults to `DOCUMENTS`.
       See [parse and chunk
       documents](https://cloud.google.com/generative-ai-app-builder/docs/parse-chunk-documents)
       
      .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 5;
      Returns:
      This builder for chaining.
    • getDataStoreSpecsList

      public List<SearchRequest.DataStoreSpec> getDataStoreSpecsList()
       Specs defining dataStores to filter on in a search call and
       configurations for those dataStores. This is only considered for
       engines with multiple dataStores use case. For single dataStore within
       an engine, they should use the specs at the top level.
       
      repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7;
      Specified by:
      getDataStoreSpecsList in interface AnswerQueryRequest.SearchSpec.SearchParamsOrBuilder
    • getDataStoreSpecsCount

      public int getDataStoreSpecsCount()
       Specs defining dataStores to filter on in a search call and
       configurations for those dataStores. This is only considered for
       engines with multiple dataStores use case. For single dataStore within
       an engine, they should use the specs at the top level.
       
      repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7;
      Specified by:
      getDataStoreSpecsCount in interface AnswerQueryRequest.SearchSpec.SearchParamsOrBuilder
    • getDataStoreSpecs

      public SearchRequest.DataStoreSpec getDataStoreSpecs(int index)
       Specs defining dataStores to filter on in a search call and
       configurations for those dataStores. This is only considered for
       engines with multiple dataStores use case. For single dataStore within
       an engine, they should use the specs at the top level.
       
      repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7;
      Specified by:
      getDataStoreSpecs in interface AnswerQueryRequest.SearchSpec.SearchParamsOrBuilder
    • setDataStoreSpecs

       Specs defining dataStores to filter on in a search call and
       configurations for those dataStores. This is only considered for
       engines with multiple dataStores use case. For single dataStore within
       an engine, they should use the specs at the top level.
       
      repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7;
    • setDataStoreSpecs

      public AnswerQueryRequest.SearchSpec.SearchParams.Builder setDataStoreSpecs(int index, SearchRequest.DataStoreSpec.Builder builderForValue)
       Specs defining dataStores to filter on in a search call and
       configurations for those dataStores. This is only considered for
       engines with multiple dataStores use case. For single dataStore within
       an engine, they should use the specs at the top level.
       
      repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7;
    • addDataStoreSpecs

       Specs defining dataStores to filter on in a search call and
       configurations for those dataStores. This is only considered for
       engines with multiple dataStores use case. For single dataStore within
       an engine, they should use the specs at the top level.
       
      repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7;
    • addDataStoreSpecs

       Specs defining dataStores to filter on in a search call and
       configurations for those dataStores. This is only considered for
       engines with multiple dataStores use case. For single dataStore within
       an engine, they should use the specs at the top level.
       
      repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7;
    • addDataStoreSpecs

       Specs defining dataStores to filter on in a search call and
       configurations for those dataStores. This is only considered for
       engines with multiple dataStores use case. For single dataStore within
       an engine, they should use the specs at the top level.
       
      repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7;
    • addDataStoreSpecs

      public AnswerQueryRequest.SearchSpec.SearchParams.Builder addDataStoreSpecs(int index, SearchRequest.DataStoreSpec.Builder builderForValue)
       Specs defining dataStores to filter on in a search call and
       configurations for those dataStores. This is only considered for
       engines with multiple dataStores use case. For single dataStore within
       an engine, they should use the specs at the top level.
       
      repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7;
    • addAllDataStoreSpecs

       Specs defining dataStores to filter on in a search call and
       configurations for those dataStores. This is only considered for
       engines with multiple dataStores use case. For single dataStore within
       an engine, they should use the specs at the top level.
       
      repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7;
    • clearDataStoreSpecs

       Specs defining dataStores to filter on in a search call and
       configurations for those dataStores. This is only considered for
       engines with multiple dataStores use case. For single dataStore within
       an engine, they should use the specs at the top level.
       
      repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7;
    • removeDataStoreSpecs

      public AnswerQueryRequest.SearchSpec.SearchParams.Builder removeDataStoreSpecs(int index)
       Specs defining dataStores to filter on in a search call and
       configurations for those dataStores. This is only considered for
       engines with multiple dataStores use case. For single dataStore within
       an engine, they should use the specs at the top level.
       
      repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7;
    • getDataStoreSpecsBuilder

      public SearchRequest.DataStoreSpec.Builder getDataStoreSpecsBuilder(int index)
       Specs defining dataStores to filter on in a search call and
       configurations for those dataStores. This is only considered for
       engines with multiple dataStores use case. For single dataStore within
       an engine, they should use the specs at the top level.
       
      repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7;
    • getDataStoreSpecsOrBuilder

      public SearchRequest.DataStoreSpecOrBuilder getDataStoreSpecsOrBuilder(int index)
       Specs defining dataStores to filter on in a search call and
       configurations for those dataStores. This is only considered for
       engines with multiple dataStores use case. For single dataStore within
       an engine, they should use the specs at the top level.
       
      repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7;
      Specified by:
      getDataStoreSpecsOrBuilder in interface AnswerQueryRequest.SearchSpec.SearchParamsOrBuilder
    • getDataStoreSpecsOrBuilderList

      public List<? extends SearchRequest.DataStoreSpecOrBuilder> getDataStoreSpecsOrBuilderList()
       Specs defining dataStores to filter on in a search call and
       configurations for those dataStores. This is only considered for
       engines with multiple dataStores use case. For single dataStore within
       an engine, they should use the specs at the top level.
       
      repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7;
      Specified by:
      getDataStoreSpecsOrBuilderList in interface AnswerQueryRequest.SearchSpec.SearchParamsOrBuilder
    • addDataStoreSpecsBuilder

      public SearchRequest.DataStoreSpec.Builder addDataStoreSpecsBuilder()
       Specs defining dataStores to filter on in a search call and
       configurations for those dataStores. This is only considered for
       engines with multiple dataStores use case. For single dataStore within
       an engine, they should use the specs at the top level.
       
      repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7;
    • addDataStoreSpecsBuilder

      public SearchRequest.DataStoreSpec.Builder addDataStoreSpecsBuilder(int index)
       Specs defining dataStores to filter on in a search call and
       configurations for those dataStores. This is only considered for
       engines with multiple dataStores use case. For single dataStore within
       an engine, they should use the specs at the top level.
       
      repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7;
    • getDataStoreSpecsBuilderList

      public List<SearchRequest.DataStoreSpec.Builder> getDataStoreSpecsBuilderList()
       Specs defining dataStores to filter on in a search call and
       configurations for those dataStores. This is only considered for
       engines with multiple dataStores use case. For single dataStore within
       an engine, they should use the specs at the top level.
       
      repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7;
    • hasNaturalLanguageQueryUnderstandingSpec

      public boolean hasNaturalLanguageQueryUnderstandingSpec()
       Optional. Specification to enable natural language understanding
       capabilities for search requests.
       
      .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasNaturalLanguageQueryUnderstandingSpec in interface AnswerQueryRequest.SearchSpec.SearchParamsOrBuilder
      Returns:
      Whether the naturalLanguageQueryUnderstandingSpec field is set.
    • getNaturalLanguageQueryUnderstandingSpec

      public SearchRequest.NaturalLanguageQueryUnderstandingSpec getNaturalLanguageQueryUnderstandingSpec()
       Optional. Specification to enable natural language understanding
       capabilities for search requests.
       
      .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNaturalLanguageQueryUnderstandingSpec in interface AnswerQueryRequest.SearchSpec.SearchParamsOrBuilder
      Returns:
      The naturalLanguageQueryUnderstandingSpec.
    • setNaturalLanguageQueryUnderstandingSpec

       Optional. Specification to enable natural language understanding
       capabilities for search requests.
       
      .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 8 [(.google.api.field_behavior) = OPTIONAL];
    • setNaturalLanguageQueryUnderstandingSpec

       Optional. Specification to enable natural language understanding
       capabilities for search requests.
       
      .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 8 [(.google.api.field_behavior) = OPTIONAL];
    • mergeNaturalLanguageQueryUnderstandingSpec

       Optional. Specification to enable natural language understanding
       capabilities for search requests.
       
      .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 8 [(.google.api.field_behavior) = OPTIONAL];
    • clearNaturalLanguageQueryUnderstandingSpec

      public AnswerQueryRequest.SearchSpec.SearchParams.Builder clearNaturalLanguageQueryUnderstandingSpec()
       Optional. Specification to enable natural language understanding
       capabilities for search requests.
       
      .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 8 [(.google.api.field_behavior) = OPTIONAL];
    • getNaturalLanguageQueryUnderstandingSpecBuilder

      public SearchRequest.NaturalLanguageQueryUnderstandingSpec.Builder getNaturalLanguageQueryUnderstandingSpecBuilder()
       Optional. Specification to enable natural language understanding
       capabilities for search requests.
       
      .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 8 [(.google.api.field_behavior) = OPTIONAL];
    • getNaturalLanguageQueryUnderstandingSpecOrBuilder

      public SearchRequest.NaturalLanguageQueryUnderstandingSpecOrBuilder getNaturalLanguageQueryUnderstandingSpecOrBuilder()
       Optional. Specification to enable natural language understanding
       capabilities for search requests.
       
      .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNaturalLanguageQueryUnderstandingSpecOrBuilder in interface AnswerQueryRequest.SearchSpec.SearchParamsOrBuilder