Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SafetySettingsPhrase
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SafetySettingsPhrase
- 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
-
#language_code ⇒ String
Required.
-
#text ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1SafetySettingsPhrase
constructor
A new instance of GoogleCloudDialogflowCxV3beta1SafetySettingsPhrase.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1SafetySettingsPhrase
Returns a new instance of GoogleCloudDialogflowCxV3beta1SafetySettingsPhrase.
10581 10582 10583 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 10581 def initialize(**args) update!(**args) end |
Instance Attribute Details
#language_code ⇒ String
Required. Language code of the phrase.
Corresponds to the JSON property languageCode
10574 10575 10576 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 10574 def language_code @language_code end |
#text ⇒ String
Required. Text input which can be used for prompt or banned phrases.
Corresponds to the JSON property text
10579 10580 10581 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 10579 def text @text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10586 10587 10588 10589 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 10586 def update!(**args) @language_code = args[:language_code] if args.key?(:language_code) @text = args[:text] if args.key?(:text) end |