Class: Google::Apis::RetailV2::GoogleCloudRetailV2ExperimentInfo

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

Metadata for active A/B testing Experiment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2ExperimentInfo

Returns a new instance of GoogleCloudRetailV2ExperimentInfo.



1596
1597
1598
# File 'lib/google/apis/retail_v2/classes.rb', line 1596

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

Instance Attribute Details

#experimentString

The fully qualified resource name of the experiment that provides the serving config under test, should an active experiment exist. For example: projects/*/ locations/global/catalogs/default_catalog/experiments/experiment_id Corresponds to the JSON property experiment

Returns:

  • (String)


1589
1590
1591
# File 'lib/google/apis/retail_v2/classes.rb', line 1589

def experiment
  @experiment
end

#serving_config_experimentGoogle::Apis::RetailV2::GoogleCloudRetailV2ExperimentInfoServingConfigExperiment

Metadata for active serving config A/B tests. Corresponds to the JSON property servingConfigExperiment



1594
1595
1596
# File 'lib/google/apis/retail_v2/classes.rb', line 1594

def serving_config_experiment
  @serving_config_experiment
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1601
1602
1603
1604
# File 'lib/google/apis/retail_v2/classes.rb', line 1601

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