Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSafetySpec
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSafetySpec
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1beta/classes.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb
Overview
Safety specification. There are two use cases: 1. when only safety_spec.enable is set, the BLOCK_LOW_AND_ABOVE threshold will be applied for all categories.
- when safety_spec.enable is set and some safety_settings are set, only specified safety_settings are applied.
Instance Attribute Summary collapse
-
#enable ⇒ Boolean
(also: #enable?)
Enable the safety filtering on the answer response.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSafetySpec
constructor
A new instance of GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSafetySpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSafetySpec
Returns a new instance of GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSafetySpec.
10611 10612 10613 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 10611 def initialize(**args) update!(**args) end |
Instance Attribute Details
#enable ⇒ Boolean Also known as: enable?
Enable the safety filtering on the answer response. It is false by default.
Corresponds to the JSON property enable
10608 10609 10610 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 10608 def enable @enable end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10616 10617 10618 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 10616 def update!(**args) @enable = args[:enable] if args.key?(:enable) end |