Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSafetySpecSafetySetting
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSafetySpecSafetySetting
- 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 settings.
Instance Attribute Summary collapse
-
#category ⇒ String
Required.
-
#threshold ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSafetySpecSafetySetting
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSafetySpecSafetySetting.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSafetySpecSafetySetting
Returns a new instance of GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSafetySpecSafetySetting.
4822 4823 4824 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4822 def initialize(**args) update!(**args) end |
Instance Attribute Details
#category ⇒ String
Required. Harm category.
Corresponds to the JSON property category
4815 4816 4817 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4815 def category @category end |
#threshold ⇒ String
Required. The harm block threshold.
Corresponds to the JSON property threshold
4820 4821 4822 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4820 def threshold @threshold end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4827 4828 4829 4830 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4827 def update!(**args) @category = args[:category] if args.key?(:category) @threshold = args[:threshold] if args.key?(:threshold) end |