# Google Cloud Retail V2 Client - Class ExperimentInfo (2.5.3)

2.5.3 (latest) 2.5.2 2.4.0 2.3.1 2.2.1 2.1.3 2.0.0 1.7.0 1.6.4 1.5.0 1.4.2 1.3.1 1.2.1 1.1.1 1.0.1 Reference documentation and code samples for the Google Cloud Retail V2 Client class ExperimentInfo.

Metadata for active A/B testing experiment.

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

## Namespace

Google \\ Cloud \\ Retail \\ V2

## Methods

### __construct

Constructor.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `data` | `mixed` |

### getServingConfigExperiment

A/B test between existing Cloud Retail Search
[ServingConfig](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.ServingConfig)s.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.ExperimentInfo.ServingConfigExperiment|null` |   |

### hasServingConfigExperiment

### setServingConfigExperiment

A/B test between existing Cloud Retail Search
[ServingConfig](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.ServingConfig)s.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.ExperimentInfo.ServingConfigExperiment` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$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** ||
|---|---|
| **Type** | **Description** |
| `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** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getExperimentMetadata

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |