Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaControl
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaControl
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/retail_v2alpha/classes.rb,
lib/google/apis/retail_v2alpha/representations.rb,
lib/google/apis/retail_v2alpha/representations.rb
Overview
Configures dynamic serving time metadata that is used to pre and post process search/recommendation model results.
Instance Attribute Summary collapse
-
#associated_serving_config_ids ⇒ Array<String>
Output only.
-
#display_name ⇒ String
Required.
-
#facet_spec ⇒ Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestFacetSpec
A facet specification to perform faceted search.
-
#name ⇒ String
Immutable.
-
#rule ⇒ Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRule
A rule is a condition-action pair * A condition defines when a rule is to be triggered.
-
#search_solution_use_case ⇒ Array<String>
Required.
-
#solution_types ⇒ Array<String>
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2alphaControl
constructor
A new instance of GoogleCloudRetailV2alphaControl.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2alphaControl
Returns a new instance of GoogleCloudRetailV2alphaControl.
1401 1402 1403 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1401 def initialize(**args) update!(**args) end |
Instance Attribute Details
#associated_serving_config_ids ⇒ Array<String>
Output only. List of serving configuration ids that that are associated with
this control. Note the association is managed via the ServingConfig, this is
an output only denormalizeed view. Assumed to be in the same catalog.
Corresponds to the JSON property associatedServingConfigIds
1358 1359 1360 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1358 def associated_serving_config_ids @associated_serving_config_ids end |
#display_name ⇒ String
Required. The human readable control display name. Used in Retail UI. This
field must be a UTF-8 encoded string with a length limit of 128 characters.
Otherwise, an INVALID_ARGUMENT error is thrown.
Corresponds to the JSON property displayName
1365 1366 1367 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1365 def display_name @display_name end |
#facet_spec ⇒ Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestFacetSpec
A facet specification to perform faceted search.
Corresponds to the JSON property facetSpec
1370 1371 1372 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1370 def facet_spec @facet_spec end |
#name ⇒ String
Immutable. Fully qualified name projects//locations/global/catalogs//
controls/*
Corresponds to the JSON property name
1376 1377 1378 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1376 def name @name end |
#rule ⇒ Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRule
A rule is a condition-action pair * A condition defines when a rule is to be
triggered. * An action specifies what occurs on that trigger. Currently only
boost rules are supported. Currently only supported by the search endpoint.
Corresponds to the JSON property rule
1383 1384 1385 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1383 def rule @rule end |
#search_solution_use_case ⇒ Array<String>
Required. Specifies the use case for the control. Affects what condition
fields can be set. Only settable by search controls. Will default to
SEARCH_SOLUTION_USE_CASE_SEARCH if not specified. Currently only allow one
search_solution_use_case per control.
Corresponds to the JSON property searchSolutionUseCase
1391 1392 1393 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1391 def search_solution_use_case @search_solution_use_case end |
#solution_types ⇒ Array<String>
Required. Immutable. The solution types that the serving config is used for.
Currently we support setting only one type of solution at creation time. Only
SOLUTION_TYPE_SEARCH value is supported at the moment. If no solution type is
provided at creation time, will default to SOLUTION_TYPE_SEARCH.
Corresponds to the JSON property solutionTypes
1399 1400 1401 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1399 def solution_types @solution_types end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1406 1407 1408 1409 1410 1411 1412 1413 1414 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1406 def update!(**args) @associated_serving_config_ids = args[:associated_serving_config_ids] if args.key?(:associated_serving_config_ids) @display_name = args[:display_name] if args.key?(:display_name) @facet_spec = args[:facet_spec] if args.key?(:facet_spec) @name = args[:name] if args.key?(:name) @rule = args[:rule] if args.key?(:rule) @search_solution_use_case = args[:search_solution_use_case] if args.key?(:search_solution_use_case) @solution_types = args[:solution_types] if args.key?(:solution_types) end |