Class: Google::Apis::RetailV2beta::GoogleCloudRetailV2alphaModelPageOptimizationConfigPanel
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2beta::GoogleCloudRetailV2alphaModelPageOptimizationConfigPanel
- 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
An individual panel with a list of ServingConfigs to consider for it.
Instance Attribute Summary collapse
-
#candidates ⇒ Array<Google::Apis::RetailV2beta::GoogleCloudRetailV2alphaModelPageOptimizationConfigCandidate>
Required.
-
#default_candidate ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2alphaModelPageOptimizationConfigCandidate
A candidate to consider for a given panel.
-
#display_name ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2alphaModelPageOptimizationConfigPanel
constructor
A new instance of GoogleCloudRetailV2alphaModelPageOptimizationConfigPanel.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2alphaModelPageOptimizationConfigPanel
Returns a new instance of GoogleCloudRetailV2alphaModelPageOptimizationConfigPanel.
2061 2062 2063 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2061 def initialize(**args) update!(**args) end |
Instance Attribute Details
#candidates ⇒ Array<Google::Apis::RetailV2beta::GoogleCloudRetailV2alphaModelPageOptimizationConfigCandidate>
Required. The candidates to consider on the panel.
Corresponds to the JSON property candidates
2048 2049 2050 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2048 def candidates @candidates end |
#default_candidate ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2alphaModelPageOptimizationConfigCandidate
A candidate to consider for a given panel. Currently only ServingConfig are
valid candidates.
Corresponds to the JSON property defaultCandidate
2054 2055 2056 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2054 def default_candidate @default_candidate end |
#display_name ⇒ String
Optional. The name to display for the panel.
Corresponds to the JSON property displayName
2059 2060 2061 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2059 def display_name @display_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2066 2067 2068 2069 2070 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2066 def update!(**args) @candidates = args[:candidates] if args.key?(:candidates) @default_candidate = args[:default_candidate] if args.key?(:default_candidate) @display_name = args[:display_name] if args.key?(:display_name) end |