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

namespace Google\Cloud\Dialogflow\V2\SearchKnowledgeRequest;

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

/**
 * Configuration specific to search queries with data stores.
 *
 * Generated from protobuf message <code>google.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig</code>
 */
class SearchConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. Boost specifications for data stores.
     * Maps from datastore name to their boost configuration. Do not specify
     * more than one BoostSpecs for each datastore name. If multiple BoostSpecs
     * are provided for the same datastore name, the behavior is undefined.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $boost_specs;
    /**
     * Optional. Filter specification for data store queries.
     * TMaps from datastore name to the filter expression for that datastore. Do
     * not specify more than one FilterSpecs for each datastore name. If
     * multiple FilterSpecs are provided for the same datastore name, the
     * behavior is undefined.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $filter_specs;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Cloud\Dialogflow\V2\SearchKnowledgeRequest\SearchConfig\BoostSpecs>|\Google\Protobuf\Internal\RepeatedField $boost_specs
     *           Optional. Boost specifications for data stores.
     *           Maps from datastore name to their boost configuration. Do not specify
     *           more than one BoostSpecs for each datastore name. If multiple BoostSpecs
     *           are provided for the same datastore name, the behavior is undefined.
     *     @type array<\Google\Cloud\Dialogflow\V2\SearchKnowledgeRequest\SearchConfig\FilterSpecs>|\Google\Protobuf\Internal\RepeatedField $filter_specs
     *           Optional. Filter specification for data store queries.
     *           TMaps from datastore name to the filter expression for that datastore. Do
     *           not specify more than one FilterSpecs for each datastore name. If
     *           multiple FilterSpecs are provided for the same datastore name, the
     *           behavior is undefined.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dialogflow\V2\Conversation::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. Boost specifications for data stores.
     * Maps from datastore name to their boost configuration. Do not specify
     * more than one BoostSpecs for each datastore name. If multiple BoostSpecs
     * are provided for the same datastore name, the behavior is undefined.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getBoostSpecs()
    {
        return $this->boost_specs;
    }

    /**
     * Optional. Boost specifications for data stores.
     * Maps from datastore name to their boost configuration. Do not specify
     * more than one BoostSpecs for each datastore name. If multiple BoostSpecs
     * are provided for the same datastore name, the behavior is undefined.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param array<\Google\Cloud\Dialogflow\V2\SearchKnowledgeRequest\SearchConfig\BoostSpecs>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setBoostSpecs($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dialogflow\V2\SearchKnowledgeRequest\SearchConfig\BoostSpecs::class);
        $this->boost_specs = $arr;

        return $this;
    }

    /**
     * Optional. Filter specification for data store queries.
     * TMaps from datastore name to the filter expression for that datastore. Do
     * not specify more than one FilterSpecs for each datastore name. If
     * multiple FilterSpecs are provided for the same datastore name, the
     * behavior is undefined.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getFilterSpecs()
    {
        return $this->filter_specs;
    }

    /**
     * Optional. Filter specification for data store queries.
     * TMaps from datastore name to the filter expression for that datastore. Do
     * not specify more than one FilterSpecs for each datastore name. If
     * multiple FilterSpecs are provided for the same datastore name, the
     * behavior is undefined.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param array<\Google\Cloud\Dialogflow\V2\SearchKnowledgeRequest\SearchConfig\FilterSpecs>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setFilterSpecs($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dialogflow\V2\SearchKnowledgeRequest\SearchConfig\FilterSpecs::class);
        $this->filter_specs = $arr;

        return $this;
    }

}


