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
Instance Attribute Summary collapse
-
#banned_phrases ⇒ Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SafetySettingsPhrase>
Corresponds to the JSON property
bannedPhrases. -
#default_banned_phrase_match_strategy ⇒ String
Corresponds to the JSON property
defaultBannedPhraseMatchStrategy. -
#default_rai_settings ⇒ Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SafetySettingsRaiSettings
Corresponds to the JSON property
defaultRaiSettings. -
#prompt_security_settings ⇒ Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SafetySettingsPromptSecuritySettings
Corresponds to the JSON property
promptSecuritySettings. -
#rai_settings ⇒ Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SafetySettingsRaiSettings
Corresponds to the JSON property
raiSettings.
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.
7125 7126 7127 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 7125 def initialize(**args) update!(**args) end |
Instance Attribute Details
#banned_phrases ⇒ Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SafetySettingsPhrase>
Corresponds to the JSON property bannedPhrases
7103 7104 7105 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 7103 def banned_phrases @banned_phrases end |
#default_banned_phrase_match_strategy ⇒ String
Corresponds to the JSON property defaultBannedPhraseMatchStrategy
7108 7109 7110 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 7108 def default_banned_phrase_match_strategy @default_banned_phrase_match_strategy end |
#default_rai_settings ⇒ Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SafetySettingsRaiSettings
Corresponds to the JSON property defaultRaiSettings
7113 7114 7115 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 7113 def default_rai_settings @default_rai_settings end |
#prompt_security_settings ⇒ Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SafetySettingsPromptSecuritySettings
Corresponds to the JSON property promptSecuritySettings
7118 7119 7120 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 7118 def prompt_security_settings @prompt_security_settings end |
#rai_settings ⇒ Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SafetySettingsRaiSettings
Corresponds to the JSON property raiSettings
7123 7124 7125 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 7123 def rai_settings @rai_settings end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7130 7131 7132 7133 7134 7135 7136 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 7130 def update!(**args) @banned_phrases = args[:banned_phrases] if args.key?(:banned_phrases) @default_banned_phrase_match_strategy = args[:default_banned_phrase_match_strategy] if args.key?(:default_banned_phrase_match_strategy) @default_rai_settings = args[:default_rai_settings] if args.key?(:default_rai_settings) @prompt_security_settings = args[:prompt_security_settings] if args.key?(:prompt_security_settings) @rai_settings = args[:rai_settings] if args.key?(:rai_settings) end |