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

Overview

Settings for Generative Safety.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1SafetySettings

Returns a new instance of GoogleCloudDialogflowCxV3beta1SafetySettings.



11938
11939
11940
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 11938

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

Instance Attribute Details

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

Banned phrases for generated text. Corresponds to the JSON property bannedPhrases



11931
11932
11933
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 11931

def banned_phrases
  @banned_phrases
end

#default_banned_phrase_match_strategyString

Optional. Default phrase match strategy for banned phrases. Corresponds to the JSON property defaultBannedPhraseMatchStrategy

Returns:

  • (String)


11936
11937
11938
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 11936

def default_banned_phrase_match_strategy
  @default_banned_phrase_match_strategy
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11943
11944
11945
11946
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 11943

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)
end