Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SafetySettingsPromptSecuritySettings

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

Overview

Settings for prompt security checks.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3SafetySettingsPromptSecuritySettings

Returns a new instance of GoogleCloudDialogflowCxV3SafetySettingsPromptSecuritySettings.



8246
8247
8248
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 8246

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

Instance Attribute Details

#enable_prompt_securityBoolean Also known as: enable_prompt_security?

Optional. Enable prompt security checks. Corresponds to the JSON property enablePromptSecurity

Returns:

  • (Boolean)


8243
8244
8245
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 8243

def enable_prompt_security
  @enable_prompt_security
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8251
8252
8253
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 8251

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