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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2IntentMessageSimpleResponse

Returns a new instance of GoogleCloudDialogflowV2IntentMessageSimpleResponse.



12723
12724
12725
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12723

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

Instance Attribute Details

#display_textString

Corresponds to the JSON property displayText

Returns:

  • (String)


12711
12712
12713
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12711

def display_text
  @display_text
end

#ssmlString

Corresponds to the JSON property ssml

Returns:

  • (String)


12716
12717
12718
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12716

def ssml
  @ssml
end

#text_to_speechString

Corresponds to the JSON property textToSpeech

Returns:

  • (String)


12721
12722
12723
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12721

def text_to_speech
  @text_to_speech
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12728
12729
12730
12731
12732
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12728

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