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.



9945
9946
9947
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 9945

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)


9943
9944
9945
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 9943

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9950
9951
9952
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 9950

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