Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Phrase

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

Overview

Text input which can be used for prompt or banned phrases.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3Phrase

Returns a new instance of GoogleCloudDialogflowCxV3Phrase.



5297
5298
5299
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 5297

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

Instance Attribute Details

#textString

Required. Text input which can be used for prompt or banned phrases. Corresponds to the JSON property text

Returns:

  • (String)


5295
5296
5297
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 5295

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5302
5303
5304
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 5302

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