<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: WAProto.proto

namespace PhpWA\Protocol\Proto;

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

/**
 * Generated from protobuf message <code>proto.BotSuggestedPromptMetadata</code>
 */
class BotSuggestedPromptMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>repeated string suggestedPrompts = 1;</code>
     */
    private $suggestedPrompts;
    /**
     * Generated from protobuf field <code>optional uint32 selectedPromptIndex = 2;</code>
     */
    protected $selectedPromptIndex = null;
    /**
     * Generated from protobuf field <code>optional .proto.BotPromptSuggestions promptSuggestions = 3;</code>
     */
    protected $promptSuggestions = null;
    /**
     * Generated from protobuf field <code>optional string selectedPromptId = 4;</code>
     */
    protected $selectedPromptId = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string[] $suggestedPrompts
     *     @type int $selectedPromptIndex
     *     @type \PhpWA\Protocol\Proto\BotPromptSuggestions $promptSuggestions
     *     @type string $selectedPromptId
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>repeated string suggestedPrompts = 1;</code>
     * @return RepeatedField<string>
     */
    public function getSuggestedPrompts()
    {
        return $this->suggestedPrompts;
    }

    /**
     * Generated from protobuf field <code>repeated string suggestedPrompts = 1;</code>
     * @param string[] $var
     * @return $this
     */
    public function setSuggestedPrompts($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->suggestedPrompts = $arr;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional uint32 selectedPromptIndex = 2;</code>
     * @return int
     */
    public function getSelectedPromptIndex()
    {
        return isset($this->selectedPromptIndex) ? $this->selectedPromptIndex : 0;
    }

    public function hasSelectedPromptIndex()
    {
        return isset($this->selectedPromptIndex);
    }

    public function clearSelectedPromptIndex()
    {
        unset($this->selectedPromptIndex);
    }

    /**
     * Generated from protobuf field <code>optional uint32 selectedPromptIndex = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setSelectedPromptIndex($var)
    {
        GPBUtil::checkUint32($var);
        $this->selectedPromptIndex = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.BotPromptSuggestions promptSuggestions = 3;</code>
     * @return \PhpWA\Protocol\Proto\BotPromptSuggestions|null
     */
    public function getPromptSuggestions()
    {
        return $this->promptSuggestions;
    }

    public function hasPromptSuggestions()
    {
        return isset($this->promptSuggestions);
    }

    public function clearPromptSuggestions()
    {
        unset($this->promptSuggestions);
    }

    /**
     * Generated from protobuf field <code>optional .proto.BotPromptSuggestions promptSuggestions = 3;</code>
     * @param \PhpWA\Protocol\Proto\BotPromptSuggestions $var
     * @return $this
     */
    public function setPromptSuggestions($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\BotPromptSuggestions::class);
        $this->promptSuggestions = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string selectedPromptId = 4;</code>
     * @return string
     */
    public function getSelectedPromptId()
    {
        return isset($this->selectedPromptId) ? $this->selectedPromptId : '';
    }

    public function hasSelectedPromptId()
    {
        return isset($this->selectedPromptId);
    }

    public function clearSelectedPromptId()
    {
        unset($this->selectedPromptId);
    }

    /**
     * Generated from protobuf field <code>optional string selectedPromptId = 4;</code>
     * @param string $var
     * @return $this
     */
    public function setSelectedPromptId($var)
    {
        GPBUtil::checkString($var, True);
        $this->selectedPromptId = $var;

        return $this;
    }

}

