Class SearchRequest.DataStoreSpec (0.60.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 0.60.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   static   final   class  SearchRequest . DataStoreSpec   extends   GeneratedMessageV3   implements   SearchRequest . DataStoreSpecOrBuilder  
   A struct to define data stores to filter on in a search call and
 configurations for those data stores. Otherwise, an INVALID_ARGUMENT
 error is returned.
 Protobuf type google.cloud.discoveryengine.v1.SearchRequest.DataStoreSpec
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT) 
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int) 
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Fields
   
  BOOST_SPEC_FIELD_NUMBER 
  
    
public   static   final   int   BOOST_SPEC_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  CUSTOM_SEARCH_OPERATORS_FIELD_NUMBER 
  
    
public   static   final   int   CUSTOM_SEARCH_OPERATORS_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  DATA_STORE_FIELD_NUMBER 
  
    
public   static   final   int   DATA_STORE_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  FILTER_FIELD_NUMBER 
  
    
public   static   final   int   FILTER_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  Static Methods
   
  getDefaultInstance() 
  
    
public   static   SearchRequest . DataStoreSpec   getDefaultInstance ()  
  
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  newBuilder() 
  
    
public   static   SearchRequest . DataStoreSpec . Builder   newBuilder ()  
  
  newBuilder(SearchRequest.DataStoreSpec prototype) 
  
    
public   static   SearchRequest . DataStoreSpec . Builder   newBuilder ( SearchRequest . DataStoreSpec   prototype )  
  
  
  
    
public   static   SearchRequest . DataStoreSpec   parseDelimitedFrom ( InputStream   input )  
  
  
  
  
    
public   static   SearchRequest . DataStoreSpec   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(byte[] data) 
  
    
public   static   SearchRequest . DataStoreSpec   parseFrom ( byte []   data )  
  
    
      
        Parameter  
      
        Name Description  
      
        databyte [] 
     
  
  
  
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   SearchRequest . DataStoreSpec   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteString data) 
  
    
public   static   SearchRequest . DataStoreSpec   parseFrom ( ByteString   data )  
  
  
  
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   SearchRequest . DataStoreSpec   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   SearchRequest . DataStoreSpec   parseFrom ( CodedInputStream   input )  
  
  
  
  
    
public   static   SearchRequest . DataStoreSpec   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   SearchRequest . DataStoreSpec   parseFrom ( InputStream   input )  
  
  
  
  
    
public   static   SearchRequest . DataStoreSpec   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteBuffer data) 
  
    
public   static   SearchRequest . DataStoreSpec   parseFrom ( ByteBuffer   data )  
  
  
  
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   SearchRequest . DataStoreSpec   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parser() 
  
    
public   static   Parser<SearchRequest . DataStoreSpec >  parser ()  
  
  Methods
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
  
    
      
        Parameter  
      
        Name Description  
      
        objObject  
     
  
  
  Overrides 
  
  getBoostSpec() 
  
    
public   SearchRequest . BoostSpec   getBoostSpec ()  
   Optional. Boost specification to boost certain documents.
 For more information on boosting, see
 Boosting 
 
 .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL];
 
getBoostSpecOrBuilder() 
  
    
public   SearchRequest . BoostSpecOrBuilder   getBoostSpecOrBuilder ()  
   Optional. Boost specification to boost certain documents.
 For more information on boosting, see
 Boosting 
 
 .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL];
 
getCustomSearchOperators() 
  
    
public   String   getCustomSearchOperators ()  
   Optional. Custom search operators which if specified will be used to
 filter results from workspace data stores. For more information on custom
 search operators, see
 SearchOperators .
 string custom_search_operators = 7 [(.google.api.field_behavior) = OPTIONAL];
    
      
        Returns  
      
        Type Description  
      
        String The customSearchOperators.
 
     
  
  getCustomSearchOperatorsBytes() 
  
    
public   ByteString   getCustomSearchOperatorsBytes ()  
   Optional. Custom search operators which if specified will be used to
 filter results from workspace data stores. For more information on custom
 search operators, see
 SearchOperators .
 string custom_search_operators = 7 [(.google.api.field_behavior) = OPTIONAL];
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for customSearchOperators.
 
     
  
  getDataStore() 
  
    
public   String   getDataStore ()  
   Required. Full resource name of
 DataStore , such as
 projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}.
 
 string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
 
    
      
        Returns  
      
        Type Description  
      
        String The dataStore.
 
     
  
  getDataStoreBytes() 
  
    
public   ByteString   getDataStoreBytes ()  
   Required. Full resource name of
 DataStore , such as
 projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}.
 
 string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
 
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for dataStore.
 
     
  
  getDefaultInstanceForType() 
  
    
public   SearchRequest . DataStoreSpec   getDefaultInstanceForType ()  
  
  getFilter() 
  
    
public   String   getFilter ()  
   Optional. Filter specification to filter documents in the data store
 specified by data_store field. For more information on filtering, see
 Filtering 
 string filter = 5 [(.google.api.field_behavior) = OPTIONAL];
    
      
        Returns  
      
        Type Description  
      
        String The filter.
 
     
  
  getFilterBytes() 
  
    
public   ByteString   getFilterBytes ()  
   Optional. Filter specification to filter documents in the data store
 specified by data_store field. For more information on filtering, see
 Filtering 
 string filter = 5 [(.google.api.field_behavior) = OPTIONAL];
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for filter.
 
     
  
  getParserForType() 
  
    
public   Parser<SearchRequest . DataStoreSpec >  getParserForType ()  
  
  Overrides 
  
  getSerializedSize() 
  
    
public   int   getSerializedSize ()  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  hasBoostSpec() 
  
    
public   boolean   hasBoostSpec ()  
   Optional. Boost specification to boost certain documents.
 For more information on boosting, see
 Boosting 
 
 .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL];
 
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the boostSpec field is set.
 
     
  
  hashCode() 
  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  newBuilderForType() 
  
    
public   SearchRequest . DataStoreSpec . Builder   newBuilderForType ()  
  
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   SearchRequest . DataStoreSpec . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
  
  
  Overrides 
  
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Object  
     
  
  Overrides 
  
  toBuilder() 
  
    
public   SearchRequest . DataStoreSpec . Builder   toBuilder ()  
  
  writeTo(CodedOutputStream output) 
  
    
public   void   writeTo ( CodedOutputStream   output )  
  
  Overrides 
  
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-11 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-11 UTC."],[],[]]