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.



9704
9705
9706
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 9704

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



9702
9703
9704
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 9702

def banned_phrases
  @banned_phrases
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9709
9710
9711
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 9709

def update!(**args)
  @banned_phrases = args[:banned_phrases] if args.key?(:banned_phrases)
end