Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse

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) ⇒ GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse

Returns a new instance of GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse.



20147
20148
20149
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20147

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

Instance Attribute Details

#display_textString

Corresponds to the JSON property displayText

Returns:

  • (String)


20135
20136
20137
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20135

def display_text
  @display_text
end

#ssmlString

Corresponds to the JSON property ssml

Returns:

  • (String)


20140
20141
20142
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20140

def ssml
  @ssml
end

#text_to_speechString

Corresponds to the JSON property textToSpeech

Returns:

  • (String)


20145
20146
20147
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20145

def text_to_speech
  @text_to_speech
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



20152
20153
20154
20155
20156
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20152

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