Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSafetySpec

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

Overview

Safety specification.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSafetySpec

Returns a new instance of GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSafetySpec.



2473
2474
2475
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 2473

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

Instance Attribute Details

#enableBoolean Also known as: enable?

Enable the safety filtering on the answer response. It is false by default. Corresponds to the JSON property enable

Returns:

  • (Boolean)


2470
2471
2472
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 2470

def enable
  @enable
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2478
2479
2480
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 2478

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