Class: Google::Apis::RetailV2beta::GoogleCloudRetailV2alphaModelFrequentlyBoughtTogetherFeaturesConfig

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

Overview

More configs of the frequently-bought-together model type.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2alphaModelFrequentlyBoughtTogetherFeaturesConfig

Returns a new instance of GoogleCloudRetailV2alphaModelFrequentlyBoughtTogetherFeaturesConfig.



1652
1653
1654
# File 'lib/google/apis/retail_v2beta/classes.rb', line 1652

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

Instance Attribute Details

#context_products_typeString

Optional. Specifies the context of the model when used in predict requests. Only settable for the frequently-bought-together type. Will default to MULTI_CONTEXT if not specified. Corresponds to the JSON property contextProductsType

Returns:

  • (String)


1650
1651
1652
# File 'lib/google/apis/retail_v2beta/classes.rb', line 1650

def context_products_type
  @context_products_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1657
1658
1659
# File 'lib/google/apis/retail_v2beta/classes.rb', line 1657

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