Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SafetySettings

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3SafetySettings

Returns a new instance of GoogleCloudDialogflowCxV3SafetySettings.



7131
7132
7133
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 7131

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#banned_phrasesArray<Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SafetySettingsPhrase>

Corresponds to the JSON property bannedPhrases



7109
7110
7111
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 7109

def banned_phrases
  @banned_phrases
end

#default_banned_phrase_match_strategyString

Corresponds to the JSON property defaultBannedPhraseMatchStrategy

Returns:

  • (String)


7114
7115
7116
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 7114

def default_banned_phrase_match_strategy
  @default_banned_phrase_match_strategy
end

#default_rai_settingsGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SafetySettingsRaiSettings

Corresponds to the JSON property defaultRaiSettings



7119
7120
7121
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 7119

def default_rai_settings
  @default_rai_settings
end

#prompt_security_settingsGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SafetySettingsPromptSecuritySettings

Corresponds to the JSON property promptSecuritySettings



7124
7125
7126
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 7124

def prompt_security_settings
  @prompt_security_settings
end

#rai_settingsGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SafetySettingsRaiSettings

Corresponds to the JSON property raiSettings



7129
7130
7131
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 7129

def rai_settings
  @rai_settings
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7136
7137
7138
7139
7140
7141
7142
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 7136

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