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.



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

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

Instance Attribute Details

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

Corresponds to the JSON property bannedPhrases



11564
11565
11566
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 11564

def banned_phrases
  @banned_phrases
end

#default_banned_phrase_match_strategyString

Corresponds to the JSON property defaultBannedPhraseMatchStrategy

Returns:

  • (String)


11569
11570
11571
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 11569

def default_banned_phrase_match_strategy
  @default_banned_phrase_match_strategy
end

#default_rai_settingsGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SafetySettingsRaiSettings

Corresponds to the JSON property defaultRaiSettings



11574
11575
11576
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 11574

def default_rai_settings
  @default_rai_settings
end

#prompt_security_settingsGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SafetySettingsPromptSecuritySettings

Corresponds to the JSON property promptSecuritySettings



11579
11580
11581
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 11579

def prompt_security_settings
  @prompt_security_settings
end

#rai_settingsGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SafetySettingsRaiSettings

Corresponds to the JSON property raiSettings



11584
11585
11586
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 11584

def rai_settings
  @rai_settings
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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