Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageSimpleResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dialogflow_v2/classes.rb,
generated/google/apis/dialogflow_v2/representations.rb,
generated/google/apis/dialogflow_v2/representations.rb

Overview

The simple response message containing speech or text.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2IntentMessageSimpleResponse

Returns a new instance of GoogleCloudDialogflowV2IntentMessageSimpleResponse



1516
1517
1518
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 1516

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#display_textString

Optional. The text to display. Corresponds to the JSON property displayText

Returns:

  • (String)


1501
1502
1503
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 1501

def display_text
  @display_text
end

#ssmlString

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. Corresponds to the JSON property ssml

Returns:

  • (String)


1508
1509
1510
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 1508

def ssml
  @ssml
end

#text_to_speechString

One of text_to_speech or ssml must be provided. The plain text of the speech output. Mutually exclusive with ssml. Corresponds to the JSON property textToSpeech

Returns:

  • (String)


1514
1515
1516
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 1514

def text_to_speech
  @text_to_speech
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1521
1522
1523
1524
1525
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 1521

def update!(**args)
  @display_text = args[:display_text] if args.key?(:display_text)
  @ssml = args[:ssml] if args.key?(:ssml)
  @text_to_speech = args[:text_to_speech] if args.key?(:text_to_speech)
end