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

/**
 * 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 array<string>|\Google\Protobuf\Internal\RepeatedField $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 array<\Google\Cloud\Dialogflow\Cx\V3\BoostSpec>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField
     */
    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 array<string>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField
     */
    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 array<\Google\Cloud\Dialogflow\Cx\V3\BoostSpec>|\Google\Protobuf\Internal\RepeatedField $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;
    }

}

