Class: Google::Apis::RetailV2::GoogleCloudRetailV2ModelModelFeaturesConfig

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

Overview

Additional model features config.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2ModelModelFeaturesConfig

Returns a new instance of GoogleCloudRetailV2ModelModelFeaturesConfig.



2141
2142
2143
# File 'lib/google/apis/retail_v2/classes.rb', line 2141

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

Instance Attribute Details

#frequently_bought_together_configGoogle::Apis::RetailV2::GoogleCloudRetailV2ModelFrequentlyBoughtTogetherFeaturesConfig

Additional configs for the frequently-bought-together model type. Corresponds to the JSON property frequentlyBoughtTogetherConfig



2139
2140
2141
# File 'lib/google/apis/retail_v2/classes.rb', line 2139

def frequently_bought_together_config
  @frequently_bought_together_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2146
2147
2148
# File 'lib/google/apis/retail_v2/classes.rb', line 2146

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