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.
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.
5869 5870 5871 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 5869 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
5866 5867 5868 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 5866 def enable @enable end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5874 5875 5876 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 5874 def update!(**args) @enable = args[:enable] if args.key?(:enable) end |