Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SafetySettingsPhrase
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SafetySettingsPhrase
- 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
-
#language_code ⇒ String
Required.
-
#text ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3SafetySettingsPhrase
constructor
A new instance of GoogleCloudDialogflowCxV3SafetySettingsPhrase.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3SafetySettingsPhrase
Returns a new instance of GoogleCloudDialogflowCxV3SafetySettingsPhrase.
6410 6411 6412 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 6410 def initialize(**args) update!(**args) end |
Instance Attribute Details
#language_code ⇒ String
Required. Language code of the phrase.
Corresponds to the JSON property languageCode
6403 6404 6405 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 6403 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
6408 6409 6410 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 6408 def text @text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6415 6416 6417 6418 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 6415 def update!(**args) @language_code = args[:language_code] if args.key?(:language_code) @text = args[:text] if args.key?(:text) end |