Class: Google::Apis::RetailV2beta::GoogleCloudRetailV2alphaModelPageOptimizationConfigCandidate

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

A candidate to consider for a given panel. Currently only ServingConfig are valid candidates.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2alphaModelPageOptimizationConfigCandidate

Returns a new instance of GoogleCloudRetailV2alphaModelPageOptimizationConfigCandidate.



1204
1205
1206
# File 'lib/google/apis/retail_v2beta/classes.rb', line 1204

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

Instance Attribute Details

#serving_config_idString

This has to be a valid ServingConfig identifier. e.g. 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

Returns:

  • (String)


1202
1203
1204
# File 'lib/google/apis/retail_v2beta/classes.rb', line 1202

def serving_config_id
  @serving_config_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1209
1210
1211
# File 'lib/google/apis/retail_v2beta/classes.rb', line 1209

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