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

namespace Google\Cloud\DiscoveryEngine\V1beta;

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

/**
 * SiteSearchEngine captures DataStore level site search persisting
 * configurations. It is a singleton value per data store.
 *
 * Generated from protobuf message <code>google.cloud.discoveryengine.v1beta.SiteSearchEngine</code>
 */
class SiteSearchEngine extends \Google\Protobuf\Internal\Message
{
    /**
     * The fully qualified resource name of the site search engine.
     * Format: `projects/&#42;&#47;locations/&#42;&#47;dataStores/&#42;&#47;siteSearchEngine`
     *
     * Generated from protobuf field <code>string name = 1;</code>
     */
    protected $name = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *           The fully qualified resource name of the site search engine.
     *           Format: `projects/&#42;&#47;locations/&#42;&#47;dataStores/&#42;&#47;siteSearchEngine`
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Discoveryengine\V1Beta\SiteSearchEngine::initOnce();
        parent::__construct($data);
    }

    /**
     * The fully qualified resource name of the site search engine.
     * Format: `projects/&#42;&#47;locations/&#42;&#47;dataStores/&#42;&#47;siteSearchEngine`
     *
     * Generated from protobuf field <code>string name = 1;</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * The fully qualified resource name of the site search engine.
     * Format: `projects/&#42;&#47;locations/&#42;&#47;dataStores/&#42;&#47;siteSearchEngine`
     *
     * Generated from protobuf field <code>string name = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;

        return $this;
    }

}

