Google Cloud Retail V2 Client - Class ExperimentInfo (1.3.1)

Reference documentation and code samples for the Google Cloud Retail V2 Client class ExperimentInfo.

Metadata for active A/B testing Experiments.

Generated from protobuf message google.cloud.retail.v2.ExperimentInfo

Namespace

Google \ Cloud \ Retail \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ serving_config_experiment Google\Cloud\Retail\V2\ExperimentInfo\ServingConfigExperiment

A/B test between existing Cloud Retail Search ServingConfigs.

↳ experiment string

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

getServingConfigExperiment

A/B test between existing Cloud Retail Search ServingConfigs.

Returns
TypeDescription
Google\Cloud\Retail\V2\ExperimentInfo\ServingConfigExperiment|null

hasServingConfigExperiment

setServingConfigExperiment

A/B test between existing Cloud Retail Search ServingConfigs.

Parameter
NameDescription
var Google\Cloud\Retail\V2\ExperimentInfo\ServingConfigExperiment
Returns
TypeDescription
$this

getExperiment

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

Returns
TypeDescription
string

setExperiment

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getExperimentMetadata

Returns
TypeDescription
string