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

namespace Google\Cloud\Dialogflow\V2\SearchKnowledgeRequest\SearchConfig;

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

/**
 * Filter specification for data store queries.
 *
 * Generated from protobuf message <code>google.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig.FilterSpecs</code>
 */
class FilterSpecs extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. The data store where the filter configuration is applied.
     * Full resource name of data store, such as
     * projects/{project}/locations/{location}/collections/{collectionId}/
     * dataStores/{dataStoreId}.
     *
     * Generated from protobuf field <code>repeated string data_stores = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $data_stores;
    /**
     * Optional. The filter expression to be applied.
     * Expression syntax is documented at
     * https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata#filter-expression-syntax
     *
     * Generated from protobuf field <code>string filter = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $filter = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string[] $data_stores
     *           Optional. The data store where the filter configuration is applied.
     *           Full resource name of data store, such as
     *           projects/{project}/locations/{location}/collections/{collectionId}/
     *           dataStores/{dataStoreId}.
     *     @type string $filter
     *           Optional. The filter expression to be applied.
     *           Expression syntax is documented at
     *           https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata#filter-expression-syntax
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dialogflow\V2\Conversation::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. The data store where the filter configuration is applied.
     * Full resource name of data store, such as
     * projects/{project}/locations/{location}/collections/{collectionId}/
     * dataStores/{dataStoreId}.
     *
     * Generated from protobuf field <code>repeated string data_stores = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return RepeatedField<string>
     */
    public function getDataStores()
    {
        return $this->data_stores;
    }

    /**
     * Optional. The data store where the filter configuration is applied.
     * Full resource name of data store, such as
     * projects/{project}/locations/{location}/collections/{collectionId}/
     * dataStores/{dataStoreId}.
     *
     * Generated from protobuf field <code>repeated string data_stores = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string[] $var
     * @return $this
     */
    public function setDataStores($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->data_stores = $arr;

        return $this;
    }

    /**
     * Optional. The filter expression to be applied.
     * Expression syntax is documented at
     * https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata#filter-expression-syntax
     *
     * Generated from protobuf field <code>string filter = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getFilter()
    {
        return $this->filter;
    }

    /**
     * Optional. The filter expression to be applied.
     * Expression syntax is documented at
     * https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata#filter-expression-syntax
     *
     * Generated from protobuf field <code>string filter = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setFilter($var)
    {
        GPBUtil::checkString($var, True);
        $this->filter = $var;

        return $this;
    }

}

