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

namespace Google\Cloud\Dialogflow\Cx\V3\GenerativeSettings;

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

/**
 * Settings for Generative Fallback.
 *
 * Generated from protobuf message <code>google.cloud.dialogflow.cx.v3.GenerativeSettings.FallbackSettings</code>
 */
class FallbackSettings extends \Google\Protobuf\Internal\Message
{
    /**
     * Display name of the selected prompt.
     *
     * Generated from protobuf field <code>string selected_prompt = 3;</code>
     */
    protected $selected_prompt = '';
    /**
     * Stored prompts that can be selected, for example default templates like
     * "conservative" or "chatty", or user defined ones.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dialogflow.cx.v3.GenerativeSettings.FallbackSettings.PromptTemplate prompt_templates = 4;</code>
     */
    private $prompt_templates;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $selected_prompt
     *           Display name of the selected prompt.
     *     @type array<\Google\Cloud\Dialogflow\Cx\V3\GenerativeSettings\FallbackSettings\PromptTemplate>|\Google\Protobuf\Internal\RepeatedField $prompt_templates
     *           Stored prompts that can be selected, for example default templates like
     *           "conservative" or "chatty", or user defined ones.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dialogflow\Cx\V3\GenerativeSettings::initOnce();
        parent::__construct($data);
    }

    /**
     * Display name of the selected prompt.
     *
     * Generated from protobuf field <code>string selected_prompt = 3;</code>
     * @return string
     */
    public function getSelectedPrompt()
    {
        return $this->selected_prompt;
    }

    /**
     * Display name of the selected prompt.
     *
     * Generated from protobuf field <code>string selected_prompt = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setSelectedPrompt($var)
    {
        GPBUtil::checkString($var, True);
        $this->selected_prompt = $var;

        return $this;
    }

    /**
     * Stored prompts that can be selected, for example default templates like
     * "conservative" or "chatty", or user defined ones.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dialogflow.cx.v3.GenerativeSettings.FallbackSettings.PromptTemplate prompt_templates = 4;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getPromptTemplates()
    {
        return $this->prompt_templates;
    }

    /**
     * Stored prompts that can be selected, for example default templates like
     * "conservative" or "chatty", or user defined ones.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dialogflow.cx.v3.GenerativeSettings.FallbackSettings.PromptTemplate prompt_templates = 4;</code>
     * @param array<\Google\Cloud\Dialogflow\Cx\V3\GenerativeSettings\FallbackSettings\PromptTemplate>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setPromptTemplates($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dialogflow\Cx\V3\GenerativeSettings\FallbackSettings\PromptTemplate::class);
        $this->prompt_templates = $arr;

        return $this;
    }

}


