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

namespace Google\Cloud\Dialogflow\V2;

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

/**
 * The simple response message containing speech or text.
 *
 * Generated from protobuf message <code>google.cloud.dialogflow.v2.Intent.Message.SimpleResponse</code>
 */
class Intent_Message_SimpleResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * One of text_to_speech or ssml must be provided. The plain text of the
     * speech output. Mutually exclusive with ssml.
     *
     * Generated from protobuf field <code>string text_to_speech = 1;</code>
     */
    private $text_to_speech = '';
    /**
     * One of text_to_speech or ssml must be provided. Structured spoken
     * response to the user in the SSML format. Mutually exclusive with
     * text_to_speech.
     *
     * Generated from protobuf field <code>string ssml = 2;</code>
     */
    private $ssml = '';
    /**
     * Optional. The text to display.
     *
     * Generated from protobuf field <code>string display_text = 3;</code>
     */
    private $display_text = '';

    public function __construct() {
        \GPBMetadata\Google\Cloud\Dialogflow\V2\Intent::initOnce();
        parent::__construct();
    }

    /**
     * One of text_to_speech or ssml must be provided. The plain text of the
     * speech output. Mutually exclusive with ssml.
     *
     * Generated from protobuf field <code>string text_to_speech = 1;</code>
     * @return string
     */
    public function getTextToSpeech()
    {
        return $this->text_to_speech;
    }

    /**
     * One of text_to_speech or ssml must be provided. The plain text of the
     * speech output. Mutually exclusive with ssml.
     *
     * Generated from protobuf field <code>string text_to_speech = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setTextToSpeech($var)
    {
        GPBUtil::checkString($var, True);
        $this->text_to_speech = $var;

        return $this;
    }

    /**
     * One of text_to_speech or ssml must be provided. Structured spoken
     * response to the user in the SSML format. Mutually exclusive with
     * text_to_speech.
     *
     * Generated from protobuf field <code>string ssml = 2;</code>
     * @return string
     */
    public function getSsml()
    {
        return $this->ssml;
    }

    /**
     * One of text_to_speech or ssml must be provided. Structured spoken
     * response to the user in the SSML format. Mutually exclusive with
     * text_to_speech.
     *
     * Generated from protobuf field <code>string ssml = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setSsml($var)
    {
        GPBUtil::checkString($var, True);
        $this->ssml = $var;

        return $this;
    }

    /**
     * Optional. The text to display.
     *
     * Generated from protobuf field <code>string display_text = 3;</code>
     * @return string
     */
    public function getDisplayText()
    {
        return $this->display_text;
    }

    /**
     * Optional. The text to display.
     *
     * Generated from protobuf field <code>string display_text = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setDisplayText($var)
    {
        GPBUtil::checkString($var, True);
        $this->display_text = $var;

        return $this;
    }

}

