Class: Google::Apis::RetailV2::GoogleCloudRetailV2alphaModelPageOptimizationConfigCandidate
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2::GoogleCloudRetailV2alphaModelPageOptimizationConfigCandidate
- 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
A candidate to consider for a given panel. Currently only ServingConfig are valid candidates.
Instance Attribute Summary collapse
-
#serving_config_id ⇒ String
This has to be a valid ServingConfig identifier.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2alphaModelPageOptimizationConfigCandidate
constructor
A new instance of GoogleCloudRetailV2alphaModelPageOptimizationConfigCandidate.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2alphaModelPageOptimizationConfigCandidate
Returns a new instance of GoogleCloudRetailV2alphaModelPageOptimizationConfigCandidate.
7547 7548 7549 |
# File 'lib/google/apis/retail_v2/classes.rb', line 7547 def initialize(**args) update!(**args) end |
Instance Attribute Details
#serving_config_id ⇒ String
This has to be a valid ServingConfig identifier. For example, for a
ServingConfig with full name: projects/*/locations/global/catalogs/
default_catalog/servingConfigs/my_candidate_config
, this would be
my_candidate_config
.
Corresponds to the JSON property servingConfigId
7545 7546 7547 |
# File 'lib/google/apis/retail_v2/classes.rb', line 7545 def serving_config_id @serving_config_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7552 7553 7554 |
# File 'lib/google/apis/retail_v2/classes.rb', line 7552 def update!(**args) @serving_config_id = args[:serving_config_id] if args.key?(:serving_config_id) end |