<?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\GPBUtil;
use Google\Protobuf\RepeatedField;

/**
 * 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 \Google\Cloud\Dialogflow\V2\SearchKnowledgeRequest\SearchConfig\BoostSpecs[] $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 \Google\Cloud\Dialogflow\V2\SearchKnowledgeRequest\SearchConfig\FilterSpecs[] $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 RepeatedField<\Google\Cloud\Dialogflow\V2\SearchKnowledgeRequest\SearchConfig\BoostSpecs>
     */
    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 \Google\Cloud\Dialogflow\V2\SearchKnowledgeRequest\SearchConfig\BoostSpecs[] $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 RepeatedField<\Google\Cloud\Dialogflow\V2\SearchKnowledgeRequest\SearchConfig\FilterSpecs>
     */
    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 \Google\Cloud\Dialogflow\V2\SearchKnowledgeRequest\SearchConfig\FilterSpecs[] $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;
    }

}

