Class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaExperimentInfoServingConfigExperiment

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

Metadata for active serving config A/B tests.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2betaExperimentInfoServingConfigExperiment

Returns a new instance of GoogleCloudRetailV2betaExperimentInfoServingConfigExperiment.



3787
3788
3789
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3787

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

Instance Attribute Details

#experiment_serving_configString

The fully qualified resource name of the serving config Experiment.VariantArm. serving_config_id responsible for generating the search response. For example: projects/*/locations/*/catalogs/*/servingConfigs/*. Corresponds to the JSON property experimentServingConfig

Returns:

  • (String)


3778
3779
3780
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3778

def experiment_serving_config
  @experiment_serving_config
end

#original_serving_configString

The fully qualified resource name of the original SearchRequest.placement in the search request prior to reassignment by experiment API. For example: projects/*/locations/*/catalogs/*/servingConfigs/*. Corresponds to the JSON property originalServingConfig

Returns:

  • (String)


3785
3786
3787
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3785

def original_serving_config
  @original_serving_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3792
3793
3794
3795
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3792

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