Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SafetySettings

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v3beta1/classes.rb,
lib/google/apis/dialogflow_v3beta1/representations.rb,
lib/google/apis/dialogflow_v3beta1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1SafetySettings

Returns a new instance of GoogleCloudDialogflowCxV3beta1SafetySettings.



11598
11599
11600
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 11598

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

Instance Attribute Details

#banned_phrasesArray<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SafetySettingsPhrase>

Corresponds to the JSON property bannedPhrases



11576
11577
11578
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 11576

def banned_phrases
  @banned_phrases
end

#default_banned_phrase_match_strategyString

Corresponds to the JSON property defaultBannedPhraseMatchStrategy

Returns:

  • (String)


11581
11582
11583
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 11581

def default_banned_phrase_match_strategy
  @default_banned_phrase_match_strategy
end

#default_rai_settingsGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SafetySettingsRaiSettings

Corresponds to the JSON property defaultRaiSettings



11586
11587
11588
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 11586

def default_rai_settings
  @default_rai_settings
end

#prompt_security_settingsGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SafetySettingsPromptSecuritySettings

Corresponds to the JSON property promptSecuritySettings



11591
11592
11593
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 11591

def prompt_security_settings
  @prompt_security_settings
end

#rai_settingsGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SafetySettingsRaiSettings

Corresponds to the JSON property raiSettings



11596
11597
11598
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 11596

def rai_settings
  @rai_settings
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11603
11604
11605
11606
11607
11608
11609
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 11603

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