Class: Google::Apis::RetailV2::GoogleCloudRetailV2GenerativeQuestionsFeatureConfig

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

Configuration for overall generative question feature state.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2GenerativeQuestionsFeatureConfig

Returns a new instance of GoogleCloudRetailV2GenerativeQuestionsFeatureConfig.



1927
1928
1929
# File 'lib/google/apis/retail_v2/classes.rb', line 1927

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

Instance Attribute Details

#catalogString

Required. Resource name of the affected catalog. Format: projects/project/ locations/location/catalogs/catalog Corresponds to the JSON property catalog

Returns:

  • (String)


1912
1913
1914
# File 'lib/google/apis/retail_v2/classes.rb', line 1912

def catalog
  @catalog
end

#feature_enabledBoolean Also known as: feature_enabled?

Optional. Determines whether questions will be used at serving time. Note: This feature cannot be enabled until initial data requirements are satisfied. Corresponds to the JSON property featureEnabled

Returns:

  • (Boolean)


1918
1919
1920
# File 'lib/google/apis/retail_v2/classes.rb', line 1918

def feature_enabled
  @feature_enabled
end

#minimum_productsFixnum

Optional. Minimum number of products in the response to trigger follow-up questions. Value must be 0 or positive. Corresponds to the JSON property minimumProducts

Returns:

  • (Fixnum)


1925
1926
1927
# File 'lib/google/apis/retail_v2/classes.rb', line 1925

def minimum_products
  @minimum_products
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1932
1933
1934
1935
1936
# File 'lib/google/apis/retail_v2/classes.rb', line 1932

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