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.



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

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

Instance Attribute Details

#banned_phrasesArray<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_strategyString

Corresponds to the JSON property defaultBannedPhraseMatchStrategy

Returns:

  • (String)


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_settingsGoogle::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_settingsGoogle::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_settingsGoogle::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