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.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ original_serving_config
string
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/*.
↳ experiment_serving_config
string
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/*.
getOriginalServingConfig
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/*.
Returns
Type
Description
string
setOriginalServingConfig
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/*.
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/*.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Google Cloud Retail V2 Client - Class ServingConfigExperiment (2.3.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.3.1 (latest)](/php/docs/reference/cloud-retail/latest/V2.ExperimentInfo.ServingConfigExperiment)\n- [2.3.0](/php/docs/reference/cloud-retail/2.3.0/V2.ExperimentInfo.ServingConfigExperiment)\n- [2.2.1](/php/docs/reference/cloud-retail/2.2.1/V2.ExperimentInfo.ServingConfigExperiment)\n- [2.1.3](/php/docs/reference/cloud-retail/2.1.3/V2.ExperimentInfo.ServingConfigExperiment)\n- [2.0.0](/php/docs/reference/cloud-retail/2.0.0/V2.ExperimentInfo.ServingConfigExperiment)\n- [1.7.0](/php/docs/reference/cloud-retail/1.7.0/V2.ExperimentInfo.ServingConfigExperiment)\n- [1.6.4](/php/docs/reference/cloud-retail/1.6.4/V2.ExperimentInfo.ServingConfigExperiment)\n- [1.5.0](/php/docs/reference/cloud-retail/1.5.0/V2.ExperimentInfo.ServingConfigExperiment)\n- [1.4.2](/php/docs/reference/cloud-retail/1.4.2/V2.ExperimentInfo.ServingConfigExperiment)\n- [1.3.1](/php/docs/reference/cloud-retail/1.3.1/V2.ExperimentInfo.ServingConfigExperiment)\n- [1.2.1](/php/docs/reference/cloud-retail/1.2.1/V2.ExperimentInfo.ServingConfigExperiment)\n- [1.1.1](/php/docs/reference/cloud-retail/1.1.1/V2.ExperimentInfo.ServingConfigExperiment)\n- [1.0.1](/php/docs/reference/cloud-retail/1.0.1/V2.ExperimentInfo.ServingConfigExperiment) \nReference documentation and code samples for the Google Cloud Retail V2 Client class ServingConfigExperiment.\n\nMetadata for active serving config A/B tests.\n\nGenerated from protobuf message `google.cloud.retail.v2.ExperimentInfo.ServingConfigExperiment`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Retail \\\\ V2 \\\\ ExperimentInfo\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getOriginalServingConfig\n\nThe fully qualified resource name of the original\n[SearchRequest.placement](/php/docs/reference/cloud-retail/latest/V2.SearchRequest#_Google_Cloud_Retail_V2_SearchRequest__getPlacement__)\nin the search request prior to reassignment by experiment API. For\nexample: `projects/*/locations/*/catalogs/*/servingConfigs/*`.\n\n### setOriginalServingConfig\n\nThe fully qualified resource name of the original\n[SearchRequest.placement](/php/docs/reference/cloud-retail/latest/V2.SearchRequest#_Google_Cloud_Retail_V2_SearchRequest__getPlacement__)\nin the search request prior to reassignment by experiment API. For\nexample: `projects/*/locations/*/catalogs/*/servingConfigs/*`.\n\n### getExperimentServingConfig\n\nThe fully qualified resource name of the serving config\n`Experiment.VariantArm.serving_config_id` responsible for generating\nthe search response. For example:\n`projects/*/locations/*/catalogs/*/servingConfigs/*`.\n\n### setExperimentServingConfig\n\nThe fully qualified resource name of the serving config\n`Experiment.VariantArm.serving_config_id` responsible for generating\nthe search response. For example:\n`projects/*/locations/*/catalogs/*/servingConfigs/*`."]]