<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/retail/v2/search_service.proto

namespace Google\Cloud\Retail\V2\ExperimentInfo;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * Metadata for active serving config A/B tests.
 *
 * Generated from protobuf message <code>google.cloud.retail.v2.ExperimentInfo.ServingConfigExperiment</code>
 */
class ServingConfigExperiment extends \Google\Protobuf\Internal\Message
{
    /**
     * The fully qualified resource name of the original
     * [SearchRequest.placement][google.cloud.retail.v2.SearchRequest.placement]
     * in the search request prior to reassignment by experiment API. For
     * example: `projects/&#42;&#47;locations/&#42;&#47;catalogs/&#42;&#47;servingConfigs/&#42;`.
     *
     * Generated from protobuf field <code>string original_serving_config = 1 [(.google.api.resource_reference) = {</code>
     */
    private $original_serving_config = '';
    /**
     * The fully qualified resource name of the serving config
     * [Experiment.VariantArm.serving_config_id][] responsible for generating
     * the search response. For example:
     * `projects/&#42;&#47;locations/&#42;&#47;catalogs/&#42;&#47;servingConfigs/&#42;`.
     *
     * Generated from protobuf field <code>string experiment_serving_config = 2 [(.google.api.resource_reference) = {</code>
     */
    private $experiment_serving_config = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $original_serving_config
     *           The fully qualified resource name of the original
     *           [SearchRequest.placement][google.cloud.retail.v2.SearchRequest.placement]
     *           in the search request prior to reassignment by experiment API. For
     *           example: `projects/&#42;&#47;locations/&#42;&#47;catalogs/&#42;&#47;servingConfigs/&#42;`.
     *     @type string $experiment_serving_config
     *           The fully qualified resource name of the serving config
     *           [Experiment.VariantArm.serving_config_id][] responsible for generating
     *           the search response. For example:
     *           `projects/&#42;&#47;locations/&#42;&#47;catalogs/&#42;&#47;servingConfigs/&#42;`.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Retail\V2\SearchService::initOnce();
        parent::__construct($data);
    }

    /**
     * The fully qualified resource name of the original
     * [SearchRequest.placement][google.cloud.retail.v2.SearchRequest.placement]
     * in the search request prior to reassignment by experiment API. For
     * example: `projects/&#42;&#47;locations/&#42;&#47;catalogs/&#42;&#47;servingConfigs/&#42;`.
     *
     * Generated from protobuf field <code>string original_serving_config = 1 [(.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getOriginalServingConfig()
    {
        return $this->original_serving_config;
    }

    /**
     * The fully qualified resource name of the original
     * [SearchRequest.placement][google.cloud.retail.v2.SearchRequest.placement]
     * in the search request prior to reassignment by experiment API. For
     * example: `projects/&#42;&#47;locations/&#42;&#47;catalogs/&#42;&#47;servingConfigs/&#42;`.
     *
     * Generated from protobuf field <code>string original_serving_config = 1 [(.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setOriginalServingConfig($var)
    {
        GPBUtil::checkString($var, True);
        $this->original_serving_config = $var;

        return $this;
    }

    /**
     * The fully qualified resource name of the serving config
     * [Experiment.VariantArm.serving_config_id][] responsible for generating
     * the search response. For example:
     * `projects/&#42;&#47;locations/&#42;&#47;catalogs/&#42;&#47;servingConfigs/&#42;`.
     *
     * Generated from protobuf field <code>string experiment_serving_config = 2 [(.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getExperimentServingConfig()
    {
        return $this->experiment_serving_config;
    }

    /**
     * The fully qualified resource name of the serving config
     * [Experiment.VariantArm.serving_config_id][] responsible for generating
     * the search response. For example:
     * `projects/&#42;&#47;locations/&#42;&#47;catalogs/&#42;&#47;servingConfigs/&#42;`.
     *
     * Generated from protobuf field <code>string experiment_serving_config = 2 [(.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setExperimentServingConfig($var)
    {
        GPBUtil::checkString($var, True);
        $this->experiment_serving_config = $var;

        return $this;
    }

}


