Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSafetySpec
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSafetySpec
- 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
-
#enable ⇒ Boolean
(also: #enable?)
Enable the safety filtering on the answer response.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSafetySpec
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSafetySpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSafetySpec
Returns a new instance of GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSafetySpec.
3093 3094 3095 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 3093 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
3090 3091 3092 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 3090 def enable @enable end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3098 3099 3100 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 3098 def update!(**args) @enable = args[:enable] if args.key?(:enable) end |