Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AnswerQueryRequestSafetySpec
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AnswerQueryRequestSafetySpec
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1/classes.rb,
lib/google/apis/discoveryengine_v1/representations.rb,
lib/google/apis/discoveryengine_v1/representations.rb
Overview
Safety specification.
Instance Attribute Summary collapse
-
#enable ⇒ Boolean
(also: #enable?)
Enable the safety filtering on the answer response.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1AnswerQueryRequestSafetySpec
constructor
A new instance of GoogleCloudDiscoveryengineV1AnswerQueryRequestSafetySpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1AnswerQueryRequestSafetySpec
Returns a new instance of GoogleCloudDiscoveryengineV1AnswerQueryRequestSafetySpec.
1251 1252 1253 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 1251 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
1248 1249 1250 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 1248 def enable @enable end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1256 1257 1258 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 1256 def update!(**args) @enable = args[:enable] if args.key?(:enable) end |