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

namespace Google\Cloud\Dialogflow\Cx\V3;

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

/**
 * Boost specifications for data stores.
 *
 * Generated from protobuf message <code>google.cloud.dialogflow.cx.v3.BoostSpecs</code>
 */
class BoostSpecs extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. Data Stores where the boosting configuration is applied. The full
     * names of the referenced data stores. Formats:
     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`
     * `projects/{project}/locations/{location}/dataStores/{data_store}`
     *
     * Generated from protobuf field <code>repeated string data_stores = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {</code>
     */
    private $data_stores;
    /**
     * Optional. A list of boosting specifications.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dialogflow.cx.v3.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $spec;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string[] $data_stores
     *           Optional. Data Stores where the boosting configuration is applied. The full
     *           names of the referenced data stores. Formats:
     *           `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`
     *           `projects/{project}/locations/{location}/dataStores/{data_store}`
     *     @type \Google\Cloud\Dialogflow\Cx\V3\BoostSpec[] $spec
     *           Optional. A list of boosting specifications.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dialogflow\Cx\V3\Session::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. Data Stores where the boosting configuration is applied. The full
     * names of the referenced data stores. Formats:
     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`
     * `projects/{project}/locations/{location}/dataStores/{data_store}`
     *
     * Generated from protobuf field <code>repeated string data_stores = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {</code>
     * @return RepeatedField<string>
     */
    public function getDataStores()
    {
        return $this->data_stores;
    }

    /**
     * Optional. Data Stores where the boosting configuration is applied. The full
     * names of the referenced data stores. Formats:
     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`
     * `projects/{project}/locations/{location}/dataStores/{data_store}`
     *
     * Generated from protobuf field <code>repeated string data_stores = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {</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. A list of boosting specifications.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dialogflow.cx.v3.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return RepeatedField<\Google\Cloud\Dialogflow\Cx\V3\BoostSpec>
     */
    public function getSpec()
    {
        return $this->spec;
    }

    /**
     * Optional. A list of boosting specifications.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dialogflow.cx.v3.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param \Google\Cloud\Dialogflow\Cx\V3\BoostSpec[] $var
     * @return $this
     */
    public function setSpec($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dialogflow\Cx\V3\BoostSpec::class);
        $this->spec = $arr;

        return $this;
    }

}

