Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/discoveryengine_v1/classes.rb,
lib/google/apis/discoveryengine_v1/representations.rb,
lib/google/apis/discoveryengine_v1/representations.rb

Overview

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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec

Returns a new instance of GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec.



18536
18537
18538
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 18536

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#data_storeString

Required. Full resource name of DataStore, such as projects/project/ locations/location/collections/collection_id/dataStores/data_store_id`. Corresponds to the JSON propertydataStore`

Returns:

  • (String)


18527
18528
18529
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 18527

def data_store
  @data_store
end

#filterString

Optional. Filter specification to filter documents in the data store specified by data_store field. For more information on filtering, see Filtering Corresponds to the JSON property filter

Returns:

  • (String)


18534
18535
18536
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 18534

def filter
  @filter
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18541
18542
18543
18544
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 18541

def update!(**args)
  @data_store = args[:data_store] if args.key?(:data_store)
  @filter = args[:filter] if args.key?(:filter)
end