Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SafetySettings
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SafetySettings
- 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
Settings for Generative Safety.
Instance Attribute Summary collapse
-
#banned_phrases ⇒ Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SafetySettingsPhrase>
Banned phrases for generated text.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3SafetySettings
constructor
A new instance of GoogleCloudDialogflowCxV3SafetySettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3SafetySettings
Returns a new instance of GoogleCloudDialogflowCxV3SafetySettings.
6884 6885 6886 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 6884 def initialize(**args) update!(**args) end |
Instance Attribute Details
#banned_phrases ⇒ Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SafetySettingsPhrase>
Banned phrases for generated text.
Corresponds to the JSON property bannedPhrases
6882 6883 6884 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 6882 def banned_phrases @banned_phrases end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6889 6890 6891 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 6889 def update!(**args) @banned_phrases = args[:banned_phrases] if args.key?(:banned_phrases) end |