# Google Cloud Retail V2 Client - Class ServingConfigExperiment (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 ServingConfigExperiment.

Metadata for active serving config A/B tests.

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

## Namespace

Google \\ Cloud \\ Retail \\ V2 \\ ExperimentInfo

## Methods

### __construct

Constructor.

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

### getOriginalServingConfig

The fully qualified resource name of the original
[SearchRequest.placement](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.SearchRequest#_Google_Cloud_Retail_V2_SearchRequest__getPlacement__)
in the search request prior to reassignment by experiment API. For
example: `projects/*/locations/*/catalogs/*/servingConfigs/*`.

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

### setOriginalServingConfig

The fully qualified resource name of the original
[SearchRequest.placement](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.SearchRequest#_Google_Cloud_Retail_V2_SearchRequest__getPlacement__)
in the search request prior to reassignment by experiment API. For
example: `projects/*/locations/*/catalogs/*/servingConfigs/*`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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

### getExperimentServingConfig

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/*`.

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

### setExperimentServingConfig

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/*`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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