Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Phrase

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v3beta1/classes.rb,
lib/google/apis/dialogflow_v3beta1/representations.rb,
lib/google/apis/dialogflow_v3beta1/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) ⇒ GoogleCloudDialogflowCxV3beta1Phrase

Returns a new instance of GoogleCloudDialogflowCxV3beta1Phrase.



8661
8662
8663
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 8661

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)


8659
8660
8661
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 8659

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8666
8667
8668
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 8666

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