Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/discoveryengine_v1alpha/classes.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb,
lib/google/apis/discoveryengine_v1alpha/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) ⇒ GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec

Returns a new instance of GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec.



15470
15471
15472
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 15470

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

Instance Attribute Details

#boost_specGoogle::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpec

Boost specification to boost certain documents. Corresponds to the JSON property boostSpec



15455
15456
15457
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 15455

def boost_spec
  @boost_spec
end

#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)


15461
15462
15463
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 15461

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)


15468
15469
15470
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 15468

def filter
  @filter
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15475
15476
15477
15478
15479
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 15475

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