Class: Google::Apis::CesV1::DataStoreToolBoostSpecs

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

Overview

Boost specifications to boost certain documents. For more information, please refer to https://cloud.google.com/generative-ai-app-builder/docs/boosting.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DataStoreToolBoostSpecs

Returns a new instance of DataStoreToolBoostSpecs.



2256
2257
2258
# File 'lib/google/apis/ces_v1/classes.rb', line 2256

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

Instance Attribute Details

#data_storesArray<String>

Required. The Data Store where the boosting configuration is applied. Full resource name of DataStore, such as projects/project/locations/location/ collections/collection/dataStores/dataStore. Corresponds to the JSON property dataStores

Returns:

  • (Array<String>)


2249
2250
2251
# File 'lib/google/apis/ces_v1/classes.rb', line 2249

def data_stores
  @data_stores
end

#specArray<Google::Apis::CesV1::DataStoreToolBoostSpec>

Required. A list of boosting specifications. Corresponds to the JSON property spec



2254
2255
2256
# File 'lib/google/apis/ces_v1/classes.rb', line 2254

def spec
  @spec
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2261
2262
2263
2264
# File 'lib/google/apis/ces_v1/classes.rb', line 2261

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