<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/discoveryengine/v1beta/serving_config.proto

namespace Google\Cloud\DiscoveryEngine\V1beta\ServingConfig;

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

/**
 * Specifies the configurations needed for Generic Discovery.Currently we
 * support:
 * * `content_search_spec`: configuration for generic content search.
 *
 * Generated from protobuf message <code>google.cloud.discoveryengine.v1beta.ServingConfig.GenericConfig</code>
 */
class GenericConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * Specifies the expected behavior of content search.
     * Only valid for content-search enabled data store.
     *
     * Generated from protobuf field <code>.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 1;</code>
     */
    protected $content_search_spec = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\DiscoveryEngine\V1beta\SearchRequest\ContentSearchSpec $content_search_spec
     *           Specifies the expected behavior of content search.
     *           Only valid for content-search enabled data store.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Discoveryengine\V1Beta\ServingConfig::initOnce();
        parent::__construct($data);
    }

    /**
     * Specifies the expected behavior of content search.
     * Only valid for content-search enabled data store.
     *
     * Generated from protobuf field <code>.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 1;</code>
     * @return \Google\Cloud\DiscoveryEngine\V1beta\SearchRequest\ContentSearchSpec|null
     */
    public function getContentSearchSpec()
    {
        return $this->content_search_spec;
    }

    public function hasContentSearchSpec()
    {
        return isset($this->content_search_spec);
    }

    public function clearContentSearchSpec()
    {
        unset($this->content_search_spec);
    }

    /**
     * Specifies the expected behavior of content search.
     * Only valid for content-search enabled data store.
     *
     * Generated from protobuf field <code>.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 1;</code>
     * @param \Google\Cloud\DiscoveryEngine\V1beta\SearchRequest\ContentSearchSpec $var
     * @return $this
     */
    public function setContentSearchSpec($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1beta\SearchRequest\ContentSearchSpec::class);
        $this->content_search_spec = $var;

        return $this;
    }

}


