Dialogflow V2 API - Class Google::Cloud::Dialogflow::V2::Intent::Message::SimpleResponse (v0.18.0)

Reference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::Intent::Message::SimpleResponse.

The simple response message containing speech or text.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#display_text

def display_text() -> ::String
Returns
  • (::String) — Optional. The text to display.

#display_text=

def display_text=(value) -> ::String
Parameter
  • value (::String) — Optional. The text to display.
Returns
  • (::String) — Optional. The text to display.

#ssml

def ssml() -> ::String
Returns
  • (::String) — 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.

#ssml=

def ssml=(value) -> ::String
Parameter
  • value (::String) — 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.
Returns
  • (::String) — 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.

#text_to_speech

def text_to_speech() -> ::String
Returns
  • (::String) — One of text_to_speech or ssml must be provided. The plain text of the speech output. Mutually exclusive with ssml.

#text_to_speech=

def text_to_speech=(value) -> ::String
Parameter
  • value (::String) — One of text_to_speech or ssml must be provided. The plain text of the speech output. Mutually exclusive with ssml.
Returns
  • (::String) — One of text_to_speech or ssml must be provided. The plain text of the speech output. Mutually exclusive with ssml.