Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaModelPageOptimizationConfigPanel

Inherits:
Object
  • Object
show all
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

An individual panel with a list of ServingConfigs to consider for it.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2alphaModelPageOptimizationConfigPanel

Returns a new instance of GoogleCloudRetailV2alphaModelPageOptimizationConfigPanel.



3368
3369
3370
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3368

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

Instance Attribute Details

#candidatesArray<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaModelPageOptimizationConfigCandidate>

Required. The candidates to consider on the panel. Corresponds to the JSON property candidates



3355
3356
3357
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3355

def candidates
  @candidates
end

#default_candidateGoogle::Apis::RetailV2alpha::GoogleCloudRetailV2alphaModelPageOptimizationConfigCandidate

A candidate to consider for a given panel. Currently only ServingConfig are valid candidates. Corresponds to the JSON property defaultCandidate



3361
3362
3363
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3361

def default_candidate
  @default_candidate
end

#display_nameString

Optional. The name to display for the panel. Corresponds to the JSON property displayName

Returns:

  • (String)


3366
3367
3368
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3366

def display_name
  @display_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3373
3374
3375
3376
3377
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3373

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